Skip to content

Commit da3afed

Browse files
authored
fix: Fix readme gaps (#87)
* docs: Added contextual answers examples and shared a link to our examples folder * fix: Fixed main link in our readme * docs: Examples section
1 parent 5986522 commit da3afed

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 align="center">
2-
<a href="/AI21Labs/ai21">AI21 Labs Python SDK</a>
2+
<a href="/AI21Labs/ai21-python">AI21 Labs Python SDK</a>
33
</h1>
44

55
[//]: # "Add when public"
@@ -158,6 +158,27 @@ print(response.completions)
158158
print(response.prompt)
159159
```
160160

161+
### TSMs
162+
163+
AI21 Studio's Task-Specific Models offer a range of powerful tools. These models have been specifically designed for their respective tasks and provide high-quality results while optimizing efficiency.
164+
The full documentation and guides can be found [here](https://docs.ai21.com/docs/task-specific).
165+
166+
### Contextual Answers
167+
168+
The `answer` API allows you to access our high-quality question answering model.
169+
170+
```python
171+
from ai21 import AI21Client
172+
173+
client = AI21Client()
174+
response = client.answer.create(
175+
context="This is a text is for testing purposes",
176+
question="Question about context",
177+
)
178+
```
179+
180+
A detailed explanation on Contextual Answers, can be found [here](https://docs.ai21.com/docs/contextual-answers-api)
181+
161182
### Token Counting
162183

163184
---
@@ -327,3 +348,13 @@ response = client.completion.create(
327348
max_tokens=10,
328349
)
329350
```
351+
352+
## Examples
353+
354+
Explore our examples to see our models in action! We've put together a variety of use cases and demonstrations to showcase the capabilities and functionality of our models.
355+
356+
### [Check out the Examples](examples/)
357+
358+
Feel free to dive in, experiment, and adapt these examples to suit your needs. We believe they'll help you get up and running quickly.
359+
360+
Happy prompting! 🚀

0 commit comments

Comments
 (0)