fix: add call to _add_documents_to_vector_store in AstraDB component
This commit is contained in:
parent
f97c5be53b
commit
b02462f092
1 changed files with 4 additions and 0 deletions
|
|
@ -196,6 +196,10 @@ class AstraVectorStoreComponent(LCVectorStoreComponent):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise ValueError(f"Error initializing AstraDBVectorStore: {str(e)}") from e
|
raise ValueError(f"Error initializing AstraDBVectorStore: {str(e)}") from e
|
||||||
|
|
||||||
|
if hasattr(self, "ingest_data") and self.ingest_data:
|
||||||
|
logger.debug("Ingesting data into the Vector Store.")
|
||||||
|
self._add_documents_to_vector_store(vector_store)
|
||||||
|
|
||||||
self.status = self._astradb_collection_to_data(vector_store.collection)
|
self.status = self._astradb_collection_to_data(vector_store.collection)
|
||||||
return vector_store
|
return vector_store
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue