Update LCVectorStoreComponent to set status after converting docs to records

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-25 23:24:36 -03:00
commit 2c57096930

View file

@ -40,4 +40,6 @@ class LCVectorStoreComponent(CustomComponent):
docs = vector_store.search(query=input_value, search_type=search_type.lower())
else:
raise ValueError("Invalid inputs provided.")
return docs_to_records(docs)
records = docs_to_records(docs)
self.status = records
return records