Skip to content

Commit

Permalink
Fix for code snippet in documentation (#8290)
Browse files Browse the repository at this point in the history
- 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 <richieakparuorji>
  • Loading branch information
iamreechi authored Jul 26, 2023
1 parent f271769 commit f3d2fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/extras/use_cases/question_answering/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```


Expand Down

0 comments on commit f3d2fdd

Please sign in to comment.