You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ role: 'system', content: 'You are a research assistant specializing in technology trends.' },
213
212
{ role: 'user', content: 'What are the emerging AI technologies in healthcare?' },
214
213
],
215
-
tools: ['web_search'],
216
-
});
217
-
```
218
-
219
-
---
220
-
221
-
### Files
222
-
223
-
The `AI21` class provides a `files` property that gives you access to the Files API. You can use it to upload, retrieve, update, list, and delete files.
224
-
225
-
```typescript
226
-
import { AI21 } from'ai21';
227
-
228
-
const client =newAI21({
229
-
apiKey: process.env.AI21_API_KEY, // or pass it in directly
The `AI21` class provides a `conversationalRag` property that gives you access to the Conversational RAG API. You can use it to ask questions that are answered based on the files you uploaded.
0 commit comments