{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "langroid-langroid--chat-with-your-documents-using-langroid-docchatagent",
 "repo": "langroid/langroid",
 "repo_url": "https://github.com/langroid/langroid",
 "repo_slug": "langroid-langroid",
 "title": "Chat with your documents using DocChatAgent",
 "page_title": "How to chat with your documents using DocChatAgent with Langroid",
 "summary": "Install the doc-chat extra and use DocChatAgent to answer questions over your files.",
 "who": "Analysts with a folder of PDFs or docs they query often.",
 "problem": "Searching long documents by hand is slow and misses context.",
 "outcome": "Answers drawn from your documents, retrieved with ranked chunks.",
 "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"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Answer quality depends on chunking and the model; check answers against the source.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip",
  "An OpenAI compatible LLM endpoint or API key"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "privacy",
   "notice": "Document chunks are sent to the LLM you configure."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/langroid-langroid/chat-with-your-documents-using-langroid-docchatagent/",
 "md": "https://dedupedai.com/use-cases/langroid-langroid/chat-with-your-documents-using-langroid-docchatagent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/langroid-langroid--chat-with-your-documents-using-langroid-docchatagent.json",
 "api_version": "v1"
}
