Getting similarity search in the specific namespaces

I have multiple namespaces in Pinecone, and I would like to query a specific namespaces.

@abhisheknegi Please see the documentation on Querying by namespace and Query in the API Reference.

For an example of querying a specific namespace using the Python client, see below:

from pinecone import Pinecone

pc = Pinecone(api_key='YOUR_API_KEY')
index = pc.Index('your-index')

index.query(
    vector=[0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1], # sample dummy embedding
    top_k=1,
    namespace='<namespace_name>'
)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.