Skip to content

Repository files navigation

Doctrail

A doctrail mascot, courtesy of DALL-E 3
A doctrail mascot,
courtesy of DALL-E 3

Doctrail turns document collections into auditable, structured research data with LLMs.

It ingests files into an SQLite database, applies structured codebooks and prompts to selected rows, runs them through an LLM (OpenAI, Gemini, Anthropic, OpenRouter, or a self-hosted OpenAI-compatible server), and returns ordinary tables and views for iteration and analysis.

Doctrail is meant to be driven by both researchers and coding agents.

Start here

For researchers and users, the documentation is at https://doctrail.org.

For LLMs and coding agents, the complete operating manual is at https://doctrail.org/llms.txt.

Install

Install the command line tool:

uv tool install doctrail
doctrail --help

Or run directly:

uvx doctrail

From source:

git clone https://github.com/mpr1255/doctrail
cd doctrail
uv run doctrail --help

Documentation

The full documentation is at https://doctrail.org.

Inside the package, doctrail docs prints the reference documentation offline.

License

MIT

About

Auditable LLM enrichment for document corpora

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages