Skip to content

Commit

Permalink
Update lancedb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
akashAD98 committed Apr 4, 2024
1 parent 4869a79 commit 187d7be
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions application/vectorstore/lancedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ def __init__(self, path, embeddings_key, docs_init=None):
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}.")


Expand Down

0 comments on commit 187d7be

Please sign in to comment.