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

# th2rag

> The retrieval-augmented generation backend.

[`th2rag`](https://github.com/apowerb/th2rag) is a FastAPI service handling document
processing, vector search and conversational retrieval. The core delegates all indexing
and search to it.

Configure `RAG_BASE_URL` to point at the service, and `RAG_WEBHOOK_SECRET` to the
shared HMAC secret used to sign completion callbacks.

Its surface covers conversations, messages, knowledge bases and datasets. See
[RAG](/guides/rag) for how the core drives it.


## Related topics

- [Overview](/ecosystem/overview.md)
- [RAG](/guides/rag.md)
- [Configuration](/configuration.md)
