01
Overview
AI Consultant is a general-purpose family of knowledge-based AI agent assistants that answer questions from a company's own catalog and documentation, running on local LLMs. The current deployment covers a catalog of more than 2,000 automotive and construction chemicals: paints and coatings, cleaners, lubricants, foams, additives, adhesives, sealants, care products and accessories.
Its most-used job is customer support on web marketplaces. Shoppers ask which product suits their surface, how long it takes to cure, or whether two products work together. The agent drafts an answer from the catalog and knowledge base, down to the exact article and variant, and a support agent approves it or sends it back. Every answer sent back becomes a lesson for the system, so the assistants and their knowledge base keep improving from real questions.
02
Support staff approve
Incoming questions land in a support dashboard connected to the marketplaces' seller APIs. For each question the agent streams a draft: one short, plain paragraph, the way a marketplace reply should read. A support agent reads it, edits it if needed and approves it, and the dashboard publishes the answer back to the marketplace and logs it. For tricky questions they can open a follow-up chat with the agent to check its reasoning.

03
Wrong answers become fixes
When a draft is wrong, the support agent sends it back with a report instead of quietly fixing it. Reports land in the admin app next to the full conversation telemetry, and each one turns into a fix: a missing fact goes into the knowledge base, a catalog gap gets filled, or the prompts and tools get adjusted, so the same mistake doesn't come back.

04
From scripted routing to an agent
The project went through three generations in one monorepo. The first assistants routed every question through a fixed pipeline: deterministic shortcuts where possible, then LLM steps to classify intent, extract a profile of the task, score and rerank candidate products, critique the choice and compose the answer. On a focused catalog of 136 sealants and adhesives, that gave predictable, well-reasoned answers.
SmartConsultant, the latest generation, replaces the router with a tool-calling agent. The model decides at runtime which tools to use: search over the knowledge base, vector search over the catalog, grouped searches for jobs that need several products, article lookup, and listing a product's variants by colour, packaging or brand. That let one general prompt cover the whole 2,000-product catalog instead of a hand-written handler per scenario.

05
Running it in production
The agent sits behind a FastAPI chat API with streaming over SSE, shared by the support dashboard and a chat page on the client's storefront. The API is stateless: each response returns a session with the visible history and the products resolved so far, which the client sends back with the next message, so follow-up questions about "the second one" just work.
Everything ships as a Docker Compose stack on a VPS. Catalog and knowledge retrieval use ChromaDB with TEI embeddings, and the models run locally, self-hosted through vLLM, with Vertex AI available as an alternative endpoint. An admin app lets the client browse telemetry from real conversations, review reported answers, chat with the live assistants and switch LLM endpoints without a redeploy.
