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:
DayDang 2025-05-24 01:39:59 +05:00 committed by GitHub
parent f2b4698b54
commit 5bf539f405
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,7 @@
" ) -> List[Document]:\n",
" \"\"\"Sync implementations for retriever.\"\"\"\n",
" matching_documents = []\n",
" for document in documents:\n",
" for document in self.documents:\n",
" if len(matching_documents) > self.k:\n",
" return matching_documents\n",
"\n",