Shaivpidadi/refrag

REFRAG: LLM-powered representations for better RAG retrieval. Improve precision, reduce context size, same speed.

39
/ 100
Emerging

Implements micro-chunking (16-32 tokens) with fast encoder-only indexing and query-time compression policies that dynamically mark top-ranked chunks as RAW and lower-ranked ones as compressed keywords. It's model-agnostic and integrates with any LLM via context preparation, supporting sentence-transformers embeddings and currently using in-memory storage with planned vector DB support.

No Package No Dependents
Maintenance 6 / 25
Adoption 7 / 25
Maturity 9 / 25
Community 17 / 25

How are scores calculated?

Stars

26

Forks

8

Language

Python

License

MIT

Last pushed

Dec 29, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/rag/Shaivpidadi/refrag"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.