Metadata-Version: 2.4
Name: telonyte-brain-llamaindex
Version: 2.2.7
Summary: LlamaIndex retriever adapter for B.R.A.I.N. V1.
License: UNLICENSED
Project-URL: Homepage, https://brain.telonyte.com
Project-URL: Documentation, https://brain.telonyte.com/setup/api
Project-URL: Source, https://github.com/Telonyte/brain
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: telonyte-brain>=2.2.7
Requires-Dist: llama-index-core>=0.10

# telonyte-brain-llamaindex

LlamaIndex retriever for B.R.A.I.N. V1. It wraps the `telonyte-brain` client, so there is no separate HTTP layer and no model call.

```
pip install telonyte-brain-llamaindex
```

```python
from telonyte_brain_llamaindex import BrainRetriever

retriever = BrainRetriever(bot="support", k=5)
uid = retriever.add("Office hours are 9 to 5")["uid"]
nodes = retriever.retrieve("office hours")
retriever.delete(uid)
```

Environment variables:

- `BRAIN_KEY`: your B.R.A.I.N. V1 key (required)
- `BRAIN_URL`: server URL (default `https://brain.telonyte.com`)

Docs: https://brain.telonyte.com/setup/api
