Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeknnDestroy committed Oct 19, 2023
1 parent 5e0130d commit 2a69874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autollm/auto/vector_store_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def from_defaults(
index (VectorStoreIndex): The initialized Vector Store index instance for given vector store type and parameter set.
"""
if documents is None:
documents = Document.example()
documents = [Document.example()]
if vector_store_type == "VectorStoreIndex":
index = VectorStoreIndex.from_documents(documents=[documents], *args, **kwargs)
index = VectorStoreIndex.from_documents(documents=documents, *args, **kwargs)
else:
VectorStoreClass = import_vector_store_class(vector_store_type)
vector_store = VectorStoreClass(*args, **kwargs)
Expand Down

0 comments on commit 2a69874

Please sign in to comment.