Skip to main content

llama-index-retrievers-ragmir

A LlamaIndex retriever with exact citations, on your infrastructure.

Ragmir gives LlamaIndex query engines cited local retrieval over a project's code, PDFs, Office files, scans, and more. Every node carries its citation, and a question the documents cannot answer returns no node, so the engine can say so instead of guessing.

  • Any model: the index does not depend on the LLM that writes the answer, so you can switch between Claude, GPT, Gemini, Mistral, or a local model without re-indexing.
  • No GPU, no vector database: the default retrieval runs offline on the CPU, and the index is an embedded store in the project's git-ignored .ragmir/ folder.
  • Your data stays where you run it: no account, telemetry, or hosted store.
  • Measured: rgr evaluate scores retrieval on your own questions and fails CI when it regresses.
pip install llama-index-retrievers-ragmir

Requires Python 3.11 or later; Ragmir runs through Node.js 22.12 or later or Docker. See ragmir to index a project from Python, and the system requirements for semantic models and OCR.

from llama_index.core.query_engine import RetrieverQueryEngine
from llama_index.retrievers.ragmir import RagmirRetriever

retriever = RagmirRetriever(project_root="my-project", similarity_top_k=4)
for node in retriever.retrieve("Who approves a production release?"):
    print(node.metadata["citation"], node.text)

query_engine = RetrieverQueryEngine.from_args(retriever)
print(query_engine.query("Who approves a production release?"))

Node metadata holds source, citation, context_path, line or page ranges, weak_evidence, and source_status when the file changed after indexing; only the citation and its context reach the LLM prompt. Nodes keep Ragmir's ranking order without a similarity score.

Read the Python guide. Open source under AGPL-3.0-only, with a commercial license available from JCode Works.

Metadata

Release files for llama-index-retrievers-ragmir 6.17.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-retrievers-ragmir 6.17.2
File Size Uploaded Provenance Actions
llama_index_retrievers_ragmir-6.17.2.tar.gz 16.5 kB Without provenance Details for llama_index_retrievers_ragmir-6.17.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-retrievers-ragmir 6.17.2
File Interpreter ABI Platform Actions
llama_index_retrievers_ragmir-6.17.2-py3-none-any.whl Python 3 none any Details for llama_index_retrievers_ragmir-6.17.2-py3-none-any.whl

Total release size: 33.1 kB

Release files / llama_index_retrievers_ragmir-6.17.2.tar.gz

Download URL llama_index_retrievers_ragmir-6.17.2.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
099580d42e5867b68de50b7ea55ea3a785a4a815499f2dfeec8418c414308954
BLAKE2b-256 checksum
How to use checksums
e7318a393ed05f97cb80fddc1446a948f92caeefd2d71c10b83436f4bd081225
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_retrievers_ragmir-6.17.2-py3-none-any.whl

Download URL llama_index_retrievers_ragmir-6.17.2-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d595cd7c698993e1a3b472e592ebb3b16870e9a0ad950a1e9f16cd883139d528
BLAKE2b-256 checksum
How to use checksums
f98b8d3635a0f19576f684b63801dffb0b03f3d4c2b7b2380717bdd87d4314aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-retrievers-ragmir 6.17.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page