Refindery
A local, single-machine retrieval engine over the web pages you read.
Upstream capture systems (browser extensions, history readers) extract main-body text and POST it here. Refindery chunks, embeds, indexes, clusters, and extracts entities from that text, then serves hybrid retrieval over it via a local HTTP API and an MCP server.
📖 Full documentation: https://hbmartin.github.io/refindery/
Companion projects
- Refindery Chrome Extension — capture pages as you browse.
- Browser History Refindery — import and search your browser history.
This is a retrieval engine, not a Q&A system. It returns ranked, grounded passages with provenance. Synthesis is the caller's job — typically an LLM agent (e.g. Claude via MCP) that treats Refindery as a tool. No generation appears on the query path.
Jobs to be done
- Refind — "I read something about X, take me back to it."
- Synthesize — "What have I learned about Y?" (agent-mediated; Refindery supplies the passages)
- Resurface — "What have I been reading a lot about?" (clusters, similarity)
Quickstart
The fastest path on macOS (Homebrew, no Docker) writes a private .env with a
generated auth token and the daemon-free LanceDB profile:
VOYAGE_API_KEY=... ./scripts/setup-macos.sh --start
On later runs, start the server with the generated environment:
uv run --env-file .env refindery serve
Then ingest a page and search it:
curl -s -X POST http://127.0.0.1:8000/v1/pages \
-H "Authorization: Bearer $REFINDERY_AUTH_TOKEN" -H "Content-Type: application/json" \
-d '{"url": "https://example.com/article", "title": "An Article",
"body_extracted": "Plain text main body content...",
"fetched_at": "2026-07-08T10:00:00Z", "source": "extension"}'
curl -s -X POST http://127.0.0.1:8000/v1/search \
-H "Authorization: Bearer $REFINDERY_AUTH_TOKEN" -H "Content-Type: application/json" \
-d '{"query": "main body content"}'
Other install paths (Docker/Qdrant, manual, fully containerized) are in the Installation guide.
Documentation
The documentation site is the canonical reference:
- Getting started — install, quickstart, and validation.
- Guides — ingest, search, MCP, evaluation, clustering, entities, models, deletion.
- Configuration — the settings model, deployment profiles, auth, tuning, observability.
- Architecture — hexagonal ports/adapters, data flow, and the data model.
- Operations — reset, purge, job leases, and accepted risks.
- Reference — HTTP API, upstream ingest API, MCP tools, CLI, and the Python API.
Development
See CONTRIBUTING.md and the
Contributing docs.
TL;DR: uv sync --all-groups --extra ner, then
uv run ruff format . && uv run ruff check . && uv run pytest && uv run ty check && uv run pyrefly check.
Preview the docs locally with uv run zensical serve.
License
MIT — see LICENSE.txt.
Metadata
Release files for refindery 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| refindery-0.2.0.tar.gz | 131.1 kB | With provenance | Details for refindery-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| refindery-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for refindery-0.2.0-py3-none-any.whl |
Total release size: 314.3 kB
Release files / refindery-0.2.0.tar.gz
| Download URL | refindery-0.2.0.tar.gz |
|---|---|
| Size | 131.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b8ad889559bc14ab61069fb1839a8625d11ae3f6b5eaa84f0ae40834e0162ef
|
|
BLAKE2b-256 checksum How to use checksums |
549af9036ae203ca1b249d41df4eddbe5cb55eaca00302e007e6b79bfaa98ab2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logRelease files / refindery-0.2.0-py3-none-any.whl
| Download URL | refindery-0.2.0-py3-none-any.whl |
|---|---|
| Size | 183.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db106dce393e9b244386d620a3d2ca2df9a3ae24c2ff2fbb329b29d94911fa16
|
|
BLAKE2b-256 checksum How to use checksums |
5f89015d114a259014587540e896e59992cb137571bd1aacc8921f3a387a4034
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logSecurity for refindery 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for refindery-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.