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
- spec-kit
github · MIT
GitHub own open-source toolkit for Spec-Driven Development: you write a clear spec first, and any AI coding agent builds the implementation from it.
- nanochat
karpathy · MIT
nanochat is Andrej Karpathy full, minimal recipe to train and chat with your own ChatGPT-style model for about $100 in compute.
- kronos
shiyu-coder · MIT
An open-source AI foundation model trained specifically to model and predict patterns in financial market data.
- financial-services
anthropics · Apache-2.0
Anthropic open-sourced a set of Claude agents that draft real finance work: investment memos, research notes, reconciliations, for a human to review and sign off on.
