From 573c846112074ac256b160bceff4e30cd235d904 Mon Sep 17 00:00:00 2001 From: Aashish Saini <141953346+ShorthillsAI@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:24:43 +0530 Subject: [PATCH] Fixed Typo Error in Update get_started.mdx file by addressing a minor typographical error. (#11154) Fixed Typo Error in Update get_started.mdx file by addressing a minor typographical error. This improvement enhances the readability and correctness of the notebook, making it easier for users to understand and follow the demonstration. The commit aims to maintain the quality and accuracy of the content within the repository. please review the change at your convenience. @baskaryan , @hwaking --- .../modules/data_connection/retrievers/get_started.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/snippets/modules/data_connection/retrievers/get_started.mdx b/docs/snippets/modules/data_connection/retrievers/get_started.mdx index 8a42c3a361..34fffc806f 100644 --- a/docs/snippets/modules/data_connection/retrievers/get_started.mdx +++ b/docs/snippets/modules/data_connection/retrievers/get_started.mdx @@ -101,7 +101,7 @@ Now that the index is created, we can use it to ask questions of the data! Note ```python -query = "What did the president say about Ketanji Brown Jackson" +query = "What did the president say about Ketanji Brown Jackson?" index.query(query) ``` @@ -115,14 +115,14 @@ index.query(query) ```python -query = "What did the president say about Ketanji Brown Jackson" +query = "What did the president say about Ketanji Brown Jackson?" index.query_with_sources(query) ``` ``` - {'question': 'What did the president say about Ketanji Brown Jackson', + {'question': 'What did the president say about Ketanji Brown Jackson?', 'answer': " The president said that he nominated Circuit Court of Appeals Judge Ketanji Brown Jackson, one of the nation's top legal minds, to continue Justice Breyer's legacy of excellence, and that she has received a broad range of support from the Fraternal Order of Police to former judges appointed by Democrats and Republicans.\n", 'sources': '../state_of_the_union.txt'} ``` @@ -159,7 +159,7 @@ index.vectorstore.as_retriever() -It can also be convenient to filter the vector store by the metadata associated with documents, particularly when your vector store has multiple sources. This can be done using the `query` method like so: +It can also be convenient to filter the vector store by the metadata associated with documents, particularly when your vector store has multiple sources. This can be done using the `query` method, like this: ```python @@ -244,7 +244,7 @@ qa = RetrievalQA.from_chain_type(llm=OpenAI(), chain_type="stuff", retriever=ret ```python -query = "What did the president say about Ketanji Brown Jackson" +query = "What did the president say about Ketanji Brown Jackson?" qa.run(query) ```