Catalog/rag-dimension-info

Retrieval

Embedding vector profile API

Returns a statistical profile of an embedding: dimension, L2 norm, mean/std, min/max, sparsity, and whether it is unit-norm. Answers 'What are the stats of this embedding vector?', 'Is this vector already normalized?'.

Price$0.01per request
MethodPOST
Route/v1/retrieval/dimension-info
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
embeddingprofilestatisticsdimensionsparsityvectorinspectrag
API URLhttps://x402.hexl.dev/v1/retrieval/dimension-info
Integration docs
Example request
{
  "vector": [
    0,
    0,
    3,
    4
  ]
}
Example response
{
  "dimensions": 4,
  "l2Norm": 5,
  "mean": 1.75,
  "std": 1.78535711,
  "min": 0,
  "max": 4,
  "nonZeroCount": 2,
  "sparsity": 0.5,
  "isUnitNorm": false
}
Input schema
{
  "type": "object",
  "required": [
    "vector"
  ],
  "properties": {
    "vector": {
      "type": "array",
      "items": {
        "type": "number"
      }
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}