# Knowledge and RAG

> Ground replies in selected knowledge sources and verify that indexing is ready.

Canonical: https://valuechat.app/docs/knowledge-rag
Category: AI agents

## Before you start

Use a test channel or sample conversation first. Confirm the result before applying the setup to production traffic.

## How it works

1. Sources. Create a knowledge base in Settings, add supported text, website or uploaded-document sources and review their processing/indexing status. A source that is merely uploaded or still processing is not a ready retrieval result.

2. Embedding setup. Retrieval indexes use the configured embedding connection/model; this is separate from the chat model used to generate answers. Reindex when required by source or index configuration changes.

3. Agent access. Link the intended bases through the knowledge skill and references. Multiple agents can use approved shared sources without each maintaining an unrelated copy.

4. Answers. The agent retrieves relevant passages to answer the current question. Missing or conflicting evidence should lead to clarification or handoff, not invented business facts.

5. Different purposes. RAG stores reference knowledge. Contact fields store individual customer facts, and connected actions read or change external systems. Adding a document does not authorize a store transaction or give access to every customer record.

6. Test. Check retrieval for real sample questions, source freshness and permission boundaries. An embedding index or a successful model response is not a guarantee that every answer is correct.

## What to verify

- The expected channel, conversation, contact or execution is visible.
- The assignment matches the configured routing.
- No customer-facing message claims an action that failed.
- Activity or execution history explains the result.

## Need help?

support@valuechat.app. Never send API keys or passwords.
