Skip to content

Commit

Permalink
docs: tweak readme (#10)
Browse files Browse the repository at this point in the history
* docs: set output in comment with dump + remove #object ref to remove links to github issues/pr

Signed-off-by: Romain Gautier <[email protected]>

* docs: add scheme to be a clickable link

Signed-off-by: Romain Gautier <[email protected]>

* fix color highlight

Signed-off-by: Romain Gautier <[email protected]>

---------

Signed-off-by: Romain Gautier <[email protected]>
  • Loading branch information
mykiwi authored Apr 29, 2024
1 parent b9dac48 commit 3d287a3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,23 @@ $characters = $instructrice->getList(
'Colonel Jack O\'Neil walks into a bar and meets Major Samanta Carter. They call Teal\'c to join them.',
);

/*
dump($characters);
array:3 [
0 => Character^ {#225
0 => Character^ {
+name: "Jack"
+rank: "Colonel"
}
1 => Character^ {#298
1 => Character^ {
+name: "Samanta"
+rank: "Major"
}
2 => Character^ {#296
2 => Character^ {
+name: "Teal'c"
+rank: null
}
]
*/
```

### Object
Expand All @@ -99,10 +102,13 @@ $character = $instructrice->get(
context: 'Colonel Jack O\'Neil.',
);

Character^ {#294
/*
dump($character);
Character^ {
+name: "Jack"
+rank: "Colonel"
}
*/
```

### Dynamic Schema
Expand All @@ -117,7 +123,10 @@ $label = $instructrice->get(
prompt: 'Sentiment analysis',
);

/*
dump($label);
"positive"
*/
```

You can also use third party json schema libraries like [goldspecdigital/oooas][oooas] to generate the schema:
Expand Down Expand Up @@ -209,7 +218,7 @@ Throughputs from https://artificialanalysis.ai/leaderboards/providers .

Throughputs from https://artificialanalysis.ai/leaderboards/providers .

Automate updating these tables by scraping artificialanalysis.ai , along with chatboard arena elo.?
Automate updating these tables by scraping https://artificialanalysis.ai , along with chatboard arena elo.?
Would be a good use case / showcase of this library/cli?

### Custom Models
Expand Down

0 comments on commit 3d287a3

Please sign in to comment.