hosting

POST /v1/vector/indexes

Create a vector index.

Të gjitha pikat e skajshme hosting

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen vector.manage; një çelës pa të refuzohet me 403, jo 404.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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> }'

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

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.

Trupi i kërkesës

EmriLlojiKërkohetÇfarë është kjo
namestringPo
dimensionintegerPo
metricstring<cosine, l2, inner_product>Jo

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idstringPo
namestringPoLower-case, hyphenated, unique within the organisation.
dimensionintegerPoThe width your embedding model emits, and the width reads return. Fixed at creation.
metricstring<cosine, l2, inner_product>PoThe distance function. Fixed at creation.
statusstring<ready, deleting>Po
vectorsintegerPoHow many vectors the index holds.
storage_bytesintegerPoWhat 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_atstringPo

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 422 · 429