hosting
POST /v1/vector/indexes/{indexId}/vectors/fetch
Read vectors back by id.
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/{indexId}/vectors/fetch \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "ids": <string[]> }'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
Returns the vectors you stored, by your own ids, with their metadata. Values come back at the index's own `dimension` — never at the wider width they may physically be stored in, which is an implementation detail you should never have to know about. A POST rather than a GET because the ids are yours and there may be a thousand of them. This does **not** count against `vector_queries_monthly`: fetching by id runs no nearest-neighbour search. Requires `vector.manage`, like `query`, because it returns your stored data rather than your usage.
Parametrat
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
indexId (path) | string | Po | The index's id. |
Trupi i kërkesës
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
ids | string[] | Po | — |
Përgjigja
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
vectors | Vector[] | Po | — |
Gabimet që ky pikëndalim mund të kthejë
401 · 403 · 404 · 422 · 429