Skip to content

Commit cae5dce

Browse files
committed
docs: fixed query signature and added an example
1 parent 3ac90ac commit cae5dce

1 file changed

Lines changed: 2 additions & 1 deletion

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
*/

0 commit comments

Comments
 (0)