Lightweight, LLM-agnostic RAG pipeline with pluggable corpora. Works with Claude, OpenAI, Gemini, or any LLM.
Project description
attune-rag
Lightweight, LLM-agnostic RAG pipeline with pluggable corpora. Works with Claude, OpenAI, Gemini, or any LLM.
- No LLM SDK at install time. All provider deps are optional extras.
- Pluggable corpus. Use attune-help (the default), any
markdown directory, or your own
CorpusProtocol. - Returns a prompt string by default — send it to whatever LLM you like. Optional provider adapters ship convenience wrappers.
Install
pip install attune-rag # core only
pip install 'attune-rag[attune-help]' # + bundled help corpus
pip install 'attune-rag[claude]' # + Claude adapter
pip install 'attune-rag[openai]' # + OpenAI adapter
pip install 'attune-rag[gemini]' # + Gemini adapter
pip install 'attune-rag[all]' # everything
Quick start — Claude
pip install 'attune-rag[attune-help,claude]'
import asyncio
from attune_rag import RagPipeline
async def main():
pipeline = RagPipeline() # defaults to AttuneHelpCorpus
response, result = await pipeline.run_and_generate(
"How do I run a security audit with attune?",
provider="claude",
)
print(response)
print("\nSources:", [h.entry.path for h in result.citation.hits])
asyncio.run(main())
Quick start — OpenAI
pip install 'attune-rag[attune-help,openai]'
response, result = await pipeline.run_and_generate(
"...", provider="openai", model="gpt-4o",
)
Quick start — Gemini
pip install 'attune-rag[attune-help,gemini]'
response, result = await pipeline.run_and_generate(
"...", provider="gemini", model="gemini-1.5-pro",
)
Quick start — custom corpus, any LLM
from pathlib import Path
from attune_rag import RagPipeline, DirectoryCorpus
pipeline = RagPipeline(corpus=DirectoryCorpus(Path("./my-docs")))
result = pipeline.run("How do I...?")
# Send result.augmented_prompt to whatever LLM you use.
# The pipeline itself does NOT call an LLM unless you use
# run_and_generate or call a provider adapter yourself.
Status
v0.1.0 — initial release. Part of the attune ecosystem (attune-ai, attune-help, attune-author).
License
Apache 2.0. See LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file attune_rag-0.1.3.tar.gz.
File metadata
- Download URL: attune_rag-0.1.3.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6a3c3004aaacb90a43a28b8bf1eeea65eefa93b224ea08ad46ed6a60ab601e7
|
|
| MD5 |
51ba9cc8240e8f7b1c85f1a00bc0dda9
|
|
| BLAKE2b-256 |
a18e67f5d15ec26158fe736cf2ab1c8964d4318e1f6738915defd95d82b101d8
|
Provenance
The following attestation bundles were made for attune_rag-0.1.3.tar.gz:
Publisher:
publish.yml on Smart-AI-Memory/attune-rag
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
attune_rag-0.1.3.tar.gz -
Subject digest:
d6a3c3004aaacb90a43a28b8bf1eeea65eefa93b224ea08ad46ed6a60ab601e7 - Sigstore transparency entry: 1340217343
- Sigstore integration time:
-
Permalink:
Smart-AI-Memory/attune-rag@43ae50b4a7a424c40b430d6668919458bb0d5411 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Smart-AI-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43ae50b4a7a424c40b430d6668919458bb0d5411 -
Trigger Event:
release
-
Statement type:
File details
Details for the file attune_rag-0.1.3-py3-none-any.whl.
File metadata
- Download URL: attune_rag-0.1.3-py3-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4233480a7e096e338a30fcc30022ee554b347546164f334b3dede7322d6e87f
|
|
| MD5 |
813242110131f23950c19e89d9ce5080
|
|
| BLAKE2b-256 |
3cc77e658380522de18e949bfcccfcbaf8a2278b66c5d91a27a3bfca015a2c72
|
Provenance
The following attestation bundles were made for attune_rag-0.1.3-py3-none-any.whl:
Publisher:
publish.yml on Smart-AI-Memory/attune-rag
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
attune_rag-0.1.3-py3-none-any.whl -
Subject digest:
c4233480a7e096e338a30fcc30022ee554b347546164f334b3dede7322d6e87f - Sigstore transparency entry: 1340217348
- Sigstore integration time:
-
Permalink:
Smart-AI-Memory/attune-rag@43ae50b4a7a424c40b430d6668919458bb0d5411 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Smart-AI-Memory
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@43ae50b4a7a424c40b430d6668919458bb0d5411 -
Trigger Event:
release
-
Statement type: