Querying facts about db

Hey all,

How do I query basic information like, “how many vectors do i have?” or “return all vectors” or “vectors with meta-data field == ‘blah’?” or anything other than the vectors themselves?

Your question can be splitted in two part:

1. how many vectors do i have?

https://metrics.YOUR_ENVIRONMENT.pinecone.io/metrics

You will find the metric ‘pinecone_vector_count’

https://docs.pinecone.io/docs/monitoring

2. return all vectors and vectors with meta-data field == ‘blah’?

at this time, from what I read, it’s not possible to query without passing by the vector.

That being said, you can pass a random vector and put your top_k to 10000. You could also add your meta-data-field ($eq) ‘blah’ in the filters.

3 Likes