How do you fetch data from Pinecone namespaces? For example, I have already preprocessed and upserted to pinecone, and the data is separated with namespaces. Now we want to query over the data in Pinecone with GPT-Index(llama-index):
index = GPTPineconeIndex([], pinecone_index=index_name, add_sparse_vector=True)
(data in Pinecone is separated by namespaces, unsure how to append that to GPTPineconeIndex)
AttributeError: 'str' object has no attribute 'query'
Since we can't get the data from the namespace itself, we can't query over the vector store, and it’s returning an empty object.
How do you query pinecone indexes that are separated by namespace? Or is that not possible? Do I need to write my own function to fetch the data from Pinecone?