Skip to content

Commit

Permalink
Merge pull request #1 from anay-p/patch-1
Browse files Browse the repository at this point in the history
Change self.vectors to be initialized as None instead of as an empty list
  • Loading branch information
anay-p authored Jun 26, 2023
2 parents dd349f8 + 092faba commit b2c0e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyperdb/hyperdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(
):
documents = documents or []
self.documents = []
self.vectors = []
self.vectors = None
self.embedding_function = embedding_function or (
lambda docs: get_embedding(docs, key=key)
)
Expand Down

0 comments on commit b2c0e0b

Please sign in to comment.