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

# Knowledge Base Block

> Use Lyzr Knowledge Base as a standalone RAG service.

# Knowledge Base Block

The Knowledge Base block provides RAG-as-a-service. Create a KB, add content, and query it from any application or agent framework.

## When to use it

Use the Knowledge Base block when:

* You already have an agent framework and only need retrieval
* Multiple applications need to query the same knowledge source
* You want an API-first RAG layer independent of Studio agents

## Query flow

1. Create a KB and choose embedding, LLM, vector store, and retrieval strategy.
2. Add content through upload, text, URL, or live source.
3. Train the KB.
4. Query the retrieve endpoint from your app or attach the KB to a Studio agent.
