hosting

POST /v1/vector/indexes

Create a vector index.

Minden hosting végpont

Hitelesítés

Küldjön egy API-kulcsot bearer tokenként. A kulcsnak rendelkeznie kell a(z) vector.manage jogosultsággal; az ezzel nem rendelkező kulcsok esetén a rendszer 403-as hibát ad vissza 404 helyett.

Ez a végpont nem fogad el szervezeti azonosítót. Az Ön kulcsa már azonosítja azt a szervezetet, amelyhez tartozik, és a válasz is erre vonatkozik.

Próbálja ki

Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.

curl -X POST https://api.zinndigital.com/v1/vector/indexes \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "dimension": <integer> }'

Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban

Részletek

Creates an index of a fixed width and distance function. `dimension` is whatever your embedding model emits, from 1 to 3072 — it does not have to be a round number, and a width we do not store natively is held exactly rather than approximately. Above 2000 dimensions the index is stored at half precision, because pgvector's HNSW index does not accept a full-precision column wider than that. Requires `vector.manage`, and is refused if the plan's `vector_indexes` allowance is full.

Kérés törzse

NévTípusKötelezőMi ez
namestringIgen
dimensionintegerIgen
metricstring<cosine, l2, inner_product>Nem

Válasz

NévTípusKötelezőMi ez
idstringIgen
namestringIgenLower-case, hyphenated, unique within the organisation.
dimensionintegerIgenThe width your embedding model emits, and the width reads return. Fixed at creation.
metricstring<cosine, l2, inner_product>IgenThe distance function. Fixed at creation.
statusstring<ready, deleting>Igen
vectorsintegerIgenHow many vectors the index holds.
storage_bytesintegerIgenWhat the index counts for against `vector_index_gb`. A published formula rather than a physical table size, so it is reproducible: 96 bytes of row overhead, plus the stored widt…
created_atstringIgen

Hibák, amelyeket ez a végpont visszaadhattatlan

401 · 403 · 422 · 429