Oqura DeepDoc: a LangGraph report writer that lets Python, not the LLM, decide when evidence is enough
Deep research tool for local knowledge base.
At a glance
- What is it?
- Oqura-ai/deepdoc turns a folder of your own PDFs, Office files, images and text into a structured Markdown report. Its distinguishing choice is a TypeSafe model called Jev that scores retrieved chunks, while plain Python applies the thresholds and retry limits.
- Who is it for?
- Use DeepDoc when you have a folder of mixed documents and want a sectioned Markdown report with a visible evidence-checking step you can tune in configuration.py. Look elsewhere if you need a fully offline pipeline, a pinned and repeatable run out of the box, or any output format other than Markdown.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 61 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- Oqura-ai/deepdoc319 ★ · +13
| Repository | 2026-09-15 | 2026-11-25 |
|---|---|---|
| Oqura-ai/deepdoc | 306 | 319 |
13 Stars in the last 71 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Jev scores the evidence, and ordinary Python makes every keep-or-retry decision
DeepDoc keeps the configured LLM for planning, query generation, synthesis and report writing. What it adds is the Jev model from TypeSafe, which checks and reranks the chunks that Qdrant returns, then checks whether the collected evidence covers every required subsection.
The design rule is stated plainly: Jev returns typed probabilities, and thresholds, ranking, retry limits and graph routing remain ordinary Python logic in the application. For each candidate chunk Jev judges relevance, usable evidence, contradiction, and prompt-injection-like content. The consequence is that filtering is inspectable. If a section looks thin, you can change a number in configuration.py instead of rewording a prompt and hoping the model behaves differently.
Every report section gets its own agent, and each agent loops until coverage is met or retries run out
After you give a topic and an outline, a report planner creates the initial structure, and you can approve it or request changes before research starts. Then one research agent runs for every section. Each generates focused queries, retrieves a shortlist from Qdrant, filters and reranks with Jev, and uses Jev reflection scores to find subsections that still lack evidence. When coverage is missing it generates new queries, up to the configured reflection limit, and then writes the section from the accepted local evidence.
The path inside an agent is:
Query generation
-> Qdrant retrieval
-> Jev evidence gate and reranker
-> Evidence accumulator
-> Jev subsection coverage reflection
-> Query generation again when coverage is missing and retries remain
-> Section writer when coverage is sufficient or the retry limit is reachedNote the last branch. The section writer runs when the retry limit is reached even if coverage is still insufficient, so a section can be written from partial evidence.
Local files do not mean an offline tool: OpenAI and TypeSafe keys are required by default
The corpus stays on your machine and in a local Qdrant, but the default setup calls out. In .env, OPENAI_API_KEY and TYPESAFE_API_KEY are required for the default configuration, and the TypeSafe key is created in the TypeSafe console. The example env file also has slots for MISTRAL_API_KEY and TAVILY_API_KEY, to be filled for the keys your configuration uses.
The default LLM_CONFIG sets the provider to openai and the model to gpt-4o-mini, with temperature 0.5, max_retries 6 and a 120 second timeout. Jev requests have a bounded retry policy for temporary 429 and 5xx responses, connection failures and timeouts, which are network failure types. So chunk text is evaluated by a remote service, and the README tells you to keep .env local and never commit the real key. If your documents are confidential, read the terms of both providers before pointing this at them.
Setup is uv, a virtual environment, Docker for Qdrant, then a CLI prompt
The README requires uv to manage the virtual environment and dependencies. The sequence starts with:
git clone https://github.com/Oqura-ai/deepdoc.git
cd deepdocThen `uv venv` creates the environment. On Windows you activate with .venv\Scripts\activate, and on macOS or Linux with `source .venv/bin/activate`. Copy the example environment file with `cp .env.example .env` and fill in the keys. Install packages with:
uv pip install -r requirements.txtStart the vector database, which needs Docker and Docker Compose:
docker-compose up --buildFinally run `python main.py`. The CLI asks for a topic, an outline or goal, and the local resource directory, and completed reports are saved in output_folder. There is no packaged installer, so a missing Docker install stops the run at the retrieval step.
The Qdrant container uses the latest tag and keeps its data in a local folder
The docker-compose.yaml defines one service, qdrant, using the image qdrant/qdrant:latest with restart set to always and the container name qdrant_localresearch. It publishes ports 6333 and 6334 and mounts ./qdrant_data as the storage volume, with log level INFO.
Two practical effects follow. The latest tag is not pinned, so a later docker pull can change the Qdrant version underneath an index you built earlier. And indexed chunks persist in qdrant_data on disk, so remove that folder if you want a clean start. The default .env points QDRANT_URL at http://localhost:6333, uses the collection name knowledge_base, and sets the embedding model to BAAI/bge-small-en-v1.5. The file also carries QDRANT_DISABLE_THREADING=true with a comment not to change it.
More retrieved points means more Jev calls, because each query and chunk pair is judged alone
configuration.py holds model behavior, parallelism, retrieval size, reflection limits and Jev thresholds. The defaults shown include max_concurrency 2, max_queries 3, search_depth 2, num_reflections 2, n_points 6, evidence_keep_per_query 3, a Jev relevance threshold of 0.45 and a Jev evidence threshold of 0.55.
The README warns that the thresholds are starting points rather than universal constants, and says to evaluate them on representative local documents before changing them. Raising n_points can improve candidate recall, but every query and chunk pair is judged independently, so it creates more Jev evaluations. evidence_keep_per_query controls how many candidates continue to the accumulator. For concurrency, max_concurrency limits how many sections research in parallel: lower it to 1 for the most conservative token usage, or raise it only when your provider limits have headroom. max_retries covers temporary provider errors such as HTTP 429.
Inputs cover six file kinds, but the output is a single Markdown file
The input directory can hold PDF, DOCX, PPTX, image, TXT or Markdown resources. DeepDoc extracts the text, keeps page and source metadata, and creates searchable chunks in Qdrant. The requirements list parsing packages including pymupdf, pdfplumber, python-docx and python-pptx, along with fastembed and qdrant-client.
The result is one Markdown file produced by the final report writer, which combines all completed sections. If you need a Word document or a slide deck, you convert the Markdown yourself. Another limit is that the plan is only as good as your outline, because the planner works from your topic and outline and every later step hangs off that structure.
Nothing is pinned for repeatability, and the repository has no releases
TYPESAFE_DEFAULT_MODEL=jev-latest follows the newest stable Jev release. The README says to pin a versioned Jev model after you calibrate thresholds for production if you need completely repeatable behavior across future releases. The same issue applies elsewhere: qdrant-client, python-docx, python-pptx, mistralai, pymupdf, fastembed, pdfplumber and reportlab are unpinned in requirements.txt, while typesafe-sdk is fixed at 0.7.1 and langgraph is held below 0.4.0.
The repository has no GitHub releases, is MIT licensed and is not archived. The last push was on 26 September 2026. Its top-level folders include deepresearch, notebook, resource and output_folder, and there is no tests folder at the top level. The authors listed are Swaraj Biswal and Swadhin Biswal, and contributions go through issues and pull requests.
Editorial conclusion
Use DeepDoc when you have a folder of mixed documents and want a sectioned Markdown report with a visible evidence-checking step you can tune in configuration.py. Look elsewhere if you need a fully offline pipeline, a pinned and repeatable run out of the box, or any output format other than Markdown. Before trusting it with sensitive files, check what the OpenAI and TypeSafe services receive.
Frequently asked questions
What is Oqura DeepDoc?
Oqura's deepdoc is a local deep-research tool that turns your own files into a structured Markdown report. It indexes the content, plans the report, researches each section against the local collection and combines the results.
Which file types can DeepDoc read?
You provide a directory of PDF, DOCX, PPTX, image, TXT or Markdown resources. DeepDoc extracts the text, keeps page and source metadata, and creates searchable chunks in Qdrant.
Does DeepDoc need API keys to run?
Yes. OPENAI_API_KEY and TYPESAFE_API_KEY are required for the default setup, and the TypeSafe key comes from the TypeSafe console. The example env file also has MISTRAL_API_KEY and TAVILY_API_KEY entries.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/oqura-ai-deepdoc)Star history chart for your README
[](https://hysenlabs.com/projects/oqura-ai-deepdoc)Was this useful?