privacy. Document chunks are sent to the LLM you configure.
Who it is forAnalysts with a folder of PDFs or docs they query often.
The problemSearching long documents by hand is slow and misses context.
The outcomeAnswers drawn from your documents, retrieved with ranked chunks.
What you need first
- Python with pip
- An OpenAI compatible LLM endpoint or API key
Steps
- Install with
pip install "langroid[doc-chat]" - Set your LLM keys in a .env file
- Create a DocChatAgent pointed at your documents
- Ask questions in a Task loop
Prompt for your agent
Using langroid/langroid, install `pip install "langroid[doc-chat]"`, build a DocChatAgent over <my documents folder>, and answer <my three questions> with the source passages.
Caveat. Answer quality depends on chunking and the model; check answers against the source.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for langroid/langroid and "Chat with your documents using DocChatAgent"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer