From d2544d4490d4d4cc4e44922ab10b50938e2c2b75 Mon Sep 17 00:00:00 2001 From: Bhargav Date: Tue, 23 Sep 2025 18:18:04 +0530 Subject: [PATCH 1/2] Update intro-to-retrieval.md While using the Retrieval module, I noticed that the documentation in the Process the User's Query section suggests using queryTexts as an argument for the query() method. Existing code: context = customer_support_collection.query( queryTexts=[user_query], n_results=1 )['documents'][0] This leads to the following runtime error: context = annual_reports_collection.query( TypeError: query() got an unexpected keyword argument 'queryTexts' ProposeChanges: context = collection.query( query_texts=[user_query], n_results=3 )['documents'][0] --- .../markdoc/content/guides/build/intro-to-retrieval.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs.trychroma.com/markdoc/content/guides/build/intro-to-retrieval.md b/docs/docs.trychroma.com/markdoc/content/guides/build/intro-to-retrieval.md index 80e03ef3c42..35fc40657bb 100644 --- a/docs/docs.trychroma.com/markdoc/content/guides/build/intro-to-retrieval.md +++ b/docs/docs.trychroma.com/markdoc/content/guides/build/intro-to-retrieval.md @@ -212,7 +212,7 @@ const user_query = "What is your return policy for tooth brushes?"; const context = ( await customer_support_collection.query({ - queryTexts: [user_query], + query_texts: [user_query], n_results: 1, }) ).documents[0]; From ad62a017dc12c15df323bb1ac09b8fa6ae02f12c Mon Sep 17 00:00:00 2001 From: Bhargav Date: Tue, 23 Sep 2025 18:21:38 +0530 Subject: [PATCH 2/2] Update intro-to-retrieval.md --- .../markdoc/content/guides/build/intro-to-retrieval.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs.trychroma.com/markdoc/content/guides/build/intro-to-retrieval.md b/docs/docs.trychroma.com/markdoc/content/guides/build/intro-to-retrieval.md index 35fc40657bb..171e83ab886 100644 --- a/docs/docs.trychroma.com/markdoc/content/guides/build/intro-to-retrieval.md +++ b/docs/docs.trychroma.com/markdoc/content/guides/build/intro-to-retrieval.md @@ -196,7 +196,7 @@ Similarly, Chroma handles the embedding of queries for you out-of-the-box. user_query = "What is your return policy for tooth brushes?" context = customer_support_collection.query( - queryTexts=[user_query], + query_texts=[user_query], n_results=1 )['documents'][0]