Client
CAQH / DataSpring
Case study
A useful answer needed more than a model: approved source material, a responsive retrieval path, visible citations, and the tools to understand what happened in production.
Client
CAQH / DataSpring
Role
AI architecture, retrieval engineering, HubSpot integration, production support
Year
2026
Summary
Built a document-grounded AI assistant with Python and FastAPI, HubSpot-managed content, cited responses, and an operator dashboard. A custom retrieval layer cut response time roughly in half.
CAQH needed an assistant that could answer questions from approved documents while giving its team a practical way to manage the knowledge behind those answers. The initial managed approach exposed slow responses and friction in document management. Improving the product meant examining the retrieval and operating workflow together.
I designed and built a custom Python/FastAPI backend with HubSpot document ingestion, PDF extraction, embeddings, ChromaDB retrieval, citation handling, and administrative telemetry. The goal was a useful response path that the client could also inspect and maintain after launch.
The assistant retrieves from a curated document corpus and makes the supporting sources visible to the user.
Conversation and retrieval detail helps administrators investigate feedback, weak matches, service errors, and response performance.
The architecture decision followed observed behavior. A managed assistant can reduce implementation work, but the response still has to meet the client's needs. Here, retrieval control, document management, and latency justified taking on more engineering ownership.
The resulting path starts with documents managed through HubSpot. Ingestion extracts and segments the content, creates embeddings, and makes passages available for retrieval. FastAPI handles the answer boundary, bringing the retrieved context into a response with citations rather than treating the model's general knowledge as the source of truth.
In his original recommendation, Adam Finch reports that the custom retrieval layer cut response time roughly in half. That is a specific, client-confirmed performance result; it does not establish an accuracy increase or a business ROI multiplier.
A fluent answer can still be based on the wrong passage. The product therefore needs a visible connection between the user's question, the retrieved material, and the final response. Citations let users inspect the basis of an answer and help administrators trace problems back to the corpus or retrieval path.
Low-confidence matches and unsupported questions also need a usable path. The system cannot assume every request has a defensible answer in the source documents. Preserving that uncertainty is part of the product behavior, alongside the response itself.
The operator dashboard covers conversations, retrieved context, errors, feedback, latency, token usage, and cost. That makes it possible to investigate a poor experience without guessing whether the source was missing, retrieval was weak, an upstream dependency failed, or response generation took too long.
Those signals support an ongoing improvement loop. Repeated questions can reveal content gaps. Negative feedback can point to a retrieval problem. Latency and cost views help the team evaluate whether a change improves the complete workflow rather than a single demonstration prompt.
The delivered assistant pairs cited answers with an operating surface the client can use to review real behavior. The custom response path improved latency, and HubSpot-based document management connected knowledge maintenance to an existing client workflow.
This is distinct from the CAQH website and CMS migration. The chatbot demonstrates applied AI engineering: retrieval architecture, source visibility, client-facing delivery, and the telemetry required to support the system in production.
Related writing
Retrieval is not plumbing in an AI product. It directly shapes whether the answer feels relevant, grounded, current, and useful.
AI features improve when teams treat context assembly as product and systems design work instead of assuming the model can infer its way past noisy, stale, or incomplete inputs.
AI product quality depends on the full interface around the model: inputs, controls, evidence, state, review paths, and recovery behavior.
Relevant services
Applied AI that improves delivery, diagnostics, reporting, and internal tooling without turning the stack into a science experiment.
Custom app builds and integration work for teams that need systems to talk cleanly across HubSpot, internal tooling, and the rest of the stack.