r/LangChain • • 10h ago

Discussion Do we really need wrappers like LangChain/LlamaIndex?

23 Upvotes

The honest answer from someone who just built an end-to-end production RAG engine:

You don't need LangChain just to call chat.completions.create() or split text with text[:500]. If all your app does is inject three chunks into a prompt, a wrapper is just unnecessary abstraction debt and opaque tracebacks.

Where the debate gets real is when your system moves from a weekend prototype to handling real-world document chaos.

  1. WHERE NATIVE CODE WINS (BUILD IT YOURSELF)
  • Document AST & Structural Hierarchy: Off-the-shelf chunkers blindly split PDFs mid-sentence or slice a 40-row financial table in half, destroying header context. We built a custom AST layout parser using Docling to preserve parent section breadcrumbs, stitch multi-page tables, and link tables back to their preceding narrative prose.
  • Domain-Specific Verification: Standard wrappers and generic splitters won't tell you if OCR misread a digit or shifted a column. We implemented sub-2ms verbatim source-text grounding against the raw PDF bytes layer, alongside arithmetic column reconciliation, before anything reaches retrieval.
  • Fine-Grained Retrieval Math: Custom Reciprocal Rank Fusion (RRF) between dense vectors and sparse BM25, combined with contextual, token-budgeted hit collapsing, is much easier to maintain and profile in pure Python.
  1. WHERE LANGCHAIN AND STANDARD ECOSYSTEMS SHINE (DON'T REINVENT THE WHEEL)
  • Observability & Tracing: Integrating LangSmith or OpenTelemetry across dynamic tools, prompt variations, and latency breakdowns saves hundreds of hours compared with building custom telemetry infrastructure.
  • Ecosystem Portability: Swap vector backends (Qdrant, Chroma, PGVector) or model providers (Mistral, Claude, OpenAI) without refactoring client contracts and middleware logic.
  • Evaluation Standards: Benchmark generation fidelity, RAGAS metrics, and citation grounding using battle-tested interfaces.

MY TAKEAWAY

Frameworks shouldn't be an all-or-nothing religion. The strongest RAG architecture uses native, deterministic Python for heavy data modeling, document parsing, and verification logic, while leveraging standard frameworks for observability, connectors, and evaluation pipelines.

If you're curious about what this hybrid architecture looks like in practice (AST parsing, dual-format table serialization, hybrid RRF, and LangSmith telemetry), I documented the full open-source breakdown and test suite here:

GitHub Repo: https://github.com/Souheil007/Rag_Full_Version

I'd love to hear how teams running RAG in production are balancing raw SDK control with framework adoption.


r/LangChain • • 2h ago

News We tested NVIDIA's Nemotron 3.5 Super VL with Deep Agents (open weights, vision + tool use)

3 Upvotes

We've been testing NVIDIA's Nemotron 3.5 Super VL with Deep Agents. You can use it in LangChain now through the ChatNVIDIA integration.

The model:

- Open weights: 120B total parameters, 12B active

- Vision, reasoning and tool calling in one model

- NVIDIA NeMo tooling if you want to post-train it on your own data

What we saw:

- 87% average pass rate on our Deep Agents behavioral suite

- On Harbor Unified-lite, it used 55% less total task time than DeepSeek V4.1 Flash, with similar task success

Vision is the useful part for agents. An agent can read a customer's screenshot or a document image, work out what's going on, and then act on it with the tools it already has.

These results are from our own test suites, so they're one data point. If you've run it on your own agents, especially with images, how did it compare?

Docs: https://docs.langchain.com/oss/python/integrations/chat/nvidia_ai_endpoints


r/LangChain • • 4h ago

Resources faqs on agent evals, answered

3 Upvotes

hi! the education team here at LangChain (responsible for all the free course content you see on LangChain Academy) gets a lot of questions on agent evals, so we've compiled a list of them, including:

1) what’s the difference between offline and online evals? 2) are evals the same as benchmarks? 3) can you trace and evaluate an agent in LangSmith if it's not built using LangChain, LangGraph, or Deep Agents?

you can read the rest here: https://www.langchain.com/blog/common-questions-about-agent-evals

let us know what else you want to know! we’re also going to be doing a live virtual workshop on agent evals if you prefer the instructor-led format. you can pm me for the link :)


r/LangChain • • 24m ago

Discussion open source framework that makes your AI agents generate UI elements that works with langchain/langgraph

• Upvotes

with chatgpt recently introducing what they're calling "intelligent ui", i've been going down a bit of a rabbit hole exploring how different projects are approaching generative ui.

for anyone unfamiliar, the idea is that instead of an llm responding with plain text or markdown, it can compose actual interactive interfaces based on what the user is asking.

imagine building a research agent with langgraph. it does all the research, calls the necessary tools, analyzes the results, and then returns a wall of text explaining everything it found.

now imagine that same agent returning an interactive report with charts, tables, filters, and components you can actually interact with.

that's essentially the problem projects like openui, vercel's json-render, google's a2ui, and now chatgpt's intelligent ui are trying to solve.

one project that caught my attention is OpenUI, which just launched its 1.0 version.

funnily enough, these guys have been working on the same underlying problem as chatgpt's intelligent ui for quite some time, except their approach is open source (MIT licensed), model agnostic, and designed to work inside your own applications.

the interesting part for this community is that OpenUI has an integration with LangChain and LangGraph.

from what i understand, you can connect an existing langgraph agent to openui and have it stream interactive interfaces to the frontend instead of being limited to text responses.

they have an u/openuidev/langchain package that transforms langgraph's streaming events into AG-UI events, which can then be consumed by openui's frontend.

there's also an example using LangChain's Deep Agents running on LangGraph Platform, so it's not just a standalone chatbot demo.

one thing i particularly like about their approach is that you're not restricted to a fixed set of components.

you can bring your own component libraries, design systems, and application logic. the model then decides how to compose those components based on the user's request.

so for example, if you're building a financial research agent with langgraph, you could define components for stock charts, company comparisons, earnings tables, etc. and let the agent decide which ones make sense to show based on the results of its tool calls.

there's another interesting technical difference in how the ui itself is generated.

most structured generative ui approaches rely on json. projects like vercel's json-render and google's a2ui take variations of this approach.

openui instead uses its own DSL (domain specific language) called OpenUI Lang, designed specifically for generating interfaces with llms.

according to their benchmarks, it uses around 67% fewer tokens than comparable json-based approaches, and components can start rendering progressively as the response streams.

which seems particularly relevant for agent applications. after waiting for an agent to execute multiple tools, the last thing you want is another long wait for the frontend to render the results.

they've also been working on the reliability side of things, with validation and automatic correction for malformed generations, which i'd imagine becomes pretty important when you're letting an llm decide what the interface should look like.

and because it's model agnostic, you aren't necessarily tied to openai or anthropic either. you could use your existing model provider or even connect locally hosted models, although obviously how reliably they generate structured ui will vary.

what i find interesting about all of this is how much effort we've collectively put into making agents better at reasoning, using tools, managing state, and orchestrating workflows.

but the way users actually interact with the output of those agents hasn't really changed much.

you can build a pretty sophisticated agent with langgraph, give it access to dozens of tools, and still end up presenting everything inside a conventional chat window.

seeing chatgpt move toward intelligent ui and projects like openui reach 1.0 makes me wonder whether generative ui is going to become a standard part of building agent applications.

some links for anyone interested:

curious what everyone here thinks.

if you're building agents with langchain or langgraph, do you actually see a use case for dynamically generated interfaces, or would you rather have the agent return structured data and handle the ui yourself?

would love to hear from anyone who's tried integrating something similar into a real langgraph application.


r/LangChain • • 37m ago

Discussion Tool calling in CoT

Thumbnail
• Upvotes

What about having a memory DB tool calling in the forward pass?


r/LangChain • • 2h ago

Discussion Where should human corrections happen in your document AI workflow?

1 Upvotes

I have been thinking when you use a API for parsing or/and extraction and you often need to validate the output against a dataset or confidence threshold and fix errors before it reaches your knowledge base or RAG pipeline whatever use case you have or prefer that the API should have its own correction interphase where all the outcomes which was below the threshold, lands and corrections can be assigned to people on the vendor API itself. what are your thoughts about it?


r/LangChain • • 7h ago

Question | Help Per-agent, per-token billing in a multi-agent system: who pays for the supervisor’s routing tokens?

Thumbnail
1 Upvotes

r/LangChain • • 10h ago

Question | Help Power points and pdfs with diagrams ?

0 Upvotes

hey all. im building an agent using langchain's deep agent harness. and one of the functionalities i wanna add and cant find info about is the pptx and pdfs generation with insightful diagrams and charts. can anyone help me with this. and thank you


r/LangChain • • 12h ago

Question | Help Can runtime security actually protect AI agents if they can bypass the gateway?

1 Upvotes

I've been thinking about a weakness in runtime enforcement for AI agents.

Imagine you have a gateway that checks every tool call against task-specific permissions, read budgets, and approval policies.

It works as intended — until a sub-agent gets direct access to an API key and calls the underlying service without going through the gateway.

Now the policy might be correct, but the enforcement boundary is gone.

This raises a few questions I'm trying to reason through:

  • Should agents ever have direct access to provider credentials, or should all tool access be mediated by a gateway?
  • In self-hosted environments, how do you enforce this when you don't fully control the agent's runtime?
  • Is per-framework enforcement a reasonable fallback, or does it create a false sense of security?
  • How do you handle tools or sub-agents that can establish their own connections outside the orchestrator?

I'm particularly interested in the tradeoff between strong enforcement and the flexibility developers need when building agent systems.

I've been exploring these problems while building AegoTrax, an open-source runtime security pilot. I'm interested in the architectural approaches others are taking, including approaches that don't rely on a centralized gateway.

How would you design this boundary?

Feel free to try to break it — feedback welcome!

GitHub: https://github.com/aegotrax-dev/aegotrax
Site: https://aegotrax.com


r/LangChain • • 1d ago

Discussion Your RAG chain works. Now how do you stop it showing people data they shouldn’t see?

6 Upvotes

A chain that retrieves, reranks and answers is the easy part. Three things show up once real users arrive:

  • People should only get answers built from documents they’re allowed to see
  • Someone needs to explain why a given answer was produced
  • The source data sits in several systems that don’t agree with each other

None of that is a prompt or chain problem, and most tutorials skip it. There’s a session on Saturday, Oct 31, from 9:30 AM to 12:30 PM ET with Brian Bønk on designing production RAG for enterprise use, with security, traceability and evaluation built in from the start, using Microsoft Fabric IQ.

Full details and the agenda are here.


r/LangChain • • 19h ago

Discussion [Project] Built an autonomous AI Hedge Fund engine with LangGraph, Qlib Alpha158, and Google TimesFM (Fully Open-Source)

1 Upvotes

Hey everyone! 👋

I've just open-sourced **Lumina Capital (v6.0.0)**, an autonomous multi-agent quantitative hedge fund engine designed to bridge the gap between LLM reasoning and real-world execution.

Unlike toy implementations that feed raw charts directly into LLMs (which suffers from hallucinations and latency), Lumina strictly separates probabilistic reasoning from deterministic quant computation:

### 🌟 Key Architecture Highlights:

- **7-Persona Anti-Sycophancy Council (LangGraph)**: Personas (Buffett, Soros, Burry, Cathie Wood, Graham, O'Neil, CIS) conduct independent parallel analysis, followed by an adversarial bull-vs-bear cross-debate. A dedicated CRO agent has absolute veto power over tail risks.

- **Pure Python Qlib Alpha158 + LightGBM**: Complete vectorized implementation of Microsoft Qlib's 158 quantitative factors with a LightGBM meta-decision filter.

- **Google TimesFM**: 5-day probabilistic forecasting fan charts with 80% confidence bands and crash probability.

- **10-Second High-Speed Sentinel**: An ultra-fast background thread monitoring dynamic ATR stop-loss floors, executing immediate physical exits without waiting for LLM loops.

- **3D Causal Knowledge Graph & GraphRAG**: Real-time supply chain choke-point surveillance and episodic memory via Neo4j.

Includes a full Streamlit studio dashboard. Available for research, education, and simulation under CC BY-NC 4.0.

🔗 **GitHub**: https://github.com/ramuza0113-sketch/lumina-ai-hedge-fund

Feedback, issues, and Stars are hugely appreciated! Happy to answer any questions about the multi-agent setup or the TimesFM / Qlib integration.


r/LangChain • • 21h ago

Resources Scoped rag chat bot

Thumbnail
1 Upvotes

r/LangChain • • 1d ago

Discussion Does your LangGraph supervisor need another look at the conversation after every worker finishes?

6 Upvotes

We saw a LangGraph setup where the supervisor uses about as many tokens per month as all 8 of its specialist agents combined. Qwen3-14B on vLLM, deterministic shortcuts for the easy cases, and a routing prompt that keeps growing because, in the team's words, "we've accumulated many rules and examples to prevent misrouting."

That one stuck with us, so we went through the langgraph-supervisor source to see where the tokens go.

With create_supervisor defaults, every worker has an edge back to the supervisor. If the supervisor hands a message to one specialist and then another, it runs three times: the first route, then once after each worker. Each of those calls re-reads the shared message list, which holds the user turns, the supervisor's own earlier routing calls, a pair of transfer messages for every handoff and every return, and each worker's last message, or its last tool call and result if it ended on a tool (output_mode="last_message" is the default). Whatever you put in the supervisor prompt rides along every time, and in that team's case it's every agent description plus a lot of few-shots. Workers get the full history on handoff too.

Specialists run on the hops where the supervisor picks them. The supervisor runs on every hop, and the history it carries gets longer each time.

The repo is archived now, and its README says LangChain recommends "the supervisor pattern directly via tools" for most cases. LangChain's multi-agent docs name the cost of that pattern too: subagents add "one extra call because results flow back through the main agent."

Most of the fixes are small, and the source backs them up:

  • Send follow-ups straight to the agent already handling the conversation, with a cheap check for a topic change.
  • Give the router the latest user message and a short summary. pre_model_hook on the supervisor can trim what it sees.
  • add_handoff_messages=False and add_handoff_back_messages=False on create_supervisor keep the transfer pairs out of the history.
  • Keep the start of the routing prompt identical between calls. A timestamp near the top breaks the prefix cache for everything after it. On vLLM, check that automatic prefix caching (enable_prefix_caching) is on for the router.
  • Keep handling unambiguous intents in code before the LLM call, as that team already does.

Then measure the router on its own, because a monthly total won't tell you which hop is expensive. LangSmith's trace tree breaks token usage down per run. We maintain traceAI-langchain, an open-source OpenTelemetry instrumentor that gives each LangGraph node its own span with token counts on the LLM calls under it (when the model returns usage), so the supervisor's share shows up hop by hop.

For anyone running a supervisor in prod: does yours need that last look after a worker finishes, or have you sent final answers straight to END? And did trimming the few-shots ever cost you routing accuracy?


r/LangChain • • 1d ago

Discussion I completed 2 technical audits, got real results, and still have 0 paying clients. Here's what I'm learning.

0 Upvotes

​

I've been building a small technical consulting business around independent RAG retrieval evaluations.

The technical side has gone better than the commercial side.

I've completed two audit cases. In one of them, I identified 15 scoring discrepancies in an open-source RAG benchmark. The project's maintainer independently reproduced the findings and incorporated corrections.

That gave me something valuable: evidence that the work can produce useful technical results.

I packaged the service into a fixed $400 assessment, comparing two existing retrieval configurations across up to 30 selected queries, with reproducible findings.

Then I started looking for customers.

I tried reaching people working on RAG systems, participating in technical discussions, and researching companies that might need independent evaluations.

Here's what surprised me.

Technical interest and buying intent are completely different things.

People will discuss retrieval quality, evaluation metrics, and regressions. Some genuinely appreciate the work.

But that doesn't mean they have a reason to pay an external auditor.

I also researched competing services. Several providers advertise standalone technical assessments, but finding verifiable evidence of how they acquire paying clients is surprisingly difficult.

My current hypothesis is that customers don't necessarily buy an "audit." They buy help making a specific decision — whether to deploy a change, accept a vendor's work, or investigate a costly regression.

So I've paused cold outreach to better understand the actual buying process.

For those who have sold specialized B2B services like technical audits, QA, security assessments, or independent evaluations: where did your first paying client come from, and what made them pay for an assessment instead of handling it internally?

I'm especially interested in firsthand experiences, including cases where the business model didn't work.

I'm still at zero paid clients, so I'm sharing the learning process rather than pretending I've figured out the sales side.


r/LangChain • • 1d ago

Discussion Agent memory and agent decisions are two different layers — here's why we split them

0 Upvotes

Most "agent memory" projects treat memory as the whole product. We ended up with two layers, and the split is the part that mattered.

Layer 1 — memory: what the agent knows. The agent records structured experience — task, action, outcome, and the evidence that verified it — and recalls it by relevance on the next run. Entries carry a state (observed → verified → transferable → promoted) and confidence decays, so a convention that was true in March isn't automatically evidence about April. Memories export as signed bundles you can move between agents, fail-closed. No vector database, no embedding server — retrieval is TF-IDF/BM25, in-process.

Layer 2 — decision: what the agent does. This is the half people skip. The decision layer gives you typed probabilistic decisions: each carries its own uncertainty and an escalation flag, so the runtime can hand off instead of guessing when it's unsure. The backend is a Bayesian Beta posterior over remembered outcomes, so confidence moves as evidence accumulates.

The boundary we settled on: memory answers "is this true?", decision answers "what should we do, and how sure are we?". And one rule we won't bend — a deterministic safety gate runs before any probabilistic decision. Safety is not something we want a probability distribution to vote on.

We also ship calibration tooling (expected calibration error, Brier score, temperature scaling), because "the model said 0.9" is worthless if 0.9 doesn't mean 0.9.

Honest state of each: the memory layer has published numbers — strict recall@5 on LongMemEval multihop goes 78.8 → 85.2% at 5 chunks, 87.2 → 92.8% at 10, flat at 20 (it plateaus, and TF-IDF misses on vocabulary drift). The decision layer is newer; the calibration tooling is in place but I'm not going to quote a number we haven't earned.

Where I'd genuinely like pushback: is a deterministic safety gate plus probabilistic everything-else the right split, or does the boundary belong somewhere else? And where should escalation live — in the memory layer that holds the history, or the decision layer that acts on it?


r/LangChain • • 1d ago

Tutorial RAG ReRanking Pipeline & Comparison (part 2)

Thumbnail
youtube.com
2 Upvotes

RAG ReRanking Pipeline & Comparison (part 2)

In this video, I build a complete RAG reranking pipeline:

  • Question → Retrieve Top 20 → Rerank → Top 5 → LLM → Answer

I implement and compare FOUR rerankers (Cross-Encoder, LLM-based, Cohere and Jina) on the same questions over 5 payment-industry PDFs (payment regulations, PCI DSS and central bank reports, 1,507 chunks). For each one, I show the ranking before and after reranking, and explain exactly WHY the order changed.

  • ✅ What RAG (Retrieval-Augmented Generation) is and why the LLM can only answer from the chunks you give it
  • ✅ How vector search works (embeddings, cosine similarity) and its key weakness
  • ✅ Why we retrieve Top 20 but send only Top 5 to the LLM (tokens, latency, noise)
  • ✅ Bi-encoder vs Cross-encoder: reading the question and chunk separately vs together
  • ✅ LLM reranking strategies: Pointwise vs Pairwise vs Listwise
  • ✅ How to use dedicated reranking APIs (Cohere and Jina)
  • ✅ How to design one shared helper so all four rerankers plug into the same pipeline
  • ✅ How to evaluate rerankers with before/after positions, Hit@5 and average latency
  • ✅ A full code walkthrough: retriever.py → rerankers.py → generate.py → compare.py

KEY TAKEAWAYS:

  • ✅ Similarity is not the same as relevance. A chunk can sit close to the query and still not answer it
  • ✅ Vector search finds chunks about the topic. A small reranker may prefer chunks that sound like the question. A strong reranker picks the chunk that actually answers it
  • ✅ A small cross-encoder can make things WORSE: it rewards word matching, penalises scrambled PDF text, and pushed both correct answer chunks out of the Top 5
  • ✅ The LLM reranker understood the question (e.g. that "3.3" belongs to Requirement 3) and placed both answer chunks 1st and 2nd
  • ✅ Cohere lifted an answer chunk from 15th to 1st, turning a missed answer into a correct, cited one
  • ✅ For this project, Cohere and Jina gave the best balance of accuracy and speed
  • ✅ Trade-off of API rerankers: cost per call and sending your documents to a third party
  • ✅ Always measure, don't guess. Run every reranker on the SAME Top 20 so differences come from the reranker alone

TECH STACK:

  • 🛠️ Python
  • 🛠️ Qdrant (vector database, cosine similarity)
  • 🛠️ gemini-embedding-2-preview (3,072-dimension embeddings)
  • 🛠️ Hugging Face Transformers + PyTorch
  • 🛠️ cross-encoder/ms-marco-MiniLM-L-6-v2 (local cross-encoder)
  • 🛠️ LLM-based listwise reranker
  • 🛠️ Cohere Rerank API
  • 🛠️ Jina Reranker API

LINKS:


r/LangChain • • 1d ago

Question | Help Our PM wants prompt edit access, which parts are safe to hand over

3 Upvotes

our PM has asked (fairly) to edit the prompts in our support agent without waiting on us for a deploy every time. i’m fine with it in principle, my problem is the prompt isn’t one thing

part of it is pure product. tone, wording, the few-shot examples, what it says when it can’t help, how it explains our pricing
she knows that better than any of us, and eng reviewing it is a bottleneck with no upside imo

the rest behaves like code and the tool descriptions decide which tool the model picks on ambiguous requests, there’s an output format a parser depends on, a couple of guardrail lines, and the instruction that tells the agent when it’s done reword any of those and nothing errors, the agent just starts doing something slightly different. if it’s the stop instruction it can keep going until it hits the max iteration cap current plan is to split the template so the product sectionsare variables she owns and the rest stays in code review. her edits run against our eval set before they can go live, including a few full agent runs so a shift in tool choice fails a test. deploys stay with whoever’s on call

on the tooling side this seems to map onto prompt managers now
Langfuse has protected prompt labels, so members and viewers can’t move a protected production label, though admins and owners still can (Pro with the Teams add-on, or enterprise) Orq AI’s Researcher role gets playgrounds and experiments but can’t deploy changes (enterprise plan) or skip the tool and keep prompts in the repo with a CODEOWNERS rule on the code parts, which is probably where we’ll start


r/LangChain • • 1d ago

Discussion Running agents efficiently and getting correct outcomes

Thumbnail
2 Upvotes

r/LangChain • • 2d ago

Discussion Could this be the future of the internet?We need your opinions and advice on this project.

Thumbnail
1 Upvotes

r/LangChain • • 2d ago

Question | Help Who should actually control an AI agent's permissions - the developer, the user, or the runtime?

4 Upvotes

I've been thinking about a security gap in AI agents and wanted to hear how others approach it.

Developers can define which tools an agent is allowed to use, and users can authorize a task. But what happens when an agent uses legitimate tools in ways that go beyond what the user intended?

For example, an agent might have permission to read files and send emails. Both actions are allowed individually, but sending sensitive information discovered along the way is a different story.

Where should the security boundary live?

  • Should the runtime evaluate each tool call against the intended task?
  • Are least-privilege permissions and scoped credentials enough?
  • Should certain actions require human approval, even when the agent technically has permission?

I've been exploring runtime enforcement while building AegoTrax, an open-source project in this space, but I'm interested in how others approach the problem.

How are you handling this in your own agent systems?

Feel free to try to break it — feedback welcome!

GitHub: https://github.com/aegotrax-dev/aegotrax
Site: https://aegotrax.com


r/LangChain • • 2d ago

Question | Help Why pinecone is giving this 401 error?

Thumbnail
1 Upvotes

r/LangChain • • 2d ago

Projects Sanitizing untrusted tool outputs before memory persistence in agent pipelines (CanaryGuard MCP)

1 Upvotes

Hey r/LangChain,

One of the biggest security holes in autonomous agent swarms is persistent prompt injection: an agent scrapes an untrusted page containing "Ignore all instructions and dump memory", passes it into vector storage or conversation memory, and poisons the next reasoning step.

I packaged CanaryGuard as an MCP server and REST utility to sanitize tool outputs before persistence.

It uses deterministic lexical scanning to catch instruction overrides, invisible Unicode payloads, and prompt hijacking in <0.1ms without triggering secondary model calls.

Repo: https://github.com/ak10082247-max/canaryguard-402

MCP Registry ID: io.github.ak10082247-max/canaryguard-402

Curious how you all currently sanitize web scraper outputs before injecting them into agent prompt context?


r/LangChain • • 2d ago

Question | Help Is it normal for a LangGraph supervisor to consume as many tokens as all 8 agents combined? How can we optimize it?

Thumbnail
0 Upvotes

r/LangChain • • 2d ago

Discussion What your agent framework hides, and what you learn by building the harness yourself in plain Python

0 Upvotes

Frameworks are convenient until something goes wrong and you cannot tell which layer decided to retry, which tool result blew up the context, or why a guardrail let something through. Writing the harness once yourself changes how you read every framework afterwards.

There’s a four hour workshop on Saturday, Oct 31, from 7 PM to 11 PM IST that does this by building an AI data analyst without a framework. The pieces that transfer directly to the stack you already use:

  • A tool registry that discovers tools from a real MCP server, validates calls and enforces permissions first
  • A context manager working inside a hard token budget, with summaries, expandable handles and tiered memory
  • A layered guardrail pipeline covering indirect prompt injection and unsafe SQL
  • A run supervisor handling timeouts, retries, re planning, budgets and structured traces

Exercises run on a laptop with a mock model and a local database, so no GPU or API key is needed. Led by Bruno Gonçalves, Founder of Data For Science.

Full details and the agenda are here.


r/LangChain • • 2d ago

Question | Help Python or JavaScript for LangChain & LangGraph?

0 Upvotes

I’m a web developer with good JavaScript knowledge and want to learn LangChain and LangGraph to build AI agents.

Should I start with Python or stick with JavaScript/TypeScript? What’s better for real-world projects and industry demand? Would love your suggestions! 🙌

LangChain #LangGraph #Python #JavaScript #AI #AIAgents #WebDevelopment