Skip to content
Snippets Groups Projects
Unverified Commit 6646b588 authored by Ryan Lambert's avatar Ryan Lambert Committed by GitHub
Browse files

[small change] default PineconeVectorStore when GPTPineconeIndex is given None (#543)

default PineconeVectorStore when GPTPineconeIndex is given None
parent ddee67eb
No related branches found
No related tags found
No related merge requests found
......@@ -209,7 +209,9 @@ class GPTPineconeIndex(GPTVectorStoreIndex):
"""Init params."""
if pinecone_index is None:
raise ValueError("pinecone_index is required.")
vector_store = PineconeVectorStore(pinecone_index=pinecone_index)
vector_store = kwargs.pop(
"vector_store", PineconeVectorStore(pinecone_index=pinecone_index)
)
super().__init__(
documents=documents,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment