# One studio for six different kinds of work

AI Agent Studio. Updated Nov 2026 by [Mangesh Kashid](https://eemky.xyz/index.md).

At JMR Infotech, I built document ingestion, retrieval and citations for Knowledge Agent and wrote the shared evaluation suite. The JMR AI Team shipped the workflows together in SensAI, one studio for internal users.

Figure: In SensAI Studio, Knowledge Agent finds a matching passage in the selected document collection and returns a cited answer.

- Role: Sr. AI Consultant, then Lead AI Consultant
- Duration: Jun 2025 to Present
- Team: JMR AI Team

## How the studio changed our work

- 60%+: Less manual effort from orchestration and caching
- 85%+: Retrieval precision
- 50+: Internal users served

I reported these figures for the studio. The manual effort result covers orchestration and caching across SensAI, not one agent. Precision measures which passages retrieval finds, not whether the generated answer is right.

## Why I built it

At JMR, finding an answer often meant checking documents, wikis and databases separately. Drafting a requirements response or a report meant finding the source material first and then turning it into something a colleague could review. I wanted to shorten both steps without asking people to give up the formats they already worked in.

The design decision was to share the studio, not force every task through the same conversation. A knowledge question should come back with a source. A workbook review should come back as a workbook.

## Before SensAI

Early chatbots were separate experiments. A demo could show that a model could answer a question, but it didn't give the next team a repeatable way to use its own documents or get the same kind of output.

Figure: A manual search looks in three places. The draft shows lines labeled From documents, From wiki, and From database.

I started with workflows where the next step was clear. Someone should be able to open the source behind an answer, edit a specification draft, or review the evidence for a presales assessment.

## Getting started

I built the studio around a Next.js interface and a Python backend with FastAPI. Each workflow decides what context it needs and what it should return.

My earlier RAG work used SentenceTransformers for embeddings and pgvector for similarity search. A later implementation generates embeddings through OpenRouter and still searches vectors in PostgreSQL.

## Laying the foundations

For the Knowledge Agent, I separated preparing documents from answering questions. When a file is added, the backend extracts the text, splits it into passages and stores an embedding for each passage with a reference to the original file. That work is done before the document is ready to search.

Figure: Ingestion extracts text from a file, splits it into passages and indexes the embeddings with their sources.

When someone asks a question later, the backend only has to embed the query and find matching passages. It doesn't have to extract or read every document again.

## Mapping the agent workflows

The six production agents cover different kinds of work. LLM Farm lets people choose a language model in one interface. Presales Agent checks requirements in a spreadsheet. Knowledge Agent answers questions against indexed documents.

FSD Generator drafts functional specifications. Report Summarizer pulls an executive summary, key figures and findings from longer reports. Debug Visualizer turns material like an error trace into an execution diagram.

## Orchestrating agents

Orchestration meant scheduling work around the dependencies of each task. In the FSD Generator, I made the requirements analysis run first because the later sections need its output. The independent sections then run in parallel, and the interface shows their progress while the draft comes together.

Figure: The FSD Generator analyzes requirements, drafts sections in parallel and assembles them into a preview and Word document.

Caching helps with a different kind of repetition. The Presales Agent can reuse the assessment and supporting sources for a repeated requirement with the same instructions. The result goes back into the workbook so the reviewer can keep working in the original format.

Figure: The Presales Agent assesses new requirements or reuses the assessment and sources when a requirement repeats with the same instructions. Both paths update the workbook.

## Grounding answers

The Knowledge Agent embeds the question, ranks passages from the selected collection by similarity and filters out weak matches. The selected model drafts a reply, which streams back with citations to the passages it used.

Figure: An embedded query ranks passages in the selected collection. Move the threshold to dim weak matches. The reply is labeled Drafted from kept passages and cites \[1\] Source.

Retrieval responses took 1 to 3 seconds. If the search finds no relevant passages, the expected behavior is to say there isn’t enough context rather than guess.

## Giving each agent one job

The Presales Agent reads requirements from a spreadsheet, writes assessments and remarks back to it, and produces a separate evidence workbook with supporting sources.

Figure: A requirements workbook goes into the Presales Agent, which writes assessments and remarks and produces a separate evidence workbook with sources.

Knowledge Agent instead returns a conversational answer with citations. The workbook gives a presales reviewer a row to check. The citation gives the person asking a question a passage to check.

## A closer look at LLM Farm

LLM Farm lets people choose a model without switching chat tools. The Next.js interface sends the selection and conversation to FastAPI. The backend uses OpenRouter to reach the requested model and streams the reply back to the interface.

Figure: The Next.js interface shows Choose a model and Streamed reply. The FastAPI Model adapter uses OpenRouter and streams the reply. OpenRouter shows one unnamed Selected model.

Choosing a model and choosing a workflow are separate decisions. Model choice determines what generates the text. The workflow determines what material goes in, which steps happen in what order, and whether the result is a chat answer, workbook or document.

[See the LLM Farm repository](https://github.com/LEO2822/llm-farm)

## Getting work back in a form you can edit

I built the FSD Generator’s section preview so people could read the draft in the studio before downloading a Word specification to edit or share.

I built a Word export for Report Summarizer so someone could review the summary, figures and findings outside the studio.

## Testing the behaviors people rely on

I added a Pydantic Evals suite so a model or workflow change could be checked against the same examples. Its retrieval chat cases supply known passages and check whether the answer cites them. Other cases supply no passages and check whether it says there isn't enough context.

I also test whether specifications keep their sections and whether report summaries preserve key figures. The runners can compare those checks against a saved baseline.

## From separate demos to a studio

We could deploy the frontend and backend separately. The release pipeline includes lint and backend test jobs, so changes to an agent can be checked before they reach users.

Figure: SensAI Studio connects six workflows, with separate branches for Knowledge Agent retrieval and Presales assessment reuse.

## My role in deployment

I also worked with the JMR AI Team on packaging and deployment.

## A separate experiment for client demos

Outside the six-agent lineup, I built an interactive AI avatar that can explain project material and answer questions live during client demos.

Page: https://eemky.xyz/sensai
