# Chat With Documents

> Ask a language model about PDF and DOCX documents: extract text with ServerTextControl, keep the chat history, stream answers and handle long documents.

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

---

## On This Page

- [How Chatting With a Document Works](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/chat/#how-chatting-with-a-document-works)
- [Extract the Text of a Document](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/chat/#extract-the-text-of-a-document)
- [Ask Questions About a Document](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/chat/#ask-questions-about-a-document)
- [Handle Long Documents](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/chat/#handle-long-documents)
- [Chat in the TX Text Control AI Web Sample](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/chat/#chat-in-the-tx-text-control-ai-web-sample)
- [Review the Answers](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/chat/#review-the-answers)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/chat/#next-steps)

---

## Nearby

- **Previous:** [Local / Private LLMs](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/local-llms/llms.txt)
- **Next:** [Document Analysis](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/analysis/llms.txt)
