Prompt-refiner
Lightweight optimization for LLM inputs and RAG. 🚀 Lightweight Python library for building production LLM applications with smart context management and automatic token optimization. Save 10-20% on API costs while fitting RAG docs, chat history, and prompts into your token budget. Existing solutions felt too heavy (often requiring torch/transformers), so I wrote this lightweight, zero-dependency library to solve it.
LibraryOpen source
40 stars · GitHubexternal siteArchived
Reactions (1)
Similar products
by description similarity
MonkeyPatch
github.comCheap, fast and predictable LLM functions in Python
LLM prompt template to build backend APIs faster
codehooks.ioPromptL
promptl.aia templating language designed for LLM prompting
Adaptive RAG
pathway.comHow we cut LLM costs without sacrificing accuracy
RAGless
github.comsimilar to RAG, but $0 LLM API costs at runtime