🐛 (Chroma.py): Fix passing limit parameter to chroma_collection_to_data method to correctly retrieve data from Chroma vector store
This commit is contained in:
parent
24c5275899
commit
ccf63c98ff
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ from loguru import logger
|
|||
|
||||
from langflow.base.vectorstores.model import LCVectorStoreComponent
|
||||
from langflow.base.vectorstores.utils import chroma_collection_to_data
|
||||
from langflow.inputs import BoolInput, DataInput, DropdownInput, HandleInput, IntInput, MessageInput, StrInput, TextInput
|
||||
from langflow.inputs import BoolInput, DataInput, DropdownInput, HandleInput, IntInput, StrInput, TextInput
|
||||
from langflow.schema import Data
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -140,7 +140,7 @@ class ChromaVectorStoreComponent(LCVectorStoreComponent):
|
|||
)
|
||||
|
||||
self._add_documents_to_vector_store(chroma)
|
||||
self.status = chroma_collection_to_data(chroma.get(self.limit))
|
||||
self.status = chroma_collection_to_data(chroma.get(limit=self.limit))
|
||||
return chroma
|
||||
|
||||
def _add_documents_to_vector_store(self, vector_store: "Chroma") -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue