How to get all documents as array or list from a namespace?

    embeddings = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY)
    doclist = Pinecone.from_existing_index(index_name, embeddings, namespace=namespace)
    docs = doclist.similarity_search(query, include_metadata=True, namespace=namespace, k=10)

In this case, I can get only 10 docs. But I want to get all docs in this namespace.
So I want to k = len(doclist), But doclist is not array, so this is error.
Is there other way to get all docs in a namespace?
Thanks for your time. I hope you can help me.
Thanks again.

1 Like

Also wondering this. We are trying to fetch all the docs in a namespace