Turn on Knowledge. The agent then finds the passages that best match the question and answers from them.
- In Agent Studio open the Knowledge group (or the Context tab of an Agent Node).
- Set Knowledge Base (RAG) to
true. - Choose the Knowledge Source: an index someone already built, or a document path to index.
- Pick the Vector Database (
pineconeorpgvector) and its connection, then the Index Name and Namespace.
| Setting | Start with |
|---|---|
| Top K | 3. Go to 5 only if answers lack detail. |
| Embedding Model | The same model the index was built with. |
| Embedding Dimensions | Must match the index, e.g. 1536 for text-embedding-3-small. |
| Reranking | none; try lexical when chunks are near-duplicates. |
Tell the agent to answer only from the passages, to say when it can’t find the answer, and to cite the source.
If answers ignore your documents, check the namespace and embedding model first. A wrong namespace or model gives vague answers without an error.
Knowledge is for documents. For live data such as balances or order status, give the agent a tool instead.
Docs: RAG and Knowledge