Find answers from the community

Updated 3 months ago

Trying to figure out why I'm passing

Trying to figure out why I'm passing show_progress=false to my vector store, but when I do index.insert_nodes it still shows progress, do I need to provide it to that function as well?
L
m
3 comments
Can you share some code? How did you create the index?
Plain Text
def create_index_from_vector_store(vector_store: PineconeVectorStore):
     """
     Create an index from a pinecone vector store
     """
     # Create a service context
     service_context = get_service_context()
 
     # Create a Pinecone storage context
     storage_context = get_storage_context(vector_store)
 
     # Create the index
     index = VectorStoreIndex.from_vector_store(
         service_context=service_context,
         vector_store=vector_store,  # type: ignore
         storage_context=storage_context,
         show_progress=false,
     )
 
     return index
And what does the service context look like?
Add a reply
Sign up and join the conversation on Discord