""
(the empty string).
"my-first-namespace"
namespace if it doesn’t already exist:
"my-first-namespace"
use code like the following:
PythonJavaScriptcurl
index.query(vector=[0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1], top_k=1, namespace='my-first-namespace')
const ns1 = index.namespace('my-first-namespace'); await ns1.query({ topK: 1, vector: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1], });
INDEX_NAME='index-name' \ PROJECT='project-id' \ ENVIRONMENT='your-environment' \ API_KEY='your-api-key' \ curl -X POST "https://$INDEX_NAME-$PROJECT.svc.$ENVIRONMENT.pinecone.io/query" \ -H "Api-Key: $API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "topK": 1, "vector": [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1], "namespace": "my-first-namespace" }'
DescribeIndexStatistics
operation returns per-namespace statistics about the contents of all namespaces in an index. More details