hosting

POST /v1/vector/indexes

Create a vector index.

Svi hosting krajnji točke

Autentifikacija

Pošaljite API ključ kao nosivi token. Ključ mora imati dozvolu vector.manage; ključ bez nje se odbija s kodom 403, a ne 404.

Ova krajnja točka ne prihvaća ID organizacije. Vaš ključ već identificira organizaciju kojoj pripada, a odgovor je ograničen na nju.

Isprobajte

Zamijenite sve unutar šiljastih zagrada svojim vlastitim vrijednostima, a rezervirano mjesto za ključ s ključem iz vaše nadzorne ploče.

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

Prijavljeni ste? API konzola na vašoj nadzornoj ploči automatski unosi stvarni ID vaše organizacije i vaš vlastiti ključ te šalje zahtjev prema aktivnom API-ju kako biste mogli vidjeti stvarni odgovor. Otvori ovu krajnju točku u API konzoli

Pojedinosti

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.

Tijelo zahtjeva

NazivVrstaObaveznoŠto je to
namestringDa
dimensionintegerDa
metricstring<cosine, l2, inner_product>Ne

Odgovor

NazivVrstaObaveznoŠto je to
idstringDa
namestringDaLower-case, hyphenated, unique within the organisation.
dimensionintegerDaThe width your embedding model emits, and the width reads return. Fixed at creation.
metricstring<cosine, l2, inner_product>DaThe distance function. Fixed at creation.
statusstring<ready, deleting>Da
vectorsintegerDaHow many vectors the index holds.
storage_bytesintegerDaWhat 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_atstringDa

Pogreške koje ova krajnja točka može vratiti

401 · 403 · 422 · 429