hosting

POST /v1/vector/indexes

Create a vector index.

Bütün hosting nöqtələri

Doğrulama

API açarını bearer token kimi göndərin. Açar vector.manage icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.

Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

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

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

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.

Sorğu gövdəsi

AdTipTələb olunurNədir
namestringBəli
dimensionintegerBəli
metricstring<cosine, l2, inner_product>Xeyr

Cavab

AdTipTələb olunurNədir
idstringBəli
namestringBəliLower-case, hyphenated, unique within the organisation.
dimensionintegerBəliThe width your embedding model emits, and the width reads return. Fixed at creation.
metricstring<cosine, l2, inner_product>BəliThe distance function. Fixed at creation.
statusstring<ready, deleting>Bəli
vectorsintegerBəliHow many vectors the index holds.
storage_bytesintegerBəliWhat 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_atstringBəli

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 422 · 429