Frameworks compose your app (LangChain, LlamaIndex, DSPy, Mastra). Vector DBs store embeddings (Pinecone). Observability tools watch traces (Langfuse). Different layers of the stack.
Picture building a house. The framework is the contractor who connects the rooms, wires the lights, and routes the plumbing. They put the pieces together. The vector DB is the warehouse next door that holds all your bricks and lumber. The contractor goes to the warehouse to fetch what they need, but the warehouse does not build the house. The observability tool is the security camera in the hallway, watching what happens inside the finished house. Useful, but it does not lay any bricks. App frameworks, storage, monitoring. Three different jobs, often confused.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: the three-layer model, why each correct option is a framework, why Pinecone and Langfuse are not, and how to pick within each layer.
| Layer | Role | Examples |
|---|---|---|
| App framework | Compose chains, agents, RAG; abstract providers | LangChain, LlamaIndex, DSPy, Mastra, Vercel AI SDK |
| Vector DB | Store embeddings; ANN search | Pinecone, Weaviate, Qdrant, Chroma, pgvector |
| Observability | Capture traces; evals; analytics | Langfuse, LangSmith, Phoenix, Helicone, Weave |
Real products, models, and research that use this idea.
- Stripe and Notion engineering blog posts describe stacks with LangChain (or raw SDK) + Pinecone + Langfuse. Three distinct layers each picked separately.
- Mastra's launch in 2025 filled the TypeScript framework gap that LangChain.js had not fully addressed; adoption tracks the agent + workflow + eval-first framing.
- DSPy production deployments at Databricks and several research labs use it as the compile-time optimiser layered over a runtime that uses LangChain or raw SDK.
- LangSmith vs Langfuse is the canonical 'pick your observability' decision; LangSmith is LangChain-native, Langfuse is OpenTelemetry-based.
- Pinecone's serverless tier is a common 2026 default for vector storage in production RAG; the framework on top is decided separately.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhere do you put DSPy if your runtime is LangChain?
QWhen would you pick Vercel AI SDK over LangChain.js or Mastra?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Calling Pinecone or Langfuse a framework. That confuses storage and monitoring with composition, and signals only one slice of the stack has been built on.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.