hosting

POST /v1/vector/indexes

Create a vector index.

すべての hosting エンドポイント

認証

ベアラー トークンとして API キーを送信します。キーには vector.manage 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。

このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

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

ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブAPIに対してリクエストが実行されるため、実際のレスポンスを確認することができます。 API コンソールでこのエンドポイントを開く

詳細

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.

リクエスト本文

名前タイプ必須これがその内容です
namestringはい
dimensionintegerはい
metricstring<cosine, l2, inner_product>いいえ

返信

名前タイプ必須これがその内容です
idstringはい
namestringはいLower-case, hyphenated, unique within the organisation.
dimensionintegerはいThe width your embedding model emits, and the width reads return. Fixed at creation.
metricstring<cosine, l2, inner_product>はいThe distance function. Fixed at creation.
statusstring<ready, deleting>はい
vectorsintegerはいHow many vectors the index holds.
storage_bytesintegerはいWhat 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_atstringはい

このエンドポイントが返すエラー

401 · 403 · 422 · 429