AskOpenSource by The Arthi AI Collective

Lookalike

Python developers, startups, and teams that run LLM-powered apps such as support bots, FAQ assistants, internal Q&A tools, and agents that repeat similar prompts. They use it to skip paying for a second model call when a user asks the same question in slightly different words. It's also useful for students learning how MinHash, LSH, LRU caches, and heaps work in real code.

View hasssaaankhan/lookalike on GitHub
GitHub stars
—
Forks
—

Project details

Repository
hasssaaankhan/lookalike
Licence
MIT
Catalog status
Available
Catalog check
2026-11-24
Required costs
Requirements: Python 3.8 or newer (tested on 3.12). Nothing to install: copy lookalike.py into your project and import it. Cost of Lookalike: $0. It has no dependencies, no vector database, no embedding service, and no network calls. Cost of your model: Your LLM provider still charges you for the calls that miss the cache. Lookalike only removes the repeated ones. Limit to state: The cache lives in memory, so it resets when the program restarts. It matches similar wording, not similar meaning.

Repository description

Same question, 10 wordings, 10 LLM bills. 😬 Lookalike caches near-identical prompts: one Python file, zero dependencies, no vector DB. Code: https://github.com/hasssaaankhan/Lookalike Alternative with SQLite persistence: https://pypi.org/project/llm-response-cache/ #Python #LLM #OpenSource

Explore by topic

More tools in Apps & utilities