> For the complete documentation index, see [llms.txt](https://vibemx.gitbook.io/neuronai-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vibemx.gitbook.io/neuronai-studio/knowledge-bases/overview.md).

# Overview

Knowledge bases store embedded document chunks for semantic retrieval. NeuronAI Studio uses them in two ways:

1. **RAG workflow node** — retrieve once per run and inject context into downstream agent/LLM prompts
2. **RAG tool** (`KnowledgeBaseTool`) — let an agent call search on demand during a conversation

Studio does **not** use Neuron’s `RAG` agent subclass. Retrieval stays a separate service (`RagRetrievalService`) so the same knowledge base works in workflows and as an agent tool.

```mermaid
flowchart LR
  ingest[Ingest documents] --> store[Vector store]
  store --> retrieval[RagRetrievalService]
  retrieval --> ragNode[RAG node]
  retrieval --> ragTool[RAG tool]
  ragNode --> prompt["state.rag_context"]
  ragTool --> agentCall[On-demand tool result]
```

## When to use which pattern

| Pattern                                                       | Best for                                                            |
| ------------------------------------------------------------- | ------------------------------------------------------------------- |
| [RAG node](/neuronai-studio/knowledge-bases/retrieval.md)     | Fixed “always ground this step” flows; template `rag-knowledge-qna` |
| [RAG tool](/neuronai-studio/knowledge-bases/agent-binding.md) | Playground agents that decide when to search                        |

## Studio routes

| Route                                        | Purpose                               |
| -------------------------------------------- | ------------------------------------- |
| `/neuronai-studio/knowledge-bases`           | List knowledge bases                  |
| `/neuronai-studio/knowledge-bases/create`    | Create knowledge base                 |
| `/neuronai-studio/knowledge-bases/{id}/edit` | Edit, ingest, reindex, preview search |

## Next steps

* [Creating & ingest](/neuronai-studio/knowledge-bases/creating-and-ingest.md)
* [Vector stores](/neuronai-studio/knowledge-bases/vector-stores.md)
* [Retrieval & RAG node](/neuronai-studio/knowledge-bases/retrieval.md)
* [Bind to agents](/neuronai-studio/knowledge-bases/agent-binding.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://vibemx.gitbook.io/neuronai-studio/knowledge-bases/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
