mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 13:27:36 +00:00
docs: fix missing 'self' reference in for-loop over documents (#31332)
**Description:** fix missing 'self' reference in for-loop over documents
This commit is contained in:
parent
f2b4698b54
commit
5bf539f405
@ -98,7 +98,7 @@
|
|||||||
" ) -> List[Document]:\n",
|
" ) -> List[Document]:\n",
|
||||||
" \"\"\"Sync implementations for retriever.\"\"\"\n",
|
" \"\"\"Sync implementations for retriever.\"\"\"\n",
|
||||||
" matching_documents = []\n",
|
" matching_documents = []\n",
|
||||||
" for document in documents:\n",
|
" for document in self.documents:\n",
|
||||||
" if len(matching_documents) > self.k:\n",
|
" if len(matching_documents) > self.k:\n",
|
||||||
" return matching_documents\n",
|
" return matching_documents\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user