younifyd
Menu

Get index stats

Get index stats

POST/describe_index_stats

Use it in a workflow

  1. Add a step and choose the Pinecone connector.
  2. Pick the Get index stats action (under Data).
  3. Fill in the fields below, then reference the result from later steps as {{getIndexStats.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

filterobject

If this parameter is present, the operation only returns statistics for vectors that satisfy the filter. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata). Serverless and Starter indexes do not support filtering `describe_index_stats` by metadata, and reject a request carrying a non-empty filter.

json
{
  "filter": {}
}

Response

Returns 200 with an object. Read it in later steps with {{getIndexStats.response.data.<field>}}.

namespacesobject

A mapping for each namespace in the index from the namespace name to a summary of its contents.

dimensioninteger (int64)

The dimension of the indexed vectors. Not specified if `sparse` index.

indexFullnessnumber (float)

The fullness of the index, reported to a granularity of 1% and capped at `1.0`. Always `0` for indexes with on-demand read capacity. Serverless indexes scale automatically as needed, so index fullness is relevant only for pod-based indexes. The index fullness result may be inaccurate during pod resizing; to get the status of a pod resizing process, use [`describe_index`](https://docs.pinecone.io/reference/api/2024-10/control-plane/describe_index).

totalVectorCountinteger (int64)

The total number of vectors in the index, regardless of whether a metadata filter expression was passed

metricstring

The metric used to measure similarity.

vectorTypestring

The type of vectors stored in the index.

memoryFullnessnumber (float)

The amount of memory used by a dedicated index

storageFullnessnumber (float)

The amount of storage used by a dedicated index

json
{
  "namespaces": {},
  "dimension": 1024,
  "indexFullness": 0.4,
  "totalVectorCount": 80000,
  "metric": "cosine",
  "vectorType": "dense",
  "memoryFullness": 0,
  "storageFullness": 0
}

Need more? See the Pinecone guide for connection setup and behaviour shared by every action.