SparkWeb

AI Engineer · Open to remote

AI that works outside the demo.

A pretty demo is easy. A system that proves itself isn't.

I'm Rafael Prado. I build applied AI systems in Python — RAG with citations verified against the source text, and agents that resolve a task end to end. Before that, five years of full-stack web work, which I still deliver through SparkWeb.

RAGCitations verified against the source
AgentsCrewAI + Claude in a typed pipeline
5+ yearsOf full-stack web before AI
crivo · due diligence
Question

Is there a non-compete clause? For how long?

Answer

Yes. The contract provides for a 24-month non-compete after termination, limited to national territory.

Cited source Acquisition Agreement — Clause 8.2, p. 14 “…the Seller shall not compete, directly or indirectly, for a period of 24 (twenty-four) months from termination, throughout the national territory.”
No source No passage cleared the similarity threshold With no evidence in the documents, the system doesn't make up an answer: it abstains.
citation checked against the source text out of scope → the system abstains
Voice-to-voice latency

Every stage measured against the audio clock

Measured median
≈3.2 s
Target
<1.5 s
endpointingfirst tokenfirst sentencefirst sound
honest status: target not reached yet
Production error log

From stack trace to tested patch

LogAnalystisolates frames and correlates request IDs
typed hand-off
CodeAuditorconfirms the hypothesis and hunts latent bugs
typed hand-off
PatchEngineerminimal patch + regression test
4/4 tests passing +1 latent bug found
Metrics and limits in plain sight
3Open projectsRAG, voice, and agents on GitHub

Illustrative demo of the three projects

Day-to-day stack

Python, FastAPI, Claude API, CrewAI, ChromaDB, BGE-M3, Pydantic v2, pytest, Docker, Streamlit, Deepgram, ElevenLabs.

Rafael Prado
AI Engineer

Who does it

Rafael Prado

I spent five years delivering websites and full-stack systems. Today I build the layer they were missing: AI that answers with a source and recognizes the limits of what it knows.

What interests me in applied AI is not simply wiring APIs together. In Crivo, that means proving every citation; in Fluencto, measuring the real time from user speech to audio response; in AIR, preserving typed contracts between agents. Every project pairs its demo with evidence and explicit limitations.

In parallel I still lead SparkWeb, delivering institutional sites and landing pages for clients across Brazil — now with AI integrated into every step, from research and copy to code review.

PythonRAG & vector searchMulti-agent systemsContext engineeringLLM evaluationFastAPIWordPressUX/UI

AI projects

What I've built in AI

Three open-source projects exploring different engineering challenges: RAG reliability, voice latency, and agent coordination. Each case presents its architecture, evidence, and what is still under validation.

Voice AI · Latency validation in progress

Fluencto

A voice receptionist for clinics that understands patients, checks schedules and services through tool calling, and responds with natural audio — all within one WebSocket session.

The challenge

In a voice conversation, a correct answer that arrives late still feels wrong. The system must coordinate transcription, reasoning, database access, and synthesis without blocking the flow — while keeping history consistent when the user interrupts.

Real-time architecture

  1. End-to-end streaming. The browser sends PCM16 through AudioWorklet; Deepgram, Claude, and ElevenLabs stream their work instead of waiting for full outputs.
  2. Context-aware tools. The agent queries services, professionals, schedules, and FAQs in SQLite through tool calling.
  3. Consistent barge-in. New speech cancels the LLM and TTS, clears the player, and preserves a valid conversation history.
  4. Observable latency. Every stage is measured against the audio clock, separating endpointing, first token, first sentence, and first sound.

Current status: the median measured before the latest fix was approximately 3.2 s. Pre-connection has been implemented, but it still needs notebook validation and repository sync before the public demo.

RAG · Actively developed

Crivo

RAG for contract due diligence, with citations verified against the source text.

The problem

In contract analysis, an answer without a citation to the document, clause, and page is worth nothing — and an LLM will confidently make one up. Indexing a PDF is the easy part; the hard part is delivering proof that the system didn't hallucinate.

How I solved it — four barriers against hallucination

  1. Threshold-based abstention. If the score of the retrieved chunks doesn't clear the minimum, the system doesn't answer.
  2. Numbered context and a closed prompt. Each chunk enters with document, clause, and page; the prompt forbids outside knowledge.
  3. Literal citation verification. Fuzzy matching ≥ 0.90 between the cited passage and the source text — if it doesn't pass, it doesn't ship.
  4. Full trail. The interface shows the entire source text with the cited passage highlighted.
Multi-agent system

Autonomous Incident Resolver

A multi-agent system (CrewAI + Claude) that reads a production error log, finds the root cause, audits the code, and delivers a tested patch — with an incident report generated end to end.

The problem

Incident triage eats up the team's most expensive time: reading the stack trace, correlating requests, finding the line, and writing the fix plus the test that proves it works.

How I solved it — three agents, one typed hand-off

  1. LogAnalyst. Runs SRE-style triage: isolates the application frames and correlates request IDs until it identifies the trigger.
  2. CodeAuditor. Confirms the hypothesis and hunts for latent defects along the code path, beyond the reported crash.
  3. PatchEngineer. Turns the audit into a minimal patch, converts the business error into a 4xx response, and writes the regression test.

The hand-offs between agents are typed Pydantic objects, not free text — that's what keeps information from degrading from one stage to the next.

All three repositories are open — with architecture, tests, technical decisions, and documented limitations.

View the full GitHub

How I work

AI is a tool. Engineering is the job.

The same six-step process, whether it's a RAG system or a multi-step agent. AI speeds up every one of them — none of them are its call to make alone.

  1. 01

    Understand the problem

    Before any prompt: what needs to be true for the solution to work, and what happens if it's wrong.

  2. 02

    Scope and data

    What data goes in, where it comes from, how it's split — and, most importantly, what the system must not answer.

  3. 03

    Fast prototype

    AI as a pair-programmer to get something running in days, not weeks — and find out early what doesn't work.

  4. 04

    Architecture and contracts

    Explicit schemas and types between stages. It's at the boundary between components that information gets lost — in software and in AI pipelines alike.

  5. 05

    Evaluation

    Golden set, automated tests, and accuracy and abstention metrics. Without that it's a nice demo, not a system.

  6. 06

    Delivery and observability

    Docker, logs, and what needs to be watched after deploy. Delivery is the start of maintenance, not the end of the project.

Available for new challenges

Let's talk about your next challenge?

I'm open to AI Engineer roles — remote or hybrid — and to applied AI projects where architecture, evaluation, and product have to move together.

For websites and landing pages, SparkWeb is still taking on new work.

InterestAI Engineering and applied AI
FormatRemote or hybrid

Open to remote work worldwideView design portfolio ↗

Talk on LinkedInRoles and networking