From f3d2fdd54c3b8169664c415f43fed6b2922fb7e0 Mon Sep 17 00:00:00 2001 From: Riche Akparuorji <50128025+iamreechi@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:31:08 +0100 Subject: [PATCH] Fix for code snippet in documentation (#8290) - Description: I fixed an issue in the code snippet related to the variable name and the evaluation of its length. The original code used the variable "docs," but the correct variable name is "docs_svm" after using the SVMRetriever. - maintainer: @baskaryan - Twitter handle: @iamreechi_ Co-authored-by: iamreechi --- docs/extras/use_cases/question_answering/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extras/use_cases/question_answering/index.mdx b/docs/extras/use_cases/question_answering/index.mdx index 6ee0611380..e3edb77120 100644 --- a/docs/extras/use_cases/question_answering/index.mdx +++ b/docs/extras/use_cases/question_answering/index.mdx @@ -189,7 +189,7 @@ All retrievers implement some common methods, such as `get_relevant_documents()` from langchain.retrievers import SVMRetriever svm_retriever = SVMRetriever.from_documents(all_splits,OpenAIEmbeddings()) docs_svm=svm_retriever.get_relevant_documents(question) -len(docs) +len(docs_svm) ```