Catalog/rag-dot-product

Retrieval

Dot product of vectors API

Returns the inner (dot) product of two vectors — the raw unnormalized similarity used by many ANN indexes. Answers 'What is the dot product of these vectors?', 'What is the inner-product similarity score?'.

Price$0.01per request
MethodPOST
Route/v1/retrieval/dot-product
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
dot-productinner-productvectorembeddingsimilarityretrievalrag
API URLhttps://x402.hexl.dev/v1/retrieval/dot-product
Integration docs
Example request
{
  "a": [
    1,
    2,
    3
  ],
  "b": [
    4,
    5,
    6
  ]
}
Example response
{
  "dotProduct": 32,
  "dimensions": 3,
  "formula": "sum(a_i * b_i)"
}
Input schema
{
  "type": "object",
  "required": [
    "a",
    "b"
  ],
  "properties": {
    "a": {
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "b": {
      "type": "array",
      "items": {
        "type": "number"
      }
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}