> ## 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.

# Classic Knowledge Base

> Build a no-code RAG pipeline that gives agents grounded answers from documents and websites.

Lyzr Studio's Classic Knowledge Base creates a no-code RAG pipeline for searchable document and website understanding. Use it when an agent needs grounded answers from unstructured content such as PDFs, DOCX files, text, or web pages.

## Creating a Knowledge Base

1. Go to **Knowledge Base** and select **+ New**.
2. Select **Basic** as the Knowledge Base Type. This option uses simple vector-based retrieval with embeddings.
3. Enter a **Name** (letters, numbers, and underscores only) and an optional **Description**.
4. Select a **Vector Store** and **LLM Embedding Model**.
5. Select **Create Knowledge Base**.

![Screenshot of the Create Knowledge Base modal showing the three KB type options (Basic, Graph, Semantic Data Model), a Name field, Description field, Vector Store selector set to Qdrant, and LLM Embedding Model selector.](https://mintcdn.com/lyzrinc/KL0td225zOmlZ1fc/assets/images/studio/new-kb.png?fit=max\&auto=format\&n=KL0td225zOmlZ1fc\&q=85\&s=9995e3f4552632902c8f11cec73e67bf)

6. Add content through file upload, text, URL, or live source.
7. Train the KB.
8. Attach it to an agent through the agent builder's **Knowledge Base** feature.

## Supported file types

* `.pdf`
* `.doc`
* `.docx`
* `.txt`
* Website URLs

## Upload limitations

| Limit | Value |
| - | - |
| Files per upload | 5 |
| File size | Less than 15 MB each |
| Recommendation | Upload in batches and test retrieval quality between batches |

## Chunking strategy

Chunking controls how documents are split before embedding. Smaller chunks improve precision; larger chunks preserve context.

| Setting | Description |
| - | - |
| Chunk size | Maximum number of tokens in each chunk |
| Overlap | Number of tokens shared between adjacent chunks, preserving context at boundaries |
| Number of chunks | Maximum number of chunks returned per query |

## Retrieval types

| Type | Best for |
| - | - |
| Basic Retrieval | General vector similarity search |
| MMR (Maximal Marginal Relevance) | Reducing duplicate chunks while preserving relevance |
| HyDE (Hypothetical Document Embeddings) | Improving retrieval accuracy on open-ended or vague queries |

## Retrieval modes

Retrieval mode controls how the agent uses the Knowledge Base to answer a query. It is a separate choice from the retrieval type above, which controls the similarity algorithm. Three modes are available:

| Mode | How it works | Best for |
| - | - | - |
| Basic RAG (default) | Retrieves relevant chunks and generates a response from them in a single pass. | General question answering. |
| Agentic RAG | Runs one or more retrieval cycles and reasons across the results before answering. | Questions that need iterative reasoning or several retrievals. |
| One-Shot RAG | Retrieves relevant information in a single retrieval step and generates the response in one LLM call. | Straightforward question answering where a single retrieval provides enough context, without iterative reasoning or multiple retrieval cycles. |

## Score threshold

The score threshold filters out chunks whose similarity score falls below a minimum value. Raising the threshold improves answer precision but may reduce recall on borderline queries. Start at the default and adjust based on test results.

## Playground Retrieval

Once the KB is trained, open it and use the **Playground Retrieval** panel on the right to test retrieval before attaching it to an agent. Type a query in the input field and select **Retrieve** to see the matching chunks and their similarity scores. This lets you verify that the right content is surfacing for representative questions and catch chunking or configuration issues before doing a full agent deployment.

![Screenshot of the Knowledge Base detail view showing a file list on the left and the Playground Retrieval panel on the right with a query input field and a Retrieve button.](https://mintcdn.com/lyzrinc/KL0td225zOmlZ1fc/assets/images/studio/new-kbplayground.png?fit=max\&auto=format\&n=KL0td225zOmlZ1fc\&q=85\&s=178f6e4210ff88a16bb537124539f0c8)

## Live Sources

Live Sources automatically sync content on a configurable frequency. When new content is detected, Lyzr adds the delta instead of re-ingesting everything.

Available for:

* **SharePoint**: syncs documents from selected SharePoint sites
* **Website**: crawls and re-indexes updated pages
* **Google Drive**: planned support

Minimum sync frequency is 1 hour.

### Choose which SharePoint folders to sync

You can scope a SharePoint sync folder by folder, so the Knowledge Base syncs only the folders you select instead of the full connected location. Use this to keep unrelated or sensitive folders out of a Knowledge Base.

## KB-as-a-Service

A trained Knowledge Base is also accessible as a standalone API endpoint, independent of any agent. This lets other services or agents built outside Lyzr Studio query the same KB directly, which is useful for shared knowledge repositories or multi-product deployments.

## Next steps

* [Build an agent in Studio](https://docs.lyzr.ai/enterprise/agent-studio/agents/studio.md)
* [Knowledge Graph for relationship-based retrieval](https://docs.lyzr.ai/enterprise/agent-studio/knowledgebase/studiokg.md)
* [Semantic Model for structured data queries](https://docs.lyzr.ai/enterprise/agent-studio/knowledgebase/studiosem.md)


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