Skip to content

Commit ae3f962

Browse files
authored
Merge pull request #203 from punkish/main
Fixed docs for FAQs and RAG API
2 parents 3ac90ac + 60881a4 commit ae3f962

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/api-reference/methods/query.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Function signature is given below:
1010
<ParamField path="userQuery" type="string" required>
1111
Question to ask
1212
</ParamField>
13-
<ParamField path="conversationId" type="bool" optional>
13+
<ParamField path="conversationId" type="string" optional>
1414
The conversation ID to which the query belongs in case this is a chatbot scenario
1515
</ParamField>
1616
<ParamField path="customContext" type="Chunk[]" optional>
@@ -90,6 +90,7 @@ ragApplication.addLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-mu
9090
ragApplication.addLoader({ urlOrContent: 'https://en.wikipedia.org/wiki/Elon_Musk' })
9191

9292
await ragApplication.query('What is the net worth of Elon Musk today?')
93+
await ragApplication.query('Who is Elon Musk?' { conversationId: '1' })
9394
/*
9495
9596
*/

docs/get-started/faq.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: 'Collections of all the frequently asked questions'
44
---
55
<AccordionGroup>
66
<Accordion title="How to use MistralAI language model?">
7-
Use the model `gpt-4o` provided my openai.
87

98
<CodeGroup>
109
```ts index.ts
@@ -27,6 +26,8 @@ console.log(await llmApplication.query('Who founded Tesla?'));
2726
</Accordion>
2827

2928
<Accordion title="How to use GPT-4o as the Language model?">
29+
Use the model `gpt-4o` provided my openai.
30+
3031
<CodeGroup>
3132
```ts index.ts
3233
import 'dotenv/config';

0 commit comments

Comments
 (0)