File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
9090ragApplication .addLoader ({ urlOrContent: ' https://en.wikipedia.org/wiki/Elon_Musk' })
9191
9292await ragApplication .query (' What is the net worth of Elon Musk today?' )
93+ await ragApplication .query (' Who is Elon Musk?' { conversationId: ' 1' })
9394/*
9495
9596*/
Original file line number Diff line number Diff 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
3233import ' dotenv/config' ;
You can’t perform that action at this time.
0 commit comments