hosting

POST /v1/vector/indexes

Create a vector index.

Tüm hosting uç noktaları

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar vector.manage iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

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

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

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.

İstek gövdesi

AdTürZorunluNe olduğu
namestringEvet
dimensionintegerEvet
metricstring<cosine, l2, inner_product>Hayır

Yanıt

AdTürZorunluNe olduğu
idstringEvet
namestringEvetLower-case, hyphenated, unique within the organisation.
dimensionintegerEvetThe width your embedding model emits, and the width reads return. Fixed at creation.
metricstring<cosine, l2, inner_product>EvetThe distance function. Fixed at creation.
statusstring<ready, deleting>Evet
vectorsintegerEvetHow many vectors the index holds.
storage_bytesintegerEvetWhat 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_atstringEvet

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 422 · 429