← Latest products

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

Visit github.comexternal site

Reactions (1)

Similar products

by description similarity

  1. MonkeyPatch

    github.com

    Cheap, fast and predictable LLM functions in Python

    Hacker News95 pts

  2. Hacker News7 pts

  3. PromptL

    promptl.ai

    a templating language designed for LLM prompting

    Hacker News7 pts

  4. Adaptive RAG

    pathway.com

    How we cut LLM costs without sacrificing accuracy

    Hacker News8 pts

  5. RAGless

    github.com

    similar to RAG, but $0 LLM API costs at runtime

    Hacker News6 pts