Created at 8pm, Jan 4
Berat26Crypto
0
API mantığı nedir?
O1NDjJgMDzJxBrau0poNQGrSWzzl8a7BUQXQb3e_QS0
File Type
DOCX
Entry Count
1
Embed. Model
text_embedding_ada_002
Index Type
hnsw
API mant nedir? API (Application Programming Interface), zellikle web tabanl sistemlerde farkl uygulamalar ve platformlar arasndaki veri alverii ve ilevsellik iin kullanlr. REST API, belirli standartlara ve prensiplere dayanarak istemciler ve sunucular arasnda HTTP protokol kullanarak kaynaklara eriim salar. API nedir rnekler? API'ler, iki yazlm bileeninin belirli tanmlar ve protokoller araclyla birbiriyle iletiim kurmasna olanak tanyan mekanizmalardr. rnein, meteoroloji mdrlnn yazlm sistemi, gnlk hava durumu verilerini ierir.
id: 7e1ffef325e8c49ad6cf3944c39eb948 - page: None
How to Retrieve?
# Search

curl -X POST "https://search.dria.co/hnsw/search" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"rerank": true, "top_n": 10, "contract_id": "O1NDjJgMDzJxBrau0poNQGrSWzzl8a7BUQXQb3e_QS0", "query": "What is alexanDRIA library?"}'
        
# Query

curl -X POST "https://search.dria.co/hnsw/query" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"vector": [0.123, 0.5236], "top_n": 10, "contract_id": "O1NDjJgMDzJxBrau0poNQGrSWzzl8a7BUQXQb3e_QS0", "level": 2}'