Skip to content

Commit

Permalink
Merge pull request #203 from punkish/main
Browse files Browse the repository at this point in the history
Fixed docs for FAQs and RAG API
  • Loading branch information
adhityan authored Jan 16, 2025
2 parents 3ac90ac + 60881a4 commit ae3f962
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/api-reference/methods/query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Function signature is given below:
<ParamField path="userQuery" type="string" required>
Question to ask
</ParamField>
<ParamField path="conversationId" type="bool" optional>
<ParamField path="conversationId" type="string" optional>
The conversation ID to which the query belongs in case this is a chatbot scenario
</ParamField>
<ParamField path="customContext" type="Chunk[]" optional>
Expand Down Expand Up @@ -90,6 +90,7 @@ ragApplication.addLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-mu
ragApplication.addLoader({ urlOrContent: 'https://en.wikipedia.org/wiki/Elon_Musk' })

await ragApplication.query('What is the net worth of Elon Musk today?')
await ragApplication.query('Who is Elon Musk?' { conversationId: '1' })
/*
*/
Expand Down
3 changes: 2 additions & 1 deletion docs/get-started/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: 'Collections of all the frequently asked questions'
---
<AccordionGroup>
<Accordion title="How to use MistralAI language model?">
Use the model `gpt-4o` provided my openai.

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

<Accordion title="How to use GPT-4o as the Language model?">
Use the model `gpt-4o` provided my openai.

<CodeGroup>
```ts index.ts
import 'dotenv/config';
Expand Down

0 comments on commit ae3f962

Please sign in to comment.