Skip to main content

StudyRAG

A private study assistant that answers only from your own course material (slides, PDFs, Word files, notes, even image-only slides through OCR), with a citation to the exact slide or page, and says "not in your documents" when the answer isn't there. Everything runs on a CPU; no GPU needed.

StudyRAG answering with citations

pip install studyrag                      # search, citations, OCR, CLI (models download on first use)
pip install "studyrag[local-llm]"         # + local LLM answers via llama.cpp (compiles; see the setup guide)

studyrag sync ~/my-lecture-notes          # index a folder (data lives in ~/.studyrag; STUDYRAG_HOME to change)
studyrag search "porter five forces"      # ranked, cited passages
studyrag ask "What is a market space?"    # needs a local model or an OpenAI-compatible API (STUDYRAG_LLM_BACKEND=openai)

Built from scratch: BM25, vector search, Reciprocal Rank Fusion, cross-encoder reranking, a calibrated refusal threshold and a sentence-level answer verifier. Measured on 77 labelled questions: the right passage in the top 3 for 100% of answerable questions, 14/14 unanswerable questions refused.

Metadata

Release files for studyrag 0.1.0

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

Source distribution (sdist)

Source distribution for studyrag 0.1.0
File Size Uploaded Provenance Actions
studyrag-0.1.0.tar.gz 55.2 kB Without provenance Details for studyrag-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for studyrag 0.1.0
File Interpreter ABI Platform Actions
studyrag-0.1.0-py3-none-any.whl Python 3 none any Details for studyrag-0.1.0-py3-none-any.whl

Total release size: 107.5 kB

Release files / studyrag-0.1.0.tar.gz

Download URL studyrag-0.1.0.tar.gz
Size 55.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4850affe3ad5a423b6ca3ef7475a286282c3189f574c72364dd72557f8e123d2
BLAKE2b-256 checksum
How to use checksums
92f5da833b6e12bc937b10add4c006bd92019d7840523fdbaeed7a3172990ac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / studyrag-0.1.0-py3-none-any.whl

Download URL studyrag-0.1.0-py3-none-any.whl
Size 52.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
856cfdc48d254453858aa4c999d9f6a4fee80ce64d2ab840b4455a9a8ffb4c18
BLAKE2b-256 checksum
How to use checksums
1839ebf68fb1989fd5d845c7f4b90dd363fd22c1acd68ea79c336ba32c5a875c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for studyrag 0.1.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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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