Skip to content

[Question]: Nodes from PineconeVectorStore is empty.  #9893

@kilimchoi

Description

@kilimchoi

Question Validation

  • I have searched both the documentation and discord for an answer.

Question

First, I load the documents into Pinecone with this code:

PINECONE_INDEX_NAME ="name"
vector_store = PineconeVectorStore(pinecone_index=pinecone.Index(PINECONE_INDEX_NAME))
storage_context = StorageContext.from_defaults(vector_store=vector_store)
documents = SimpleDirectoryReader(data_dir).load_data()
VectorStoreIndex.from_documents(
    documents, storage_context=storage_context
)

Then I try to load the load the documents from the same vector store using the code below,

index = VectorStoreIndex.from_vector_store(vector_store)
index_nodes = index.docstore.docs
index_nodes <- returns {} 

Do you see anything here that cause the vector store to give an empty response?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions