Details
Perch Insights
Fullstack AI Engineer
I moved from fullstack engineering into AI reliability for a B2B analytics product, working on natural-language queries, customer-schema retrieval, LangChain pipelines, LangSmith traces, evaluations, and ontology-guided insights.
Live 3D architecture
Use the navigator to move between diagrams and related work, then scroll for more details.
Question to query and dashboard result, with specialist agents represented as one high-level decision point.
My work
Applied AI product engineering where correctness depended on schema grounding, observability, and customer-specific evaluation.
Platform engineering
Query generation, retrieval, observability and evaluation.
Query, retrieval and evaluation
The pipeline turns a business question into a structured query by resolving time, measures, dimensions, intent, subqueries, sorting, and filters. I migrated retrieval from Pinecone to pgvector with keyword and vector matching, keeping reranking out of the interactive path to limit latency. Customer-specific evaluation suites compare final and per-agent JSON outputs to locate regressions.
LangChain and LangSmith migration
I replaced custom TypeScript agent classes and hardcoded chaining with LangChain pipelines while preserving the prompts. LangSmith exposed inputs, outputs, and context across roughly 350 execution steps and subphases, making failures easier to locate and pipeline changes easier to evaluate.
Query Retrieval Evaluation
NLP query engine; pgvector retrieval; LangChain migration; LangSmith tracing; evaluation framework
Problem
Natural-language analytics needed reliable query generation across customer schemas, business context and release changes.
My role
I moved from fullstack work into query reliability, retrieval, tracing, and evaluations, working with the product and data teams.
Implementation
Maintain specialist-agent query generation, migrate custom TypeScript classes to LangChain while preserving prompts, add inspectable LangSmith traces and per-client evaluation sets.
Engineering choices
Use Pinecone-to-pgvector hybrid retrieval; avoid reranking where latency made it unacceptable; evaluate final and per-agent JSON outputs.
Stack and domains
- TypeScript
- Next.js
- Node.js
- tRPC
- LangChain
- LangSmith
- LangGraph
- Python
- PostgreSQL
- PgVector
- Pinecone
- FastAPI
- AWS