> ## Documentation Index
> Fetch the complete documentation index at: https://docs.conare.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Conare's API is at https://api.conare.ai. Authenticate with `Authorization: Bearer $CONARE_API_KEY`.
> The full OpenAPI spec is at https://api.conare.ai/openapi.yaml; each endpoint has a page under /api-reference, and appending .md to any page URL returns its Markdown.
> Embed with model conare-embed-1; send input_type "query" for search queries. Rerank with conare-rerank-1.
> Prefer the TypeScript SDK (`npm install conare`) or plain HTTP in examples.
> Install the Conare skill with `npx skills add https://docs.conare.ai`; search these docs over MCP at https://docs.conare.ai/mcp; the whole site is at https://docs.conare.ai/llms-full.txt.

# turbopuffer API

> Запускайте свій код і SDK для turbopuffer на Conare, змінивши базову URL-адресу: підтримувані записи, запити й виклики просторів імен, а також обмеження.

Conare обслуговує API turbopuffer за адресою `https://api.conare.ai/tpuf`: залиште свій код і SDK для turbopuffer і спрямуйте їх на Conare з ключем Conare.

```bash curl theme={null}
curl https://api.conare.ai/tpuf/v2/namespaces/products/query \
  -H "Authorization: Bearer $CONARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rank_by": ["vector", "ANN", [0.1, 0.2, 0.3, 0.4]], "top_k": 10}'
```

```python Python theme={null}
import os
import turbopuffer

tpuf = turbopuffer.Turbopuffer(
    api_key=os.environ["CONARE_API_KEY"],
    region="gcp-us-central1",  # any value: Conare ignores it
    base_url="https://api.conare.ai/tpuf/{region}",
)

ns = tpuf.namespace("products")
ns.write(
    upsert_rows=[{"id": 1, "vector": [0.1, 0.2, 0.3, 0.4], "title": "refunds"}],
    distance_metric="cosine_distance",
)
result = ns.query(rank_by=("vector", "ANN", [0.1, 0.2, 0.3, 0.4]), top_k=10)
```

```json Response theme={null}
{
  "billing": { "billable_logical_bytes_queried": 0, "billable_logical_bytes_returned": 0 },
  "performance": { "cache_hit_ratio": 1.0, "cache_temperature": "hot", "query_execution_ms": 0, "server_total_ms": 0 },
  "rows": [{ "$dist": 0.0, "id": 1 }]
}
```

Ви надаєте власні вектори, а ці простори імен відокремлені від решти API.

## Що підтримується

| Область | Підтримується |
| - | - |
| Записи | Upsert, patch, видалення, умовні записи, видалення чи patch за фільтром |
| Запити | Векторні (ANN і точні), повнотекстові BM25, сортування за атрибутом, фільтри, агрегація `Count`, до 16 запитів в одному виклику |
| Простори імен | Перелік, схема, метадані, прогрівання кешу, видалення, копіювання й розгалуження |
| Відстань | `cosine_distance`, `euclidean_squared` |
| `top_k` | До 10 000 |

Усе інше, як-от `group_by` чи кілька векторних стовпців, повертає `400` з повідомленням, що це називає.

## Обмеження

| Обмеження | |
| - | - |
| Запити | 1 000 на секунду на організацію |
| Записи, інші виклики | По 100 на секунду |
| Тіло запиту | До 64 MiB |


## Related topics

- [Огляд API](https://docs.conare.ai/uk/api.md)
- [Embed texts (OpenAI-compatible)](https://docs.conare.ai/uk/api-reference/models/embed-texts-openai-compatible.md)
- [Rerank documents (Cohere- and vLLM-compatible)](https://docs.conare.ai/uk/api-reference/models/rerank-documents-cohere-and-vllm-compatible.md)
- [Rerank documents (Cohere v2-compatible)](https://docs.conare.ai/uk/api-reference/models/rerank-documents-cohere-v2-compatible.md)
- [Connect a source](https://docs.conare.ai/uk/api-reference/sources/connect-a-source.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.