Update lancedb.py

pull/889/head
Akash A Desai 2 months ago committed by GitHub
parent 4869a798ee
commit 187d7bed32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -10,14 +10,11 @@ class LancedbStore(BaseVectorStore):
self.embeddings_key = embeddings_key
self.docsearch = None
# Load embeddings based on a given key
embeddings = self._get_embeddings(settings.EMBEDDINGS_NAME, self.embeddings_key)
# Initialize LanceDB if docs_init is provided and has content
if docs_init:
self.docsearch = LanceDB.from_documents(docs_init, embeddings)
else:
# Log or handle the absence of docs_init appropriately
print(f"No initial documents provided for LanceDB initialization at {path}.")

Loading…
Cancel
Save