Find answers from the community

Updated 4 months ago

Trying to figure out why I'm passing

At a glance

The community member is trying to understand why the progress is still being shown when they pass show_progress=false to their vector store. Another community member asks for the code used to create the index, and the community member provides an example function that creates an index from a Pinecone vector store, passing show_progress=false to the VectorStoreIndex.from_vector_store() function. However, the community member still observes progress being shown when calling index.insert_nodes(), and asks if they need to provide the show_progress parameter to that function as well.

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