# RAG

> Ground AI answers in approved documents: index DOCX, PDF and Markdown with TXTextControl.AI.Knowledge, search passages, cite sources and protect the store.

- **Product:** TX Text Control .NET Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET Server > AI Integration > RAG
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/llms-full.txt

---

## On This Page

- [How RAG Works](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#how-rag-works)
- [TXTextControl.AI.Knowledge](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#txtextcontrol-ai-knowledge)
- [Index and Search Documents](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#index-and-search-documents)
- [Search Modes](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#search-modes)
- [Extract DOCX, PDF and HTML Documents](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#extract-docx-pdf-and-html-documents)
- [Ground Answers and Cite Sources](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#ground-answers-and-cite-sources)
- [Apply Approved Wording](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#apply-approved-wording)
- [Prepare Documents for Retrieval](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#prepare-documents-for-retrieval)
- [Protect the Knowledge Store](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#protect-the-knowledge-store)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/rag/#next-steps)

---

## Nearby

- **Previous:** [Document Analysis](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/analysis/llms.txt)
- **Next:** [MCP Document Server](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/mcp-server/llms.txt)
