From cae5dced5355ca8902533de87417a359432dafda Mon Sep 17 00:00:00 2001 From: punkish Date: Thu, 9 Jan 2025 17:49:09 +0100 Subject: [PATCH 1/2] docs: fixed query signature and added an example --- docs/api-reference/methods/query.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api-reference/methods/query.mdx b/docs/api-reference/methods/query.mdx index c34a7274..ca55730b 100644 --- a/docs/api-reference/methods/query.mdx +++ b/docs/api-reference/methods/query.mdx @@ -10,7 +10,7 @@ Function signature is given below: Question to ask - + The conversation ID to which the query belongs in case this is a chatbot scenario @@ -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' }) /* */ From 60881a4a6b5b6b86b1010c6f4e39b0323a3b4d04 Mon Sep 17 00:00:00 2001 From: punkish Date: Thu, 9 Jan 2025 17:52:59 +0100 Subject: [PATCH 2/2] docs: fixed FAQs --- docs/get-started/faq.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/get-started/faq.mdx b/docs/get-started/faq.mdx index 5ad6a6aa..e8f2fcab 100644 --- a/docs/get-started/faq.mdx +++ b/docs/get-started/faq.mdx @@ -4,7 +4,6 @@ description: 'Collections of all the frequently asked questions' --- -Use the model `gpt-4o` provided my openai. ```ts index.ts @@ -27,6 +26,8 @@ console.log(await llmApplication.query('Who founded Tesla?')); +Use the model `gpt-4o` provided my openai. + ```ts index.ts import 'dotenv/config';