DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to chat with your documents using DocChatAgent with Langroid

Install the doc-chat extra and use DocChatAgent to answer questions over your files.

Short answer: Install with pip install "langroid[doc-chat]"; then set your LLM keys in a .env file; create a DocChatAgent pointed at your documents. All steps.

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

  1. Install with pip install "langroid[doc-chat]"
  2. Set your LLM keys in a .env file
  3. Create a DocChatAgent pointed at your documents
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer