Public-safe reconstruction · Bounded agentic workflow

Ask Evidence

An AI analysis workspace where questions are answered through bounded tool use, traceable evidence retrieval, and visible review surfaces.

Product areaAI-based knowledge management
Use caseInterrogate completed workforce analysis through conversational questions
AI EngineeringContext engineering · RAG-informed retrieval · bounded tool calling
OutcomeReviewable analytical answer · sources, caveats, tool trace

Project purpose

Fast analytical answers with visible evidence boundaries.

Ask Evidence explores how an AI assistant can answer follow-up analytical questions with evidence, caveats, and tool activity in view.

Help users interrogate completed analysis while keeping every AI answer reviewable.

Why the product problem mattered

Reports and dashboards often contain enough evidence for deeper follow-up. Users still need quick explanations, caveats, and source references after the main analysis is delivered.

How the prototype responded

The workflow gives the model a fixed set of project tools. It can choose and repeat tool calls. The tools control which evidence, sections, variables, and implementation details can enter each answer.

Bounded agentic workflow

The agent selects a route through permitted tools, returned evidence, and review surfaces.

Right-sized retrieval

Retrieval was designed for a smaller, structured evidence base.

Ask Evidence uses a RAG-informed retrieval-before-generation pattern for a compact, curated evidence base. The retrieval layer combines structured lookups, heading-based section retrieval, and source-code search.

Retrieval before generation

Retrieve before generating.

Answers are generated after project evidence is selected through scoped tools rather than from model recall alone.

Structured-data retrieval

Query prepared evidence directly.

CSV and XLSX evidence is filtered by explicit regions, occupations, industries, measures, and time periods.

Deterministic section retrieval

Use document structure instead of embeddings.

Project memos and methodology documents are split at Markdown headings and retrieved through predictable title matching.

Source-code retrieval

Inspect implementation truth when needed.

Symbol and text search can retrieve exact functions, formulas, constants, and branch logic when documentation is too broad.

Bounded autonomy by design

The agent chooses the route inside a fixed evidence boundary.

01

The agent chooses tools inside controlled evidence access.

Tool boundaries

The model decides which permitted tools to call, while those tools control the evidence that can be returned.

02

Missing context triggers a concrete clarification.

Clarification and refusal

Missing regions, wage bases, time windows, or ambiguous fields trigger one concrete clarification instead of plausible completion.

03

The original data grain stays intact.

Context engineering

System instructions define valid regions, time anchors, wage bases, source limitations, and prohibited calculations.

04

Execution remains inspectable.

Tool-call traceability

Tool names, arguments, returned results, sources, caveats, and errors remain available for review.

Under the hood

The architecture separates agent reasoning from evidence access and review.

A DeepSeek model operates inside a LangChain tool-calling loop. FastAPI exposes the agent and workspace services, while React keeps the answer, selected evidence, and execution trace visible to the reviewer.

Layer Responsibility
Experience layer

React conversation, guided prompts, and a synchronized evidence workspace.

Agent layer

DeepSeek interprets questions and synthesizes answers from retrieved evidence.

Orchestration layer

LangChain binds tools and manages an iterative execution loop capped at 12 tool turns.

Tool layer

A dynamic project registry exposes 18 bounded analytical operations.

Evidence layer

Structured datasets, project memos, methodology documents, and implementation source.

Control layer

Scope rules, parameter constraints, refusal behaviour, and finite execution limits.

Trace layer

Tool calls, arguments, results, sources, caveats, and errors remain inspectable.

Product surface

One workspace connects user intent, agent output, and supporting evidence.

01 Ask naturally while establishing working context
Ask Evidence interface with an empty conversation, editable question controls, and a sector-ranking evidence workspace. Public-safe reconstruction · Example responses vary by question, selected tools, and returned evidence.

Guided prompts establish analytical intent and reduce missing context while keeping the underlying data structure out of the user's way.

02 Review the response beside its evidence trace
Ask Evidence interface showing a user question, a grounded answer, linked evidence sections, and the workspace launcher. Public-safe reconstruction · Example responses vary by question, selected tools, and returned evidence.

Agent-generated answers remain connected to tool calls, source sections, structured rows, variables, and visible caveats.

Methods and tools

Methods combined agent orchestration, bounded retrieval, and analytical review UX.

Agentic workflow design LLM tool calling Tool orchestration Evidence retrieval Deterministic section retrieval Context engineering AI guardrails Evidence traceability Human review UX DeepSeek LangChain FastAPI React TypeScript

The page uses anonymized, portfolio-safe content to demonstrate the product approach while protecting client-specific analytical material.