I built an AI assistant called Proxy, and a $10 budget ended up deciding most of how it works. This is the story of how I got there: what I tried first, what went wrong, and why I ended up using Jev.
Where this started
I’ve built a lot of projects, and my portfolio started to feel like too much.
Nobody has time to explore every project, and I can’t explain my work to every visitor individually. So I built Proxy, an AI assistant that answers questions about me and my work on my behalf.
I also wanted it to keep up with me. Proxy reads from my notes, so whenever I finish something new I add it there and Proxy knows about it.
The idea was simple: build it once, keep the information fresh, and replace the underlying model when necessary.
The catch: $10
This is a hobby project, and every question costs money. So I set a hard monthly limit of $10 and defined what Proxy needed to achieve:
- Stay under $10, even in a bad month.
- Answer accurately.
- Answer fast.
- Never go quiet. A visitor should always get a reply.
- Be small enough to build and run alone. I had limited time.
With unlimited money, I could have built something much bigger. But with $10, every architectural decision had to justify its cost and complexity.
Idea one: keywords
My first call needed no infrastructure at all, just keywords.
I listed a few words for each topic, and when a visitor asks something, a matching word sends those notes to the AI, a bit like a regex.
It’s fast, simple, and free to run.
But I quickly ran into a problem: words aren’t the same as meaning.
A visitor could ask the same question in completely different ways. A keyword might trigger the wrong topic, or several keywords might match and send unnecessary information to the AI.
That created two problems:
- The AI received irrelevant context, which could affect answer quality.
- More context meant more input tokens, and more tokens meant more money.
Even a relatively simple question could carry around 3,000 tokens.
Idea two: RAG
The conventional solution was RAG (Retrieval-Augmented Generation).
The idea is straightforward: convert your notes into embeddings, store them in a vector database, and retrieve relevant information based on the meaning of a visitor’s question. It’s much better at semantic matching than basic keywords.
But for Proxy, it introduced more complexity than I needed: an embedding pipeline, a vector store, update handling, and another retrieval step before generating an answer.
Lightweight and managed RAG solutions exist, but I wasn’t searching hundreds of documents. I had a small collection of notes and simply needed to identify the relevant topic.
RAG was reasonable, but it wasn’t the right fit for this project.
Idea three: Jev
Then I came across Jev.
Jev isn’t a conversational model. It doesn’t generate responses or write text. Instead, it makes decisions.
You provide a situation and a set of possible options. Jev evaluates the situation, selects an option, and tells you how confident it is.
That was exactly the problem I needed to solve.
I didn’t need another model to understand my entire collection of notes. I needed something that could look at a visitor’s question, identify the relevant topic, and select the information to send to the actual AI model.
Jev gave me that without introducing a database or a separate embedding pipeline.
For my requirements, it was a much simpler approach.
Here’s how the three options compare for my $10 budget:
| Criteria | Keywords | RAG | Jev |
|---|---|---|---|
| Cost | Free to run, but wrong matches waste tokens | Embeddings and a vector database | Tiny cost per question |
| Time | Quick | Longer | Quick |
| Maintenance | Add words as questions slip through | Re-embed when notes change | Low |
Jev kept cost, time, and maintenance low. My goal was to send less information to the AI, because fewer tokens meant a lower bill. I also wanted to do that without running another system myself, and Jev let me do both.
How it works now
Jev is the router, not the speaker.
- A visitor asks a question.
- Jev evaluates the question and selects the relevant topic, such as projects, experience, or contact information.
- Proxy retrieves only the notes associated with that topic.
- The AI model receives the question and selected context and generates the response.
The old keyword implementation didn’t go away. I kept it as a fallback.
If Jev becomes unavailable, returns an unknown result, or can’t confidently identify the right topic, Proxy automatically switches to keyword-based routing. This way, a temporary issue with the routing service doesn’t leave visitors without an answer.
It’s a simple fallback, but it gives me another layer of reliability without adding much complexity.
The result
A simple question used to carry around 3,000 tokens. Now, requests average 1,000–1,200 tokens, with none exceeding approximately 1,500.
At 300 questions a day, a typical month comes to around $2.30.
I also calculated a worst-case scenario, assuming every question uses the maximum token allowance throughout the month. Even then, the estimated cost stays around $8.35.
That keeps Proxy within my $10 budget.
The quality of the answers remained acceptable too. I tested different questions and scenarios, and the responses were generally good, with occasional variations that I could live with.
The trade-offs
Jev wasn’t a perfect solution, and there are a couple of things worth mentioning.
Latency
I’m outside the US, and from my location, Jev’s response time is often at the higher end of the 70–500 millisecond range advertised by TypeSafe. Sometimes it goes beyond that.
TypeSafe says its published performance figures come from the US West Coast, where its service is based. So the difference isn’t particularly surprising.
It didn’t change my decision because the overall cost and simplicity were more important for this project. But if response speed were my primary requirement, I’d benchmark the service from the actual locations where my visitors are.
Dependence on an external service
Jev is another external dependency. If it becomes unavailable, Proxy needs to fall back to the keyword-based approach.
That’s a trade-off I accepted rather than trying to eliminate every possible failure point.
There are also open-source decision models, such as Laya, that could potentially be hosted independently. I haven’t experimented with those yet, but they’re worth exploring if avoiding hosted dependencies becomes a priority.
When I’d choose differently
I wouldn’t recommend Jev for every application.
For Proxy, I have a relatively small collection of notes and a limited set of topics. The main requirement is to identify the right topic and pass only the relevant information to the AI.
That’s where Jev fits.
But if my notes grew into hundreds of documents, or visitors started asking complex questions that required retrieving information across multiple sources, I’d reconsider the architecture.
In that situation, RAG would probably be a much better fit.
The choice isn’t about whether Jev is better than RAG. They’re designed to solve different problems, and the right approach depends on what the application actually needs.
The takeaway
A budget isn’t just a limit. It can become your design brief.
A few things I took away from building Proxy:
- Understand the problem before choosing the technology. I didn’t need a sophisticated retrieval system. I needed a lightweight routing mechanism.
- Start simple. Keywords got me running quickly, and they’re still useful as a fallback.
- Don’t over engineer. A technically impressive architecture isn’t necessarily the right architecture for a small project.
- Think about failure early. Even a simple application should have a reasonable fallback for important dependencies.
- Measure the result. Reducing tokens from around 3,000 to roughly 1,000 made a meaningful difference to my monthly cost.
Looking back, the biggest lesson wasn’t about finding a cheaper AI model. It was about understanding what the system actually needed before choosing the technology.
RAG would have been a perfectly reasonable solution for a different problem. But Proxy didn’t need document retrieval at scale. It needed a reliable way to select a small amount of relevant context.
Once I understood that distinction, the architecture became much simpler.
And that’s probably my favorite part of this project: I didn’t build the most sophisticated system I could. I built a system that made sense for the problem I had.



