I build RAG and agent systems, and measure whether they work.
Hi, I'm Juan Pablo. I've built products end to end as the only AI developer, from the database to deployment.
- Open to remote roles and projects
- UTC−3, overlaps US working hours
- English C2 · Spanish native
- 1
Model the data
Schemas that keep every customer's data apart and still make sense two years from now.
- 2
Retrieve the right context
Keyword and vector search, a reranker, and every stage measured, so the model answers from the right passages.
- 3
Let agents split the question
A planner breaks a question into searches, so the agent finds the second fact a single search misses: 86% correct against 74% on 100 multi-hop questions.
- 4
Ship it
Deployed on a real server, tested, and handed over with docs.
Model the data
Schemas that keep every customer's data apart and still make sense two years from now.
create table documents ( id uuid primary key, tenant_id uuid not null references tenants, title text not null, body text not null, updated_at timestamptz default now() ); create index on documents (tenant_id);
Retrieve the right context
Keyword and vector search, a reranker, and every stage measured, so the model answers from the right passages.
POST /api/search { "query": "Can I get a refund on an annual plan?", "top_k": 3 } 200 OK · bm25 + dense · reranked [ { "score": 0.92, "text": "Annual plans are refundable within 30 days…" }, { "score": 0.81, "text": "Refunds go back to the original card…" }, { "score": 0.64, "text": "Monthly plans renew on the same day…" } ]
Let agents split the question
A planner breaks a question into searches, so the agent finds the second fact a single search misses: 86% correct against 74% on 100 multi-hop questions.
Agent run
a real benchmark question · 5 callsShip it
Deployed on a real server, tested, and handed over with docs.
Pipeline passed · 48 tests
gunicorn restarted · nginx reloaded
Live in production
Yes, within 30 days of purchase1. The money goes back to the original card2.
Selected projects
All projectsResearch agent with its own benchmark
A RAG service, a four-agent research loop and a benchmark that tests whether the loop beats a single LLM call. On 100 multi-hop questions it did: 86% correct against 74%.
Retrieval ablation of my RAG pipeline
Each stage of my RAG service's retrieval measured on 1,008 labeled questions. The biggest gain was a one-line tokenizer fix; fusion only helped once BM25 was fixed, and the reranker took over 95% of query time.
Prompt injection lab
36 prompt injections planted in a tool-using assistant's documents, against four defenses, alone and combined. A warning cut attacks from 42% to 6%; one fake policy update beat every defense I tested.
Recent writing
All writingWhen does LoRA fine-tuning beat a good prompt? I measured the crossover
ArticleA 1.5B model fine-tuned with LoRA against a larger model prompted with examples, on the same 100, 500 and 2,000 labeled examples. The prompt won easily at 100; at 2,000 the small model was 2 points behind, within noise, at 1/29 of the input.
Nov 1, 2026What actually stops prompt injection? I tested four defenses
ArticleI planted 36 injections in the documents a tool-using assistant reads. Undefended, 42% worked; a one-paragraph warning cut that to 6%. One fake policy update beat every defense I tested, and the strongest filter cost the answers.
Nov 1, 2026Does hybrid search plus reranking pay for itself? I measured my RAG pipeline
ArticleI took my RAG service apart stage by stage on 1,008 labeled questions. The biggest gain was a one-line tokenizer fix, the reranker reorders more than it finds, and hybrid fusion added nothing significant until BM25 was fixed, and even then only at depth 10.
Why I do this
As a kid, science felt like magic. Chemistry, physics and biology were the closest thing to it I could find, so I spent my school years in science olympiads, up to a bronze medal at the International Junior Science Olympiad. The more I learned, the more the magic settled into science: still fascinating, but explained.
Then language models arrived: computers you can talk to like a friend. That feeling of “this is magic” came back, and I've been following it since, with the habit science left me: checking whether the magic actually works.
I like new things, learning, and the feeling of the future arriving a little early. I like building things that help other people and teach me something on the way. And I like meeting people who care about the same things: people I can help, and people I can learn from.