Looking up the metric of an index via the api

Hello,

I am wondering whether it is possible to lookup the metric of an index via the api. I would assume that would be in the pinecone.Index method named, describe_index_stats, except that returns this: {'dimension': 8, 'index_fullness': 0.0, 'namespaces': {'': {'vector_count': 1}}}. It also seems reasonable to be able to look up the index_type here to (i.e. <‘approximated’|‘exact’>) so that I could programmatically access those.

Thank you again,
Steven

1 Like

Hey,
I believe that pinecone.describe_index here - is what you’re looking for. It includes information regarding index_type, metric_type, number of pods, etc.

Cheers,
Roei

1 Like

Thanks Roei, I will give that a try!

Best,
Steven