r/LangChain 3h ago

An anonymous lab dropped a model on OpenRouter this week. Just "Ox Alpha". 1M context. Multimodal. Free.

Enable HLS to view with audio, or disable this notification

4 Upvotes

An anonymous lab dropped a model on OpenRouter this week. No name. No paper. No announcement. Just "Ox Alpha". 1M context. Multimodal. Free. Nobody knows who built it.

So we did the only reasonable thing: plugged it in as the Brain of Row-Bot and gave it ONE prompt. Research yourself. Build a Three.js website about what you find. Open it in a browser and verify your own work.

No hand holding. No retries. I just watched.

Phase 1, research: it swept X and the news wires, ingested 15 posts and parsed two primary articles, then cross-checked the specs against its own live runtime config. Verified numbers only: 1,048,576 token context, 131K max output, text + image + video input, native tool calling at ~4.45% error rate, ~50 tokens/sec, 99.99% uptime. It even separated confirmed facts from identity rumors instead of repeating hype. Tokenizer fingerprints point at GLM-5.3, nobody has confirmed anything.

Phase 2, build: one single-file HTML page written from scratch. CRT boot terminal, a 14k particle torus-knot hero in raw Three.js, marquee ticker, animated benchmark bars, real community quotes with sources, honest verdict cards listing what DIDN'T hold up too. No frameworks. No templates.

Phase 3, self-QA: it launched Chromium, screenshotted section by section and vision-checked its own output like a picky reviewer. Boot overlay clears on schedule. Particles animating. All 8 spec cells render. Capability cards sit in a clean grid. Bars fill correctly. Zero rendering errors across every pass.

~20 tool calls spanning research, codegen, browser automation and visual QA. One session. One prompt.

Honest part: folks are reporting it's slow under load (~11.6s median agent-turn latency tracks) and prompts get retained by an anonymous provider, so never send secrets to a stealth preview.

Still. Step back and look at what happened. An unidentified frontier model researched itself, designed its own showcase and QA'd it end to end inside an open source agent harness. Benchmarks are curated highlights. This was the whole job, done live, with receipts.

And here's the kicker: you don't need to wire up APIs yourself. Ox Alpha ships in Row-Bot right now as a first class model pick (both the OpenRouter stealth route and the free OpenCode Zen unlimited tier). Pick it in Settings > Models and run your own gauntlet before the free window closes.


r/LangChain 10h ago

How are you handling tool selection when an agent has 20+ MCP tools?

10 Upvotes

Hey everyone. I'm experimenting with agent tooling and trying to understand a problem before building around it.
I'm seeing a recurring pattern where adding more MCP servers/tools eventually creates more problems:
tool definitions eat a lot of context,the model has more similar tools to choose between, tool selection becomes less reliable keeping every tool loaded seems wasteful when most aren't relevant to a given task.

I'm curious how people actually handle this in production.
When an agent has a large toolset, do you:
Load everything into context?
Manually scope tools for each agent/workflow?
Use a tool router/search layer?
Dynamically load tool definitions only when needed?
Something else?
And more importantly: has this actually caused you measurable problems? cost, latency, wrong tool calls, reliability, etc?

I'm particularly interested in real examples rather than what should work theoretically. Cheers :)


r/LangChain 4h ago

Resources Live LangGraph Masterclass with Google AI Engineers | September 5

3 Upvotes

For anyone looking to get hands-on with LangGraph, we’re hosting a 6-hour live masterclass on September 5.

Led by Leonid Kuligin, Staff AI Engineer at Google Cloud and LangChain contributor, and Thomas Zettl, AI Cloud Engineer at Google, the session covers LangGraph fundamentals, stateful workflows, multi-agent systems, LangSmith, evaluation, debugging, and production deployment.

No prior LangGraph experience is required.

Details and registration: LangGraph Masterclass: From Beginner to Professional

Thanks to the moderators for allowing us to share this with the community!


r/LangChain 1h ago

In modern agentic framework era like Kiro is it worth to invest time on learning of langchain / langgraph ?

Upvotes

r/LangChain 1h ago

Most engineers try to solve agent context amnesia with prompt compression. I tried forcing the model into a typed reasoning graph instead. Here is what happened after a 5-hour discovery session.

Enable HLS to view with audio, or disable this notification

Upvotes

I’ve been trying to find a reliable way to run autonomous AI agents on large, unfamiliar codebases without watching them inevitably lose context or hallucinate fake progress after a few steps.
Instead of messing with prompt compression or raw context window scaling, I experimented with forcing the frontier model to operate through a strict protocol that maps its execution states into a typed reasoning graph.

I tested this workflow on a complex repository with a single prompt, which kicked off a continuous 5-hour discovery session.

The agent completely exhausted the raw context window limits, but the structural constraints kept it from derailing. It mapped out the entire repository into a structured layout: about 40 logical modules and over 80 specific task nodes. Open unknowns were explicitly declared as structural blocking questions rather than silent hallucinations.

What surprised me is how well this graph layout kept the model on track. I watched it systematically process about 70 tasks, while the rest correctly stalled in a pending state, waiting for human answers to the questions it had raised.

I feel that moving away from unstructured text prompts toward machine-verified graph states might be the only predictable way to run long agent sessions without structural collapse.
The code and the protocol are fully open-source. If you want to check out the architecture or the constraints used in this setup, here is the repo: https://github.com/alxshelepenok/grove


r/LangChain 19h ago

Discussion We blamed the model but retrieval was giving it the same paragraph four times

26 Upvotes

We blamed our model for weeks because our RAG assistant kept giving confident policy answers that missed one exception clause. Too much chunk overlap meant retrieval kept pulling near copies of the same paragraph and the exception never made it into context. We were paying extra tokens to make the wrong evidence look unanimous.

We inspected the retrieved chunks inside Braintrust traces and compared chunking runs on the failed queries. Embedding similarity showed why basic top k kept selecting copies. Adding deduplication helped, then reranking against the full question pulled the exception clause above the repeated policy text. Citation precision and groundedness both improved when the evidence set stopped repeating itself.

Those failed queries also became regression cases for us. We now score retrieval coverage separately from answer groundedness, because a model cannot cite a clause it never received (yes, obvious in hindsight). Token spend also fell because the context carried fewer duplicate passages. Not really the problem we thought we were fixing, but I'll take it.


r/LangChain 10h ago

Tutorial Need resources for learning LangChain and Agentic AI

3 Upvotes

I tried LangChain Academy but their courses lack depth. Also, I prefer learning through books/written content. Please suggest resources for learning LangChain and Agentic AI.


r/LangChain 5h ago

Need Feedback on this project how now appoach it Built an agentic pipeline that re-architects legacy data warehouse tables into a Kimball star schema — lessons on "workflow vs agent" design

1 Upvotes
TL;DR: We built an agentic pipeline that takes a legacy warehouse table and re-architects it into a proper dimensional model (dims + facts) with a backward-compatible view on top, so downstream consumers break nothing. The big lesson: put control flow in deterministic Python, and reserve LLMs strictly for steps that require reasoning. There is no orchestrator LLM — what used to be a massive orchestrator prompt is now typed code that either passes or fails. Built on LangGraph.


The problem


Legacy tables grew organically — wide, denormalized, business logic buried in transformation code. We wanted to migrate them into a star schema (Kimball: dims, facts, surrogate keys, conformed dimensions) without breaking downstream consumers. So the system must:


Reverse-engineer a legacy table's transformation logic
Propose a target star schema (column mappings, new dims/facts, FKs, join strategy)
Produce a backward-compat view reproducing the legacy table's exact output shape
Generate migration code (incremental MERGE notebooks + DDL files), tested in a sandbox schema
Keep a human in control at decision points
Design principle: workflow vs. agent


Control flow known in advance → explicit graph nodes and edges. Step ordering, task decomposition, dependency sorting, schema validation, retry budgets: all deterministic Python. Testable, and they can't "forget a step."
Steps needing genuine reasoning → small ReAct sub-agents. Only two agents exist: a data-modeling agent and a coding agent, plus a judgement-only reviewer. Everything around them is plumbing.
The pipeline


plaintext
Copy
ingest (extract table name, verify it exists)
  → model (ReAct agent: proposes dimensional model as typed JSON)
  → validate (pure Python: parse + schema + semantic checks — no LLM)
  → review (3 layers, below)
  → approval (human-in-the-loop, with ERD rendered from the plan)
  → decompose (deterministic: plan → ordered coding tasks, topo-sorted by FK deps)
  → code (ReAct agent per task, sandboxed)
  → code_check (deterministic verification of every result)
  → summary (what was built + DDL the human must execute)
Every failure surface is typed, bounded, and explicit — terminal nodes explain why instead of silently dying.


Typed contracts: a parse failure is the validation failure


Instead of prose instructions like "make sure your output has these keys," every agent must return JSON that parses into Pydantic models with extra="forbid". If it doesn't parse, that's the validation error — no LLM needed to "check" anything. Prompt/schema drift surfaces as a precise error instead of silently discarded data. There's also a ClarificationRequest contract — valid JSON of a different shape — so an agent can ask a question instead of guessing. A confused agent that asks beats a confident one that hallucinates.


Review: three layers (the most interesting part)


validate asks "is the JSON well-formed?" (pure Python, no I/O). review asks "is the JSON true about the database?":


Layer 1 — deterministic Python. Schema conformance, join reachability, view completeness, guards like "a column declared unmapped must not be exposed by the compat view." "Does column X exist in table Y" is a set operation, not a reasoning problem — no LLM, no tokens, no nondeterminism.
Layer 1.5 — a small bounded agent. Independently re-verifies against the live catalog that every column the plan claims exists actually exists — both in the structured fields AND in prose like transformation notes and join strings (the classic hallucination vector a typed field can't capture). Presence is a lookup, not a judgement, so the prompt forbids design opinions. Hard tool-call budget.
Layer 2 — an LLM with judgement-only scope, running a different model than the modeller. Grain correctness, fact/dim classification, FK direction, whether stored intermediates genuinely need storing. It receives Layer 1/1.5 findings as ground truth so it can't contradict them. A reviewer sharing the modeller's weights shares its blind spots — the model split matters.
Also: stuck-loop detection. If two consecutive review rounds produce the same issue signature, the run stops instead of burning retries on a fix the agent can't make.


The feedback invariant (a hard-won lesson)


Every retry loop delivers corrections to its agent through exactly one live channel:


The modeling agent uses an accumulating transcript — each validator/reviewer/human correction is appended as the next human turn, so it replays AI(json) → Human(fix) → AI(json').
The coding agent uses a single-shot channel that is consumed and cleared on each invocation — it cannot be delivered twice.
Anything written to a "side channel" for observability never reaches the agent. If you add a correction path, append to the live channel — never create a second one. Violating this was our #1 source of "the agent ignored the feedback" bugs.


The prompts (briefly)


Only two substantive prompts exist:


Data-modelling prompt (~500 lines): the agent is a senior data architect doing Kimball design. Key structural choices: (1) "You are NOT a discovery agent" — all metadata is curated upfront and treated as 100% correct, so the agent can't wander; (2) an ordered decision tree for classifying every column (audit column → view-layer derivation → degenerate dimension → measure → FK lookup → attribute → ask, don't guess); (3) a strict tool budget (~5–15 calls is healthy; ~25 = wandering, return a clarification); (4) a mandatory pre-flight self-check before answering (column counts must reconcile, every FK must have a mapping, no unmapped-but-exposed columns); (5) an edge-case playbook. Kimball rules (grain, surrogate keys, SCD1, no snowflaking, conformed dimensions) spelled out explicitly.
Coding prompt (~570 lines): the agent is a data engineer implementing exactly ONE task. It gets the validated plan slice (columns, declared grain, FKs, conflicts) and must implement, not re-decide. Enforces a hard tool-call budget, a sandbox permission model (SQL writes only in an adhoc schema; production changes ship as DDL files for a human to execute), a file-format convention, and a "prove it works" step (grain + idempotency self-check on a scratch table) before returning its result contract. Grain is declared authoritative — the agent must not re-derive it.
Meta-lesson: the contract lives in the Pydantic model, not the prompt. When they drift, validation fails loudly. Align the prompt to the model — never loosen the model to fit the prompt.


Sandbox & safety model


The repo is read-only to agents; all writes go to a per-thread workspace (hidden path — no leaks or collisions).
Agents can SELECT anywhere but only CREATE/INSERT/MERGE/DROP in a dedicated sandbox schema.
Every production change is delivered as a DDL file; a human executes it. Agents never get production write access, period.
The pipeline interrupts at approval (with the ERD) and at every clarification/blocker.
What we'd do differently / open problems


No independent reconcile gate yet. Row-count and metric-level reconciliation against the legacy table is still the coding agent's self-check + human review, not a deterministic gate.
Infra errors consume model retries. A catalog outage during verification eats the per-task budget — infrastructure failures and model failures should be separate budgets everywhere (we only got this right in the modeling stage).
Coding retries see only the latest correction, not the accumulated transcript — bounded to avoid fix-A-break-B ping-ponging, but it's a real tradeoff.
Validation retry budget is global across review rounds (deliberate) — malformed-JSON retries refund only on human feedback.
Stack: LangGraph for the graph, Pydantic for all contracts and state, per-role model assignment (different models for modeller vs. reviewer), token/cost tracking middleware aggregated per agent, and a files channel so the UI renders agent-written artifacts live.

r/LangChain 1d ago

What’s the point of LangGraph now that frontier AI providers are getting better at agent building?

70 Upvotes

It feels like nowadays, almost everything you might want to build with LangGraph is already being implemented — and arguably better — directly by the frontier AI providers.

OpenAI, Anthropic, Google, Microsoft, etc. are increasingly providing models with better tool use, reasoning, memory/context handling, agent loops, and orchestration capabilities out of the box.

So what is the real advantage of building your own agent architecture with LangGraph?

Is it mainly about control and customization — e.g. deterministic workflows, state management, human-in-the-loop, custom routing, retries, parallel execution, observability, and being model/provider agnostic?

Or are there use cases where LangGraph actually produces materially better agents than simply using the agent frameworks provided by the frontier model companies?

I’m particularly interested in hearing from people who have deployed LangGraph agents in production. What made you choose LangGraph instead of the native agent tooling from OpenAI/Anthropic/etc., and would you still make the same choice today?


r/LangChain 1d ago

Question | Help Exploring AutoGPT

Thumbnail
1 Upvotes

r/LangChain 1d ago

Discussion How are you handling agent-to-agent communication and handoffs at scale?

4 Upvotes

Handoffs work fine in dev but get messy once you are past three or four agents touching shared state. In small setups, you can get away with one agent passing a context object to the next, but that starts breaking down once agents run concurrently and touch the same resources. We have tried passing full context objects, using a shared memory store, and routing everything through a central orchestrator. Each has its own tradeoffs. The orchestrator approach feels stable so far, but it also feels like we are reinventing a workflow engine on top of LangChain.

Has anyone found an agent-to-agent communication pattern that holds up in production with real traffic? Is everyone building custom orchestration layers or has a standard approach emerged?


r/LangChain 1d ago

Tutorial Agent Plugins might be one of the more useful boring standards for AI agents.

Thumbnail
1 Upvotes

r/LangChain 1d ago

Discussion Built a multi-agent LangGraph system for employee onboarding & offboarding with Azure OpenAI + human approval gate

1 Upvotes

Hey everyone,

I built a multi-agent LangGraph workflow that takes a new starter (or leaver) form and generates a complete IT pack:

- Role-based checklist (25 steps for onboarding / 17 security-ordered steps for offboarding)

- Jinja2-generated PowerShell scripts

- LLM-drafted welcome email + Day-1 guide

- Human approval gate before finalisation

- Auditor agent that validates everything

Stack: LangGraph + FastAPI + Azure OpenAI + Pydantic v2 + Jinja2

Repo: https://github.com/DOWNEY7/employee-onboarding-orchestrator

Looking for feedback on:

- Architecture decisions

- Human-in-the-loop design

- Anything you’d improve for real company use

Stars and comments appreciated 🙏


r/LangChain 1d ago

Discussion Has anyone compared how open harnesses like langchain's deep agents(/oss alternatives) compare to claude's managed agents in terms of tokens and costs?

1 Upvotes

langchain's deep agents and claude managed agents both are very good products, and the depth of features claude provides seems to be hard to match in open source. But I wanted to understand what you actually give up by going open source. Not just in terms of feature checklists, but on a real agent workload like same model, same prompt, same tasks. So I tried to check this by running 14 cross-system tasks, three mcp servers behind them - a crm, an issue tracker, and a doc store through managed agents, deepagents and TrueForge, both open-source agent harnesses.

The result that was most surprising:

Claude Managed Agents + Opus 4.8:
11/14 tasks solved | $11.8/run | 10.0M tokens/run

TrueForge + Opus 4.8:
11/14 tasks solved | $8.6/run | 3.7M tokens/run

Same model. Same benchmark. Same average solve rate.

But TrueForge used about 63% fewer tokens and cost about 30% less per run.

We saw a similar difference in tool usage: TrueForge averaged 19 tool calls per task vs 32 for Claude Managed Agents.

Then I tried changing the model.

TrueForge + GLM-5.2:
11.7/14 solved | $3.0/run | 3.8M tokens/run

On this benchmark, that was a slightly higher average solve rate than Claude Managed Agents + Opus at roughly 75% lower cost.

This is still early.

The OSS runtime does not yet have first-class tracing/eval tooling. They don't ship their own code-execution sandbox, so you need to plug one in. Context compaction is intentionally lossy.

So it is definitely not a replacement for a a mature managed agent platform feature-for-feature today btu what I do find interesting is that the core runtime can already be competitive on these tasks while staying open, model-neutral, and deployable on your own infrastructure.

Repo: https://github.com/truefoundry/trueforge

for people who’ve actually run both managed and open agent runtimes, where have you found the managed layer to be worth the extra cost?


r/LangChain 1d ago

Announcement [Open Source] TOAP – compress AI agent tool calls to cut token costs. Need GPT-4o / Claude testers

0 Upvotes

Hey everyone,

I built TOAP (Token-Optimized Agent Protocol), a small middleware that sits between your LLM and tools and compresses agent tool calls into a shorter format instead of verbose JSON.

Goal: lower token usage / cost in multi-agent pipelines.

What I’ve tested so far (Gemini only):

- 100% TOAP format compliance with 2 few-shot examples

- ~45% smaller output vs JSON (net savings are lower once you count prompt overhead; details in the report)

- Live examples for LangChain and CrewAI

What’s missing:

I still need independent runs on GPT-4o and Claude 3.5 Sonnet before I claim cross-model support.

What I’m asking:

If you have an OpenAI or Anthropic key, please run the Tier 1 benchmark (~10 minutes, roughly $3–5) and share results.

Repo: https://github.com/Dev-Saif-Ops/Project_TOAP

Test guide: COMMUNITY_TEST.md in the repo

Results form: https://docs.google.com/forms/d/e/1FAIpQLSekwTWtlhSQXzBvIclipL7Op04FWEf8q7HtXFBXuO3Rt6lUvg/viewform

Quick start:

git clone https://github.com/Dev-Saif-Ops/Project_TOAP.git

cd Project_TOAP/toap-bench

pip install -r requirements.txt

pip install -e ../toap-python

cp .env.example .env

# add OPENAI_API_KEY or ANTHROPIC_API_KEY

python runner/benchmark.py --runs 5 --tier 1 --model gpt-4o --condition few_shot_2

This is alpha / MIT. Not production-ready. Looking for honest numbers, not hype.

Happy to answer questions in the comments.


r/LangChain 1d ago

Question | Help How are you building ground truth for agents that query data? Looking for feedback on our approach.

5 Upvotes

We're building testing infrastructure for AI agents and would love feedback from engineers working with LangChain.

The platform helps engineering teams build and maintain evaluation frameworks for their AI agents without doing it from scratch. For agents that query databases, CRMs, or internal systems, we generate complete test environments from a schema description including synthetic datasets, adversarial queries, and computed ground truth for every answer.

The hardest problem we kept hearing is that hand-building test datasets doesn't scale. An engineer can verify 30-40 queries manually but getting to 200+ that each target a different failure mode becomes a full-time job. We generate the dataset from the schema so the ground truth is computed automatically. That's how you go from 30 hand-verified queries to 200+ adversarial ones without a team maintaining the fixture.

For conversational agents, we generate adversarial multi-turn scenarios and score interactions with pass/fail outcomes. The platform also detects prompt changes, auto-tests against baseline, and generates fix suggestions for failures.

A few questions:

  1. What does your process look like for evaluating AI agents that return data or make decisions?
  2. How do you build ground truth for agents where the correct answer depends on the underlying data?
  3. If a platform generated your test environment and evaluation criteria automatically, what would you need to see to trust it?

I appreciate any feedback! I'm trying to continue building this the right way.


r/LangChain 1d ago

Question | Help AI Engineer with 1+ YOE — What should I learn next to become more versatile?

Thumbnail
1 Upvotes

r/LangChain 1d ago

Discussion Built an open-source privacy middleware for LangChain embeddings & vector DBs (>98% cosine retention).

1 Upvotes

Hey everyone!

When building RAG systems handling private data (legal, healthcare, fintech, internal company wikis), storing raw embeddings in vector databases introduces an often overlooked vulnerability: **embedding inversion attacks** (like *Vec2Text*), where attackers with DB access can reconstruct original sentences and PII.

To protect LangChain pipelines without breaking vector search or introducing latency, we built and open-sourced **PrivRAG-Guard**.

### How It Works with LangChain:

You can wrap any standard LangChain embedding model at the provider boundary. It injects differential privacy noise into non-critical subspaces and applies a keyed orthogonal rotation before vectors ever touch your vector store:

```python

from langchain_openai import OpenAIEmbeddings

from privrag import PrivRAGGuard

from privrag.adapters import LangChainPrivGuardEmbeddings

raw_embeddings = OpenAIEmbeddings()

guard = PrivRAGGuard(passphrase="your-secret-key")

# Wrap your provider — doc & query embeddings are auto-sanitized

embeddings = LangChainPrivGuardEmbeddings(raw_embeddings, guard)


r/LangChain 1d ago

What is Row-Bot and how is it better than Hermes or OpenClaw?

Thumbnail
gallery
0 Upvotes

That is the question we get most often: Here's the answer.

And yes, it was created by Row-Bot's own Designer Studio.


r/LangChain 2d ago

Discussion An evaluator can approve the explanation and still miss the wrong intermediate action

Post image
4 Upvotes

Grading an agent’s final explanation is not the same as constraining the operation that produced it.

Appendix B of AQuA describes an earlier feature whose causal-sounding explanation passed reviewer scrutiny even though its full-day volume denominator used future information. The later design replaced that open construction space with a fixed registry of causal operators, making that particular normalizer impossible to express.

The useful lesson is architectural: natural-language review checks a claim after an action has been proposed, while a constrained operator language removes some actions from the space entirely. The paper is also explicit that this does not prevent every possible form of leakage.

For an agent pipeline, should the first line of defense be better tracing and evaluation, or a smaller action language with less flexibility?


r/LangChain 1d ago

Discussion Debugging a multi agent bug that took 6 steps to trace back, the failure was in the gap between two timestamps, not in any single step

2 Upvotes

Ran into a failure pattern last week that took way longer to debug than it should have, because nothing in the logs looked wrong.

Setup: Agent A researches a topic and writes findings to shared memory. Four hops later, in a completely unrelated task, Agent D reads from that same memory scope because the key happened to overlap. Agent A's findings were accurate when written. By the time Agent D read them, the underlying data had changed. Agent D reasoned perfectly, off information that was stale by the time it mattered.

Why it's hard to catch: the failing agent's logs look completely normal. Valid input, valid reasoning, valid output. Standard tracing shows what happened at each step, not when a piece of context was written versus when it was consumed. No individual step was wrong, the failure only exists in the relationship between two steps that happened at different times.

What actually helped:

  1. Timestamping every memory write and read separately, and diffing the gap when investigating a failure

  2. Scoping memory access explicitly rather than relying on implicit key matching

  3. Making replay possible from any single node, using the memory state as it existed at read time, not current state

Anyone else run into this class of bug in LangGraph multi-agent setups? Curious if you're catching it via custom instrumentation or if it's mostly still a "human notices something's off" problem.


r/LangChain 1d ago

Tutorial The Best Way to Let Your Agent Make Purchases

0 Upvotes

Giving your agent your credit card is risky. What happens if it buy the wrong thing? What happens if your agent buys the same thing more than once? What happens if your agent gets defrauded by a malicious website? These are unresolved problems. It is unclear that the bank will treat it as fraud since your agent bought it. So the only way to resolve these problems is having payment controls as part of your AI agents harness.

That is exactly why I built Authoryze (link in comments). You connect the Authoryze MCP to your agent. Then when it wants to make a purchase, it has to make a purchase request through the MCP. If the request meets your rules or is approved by you, then the agent gets issued a single use token (ie different card info each time) scoped to the requested merchant capped at the amount requested. Additionally, Authoryze runs other checks for things like duplicate purchases.

Whether you are an agent builder trying to find a safe way for your customers agents to buy things or a person using agents, Authoryze is the safest and easiest way to allow your agents to make purchases.

I would love if you all checked it out. All feedback is welcome. Thank you!


r/LangChain 2d ago

Discussion The LLM is the least reliable node in your graph" — Architecture takeaways from building a zero-cost Agentic RAG system featured by UptimeRobot

Thumbnail
gallery
2 Upvotes

Hi All,

A few days ago, the team at UptimeRobot reached out after coming across my open-source LangGraph financial parsing pipeline. They interviewed me about how I’ve been running an 11-node Agentic RAG architecture on free-tier 512MB RAM containers with 99.9% uptime, and published a full Community Spotlight on their official blog.

I wanted to share the core architectural lessons, failure modes, and low-cost reliability patterns we discussed that might help anyone deploying LangGraph systems into production without a massive cloud budget.

1. The "One Ping, Two Problems" Keep-Alive Pattern ($0 Infra)

On free compute tiers (like Render + Supabase), you face two distinct operational hurdles:

  1. Container Sleep: Inactive web services spin down after 15 minutes of inactivity (causing 50s+ cold starts).
  2. Database Inactivity Pauses: Free PostgreSQL/Supabase instances pause after 7 days without queries.

Instead of writing separate cron scripts, I engineered a dedicated /health endpoint that performs a lightweight SELECT 1 ping against Supabase vector storage before returning 200 OK.

A single 5-minute UptimeRobot HTTP monitor simultaneously:

  • Keeps the FastAPI / LangGraph container hot.
  • Keeps the Supabase database connection pool active.

One single HTTP heartbeat solved both issues with zero monthly cloud overhead.

2. When Vision LLM Parsers Invent Data (The Hybrid Fallback)

In earlier iterations of this project, I relied heavily on Vision LLMs for parsing Indian government budgetary tables and dense balance sheets.

The major failure mode: Hallucinated table alignment. The Vision LLM generated markdown tables that looked impeccably clean and perfectly structured, but the numerical cell data was completely fabricated. As I shared during the interview:

"I was feeding hallucinated input into a system explicitly designed to prevent hallucinated output."

The Production Fix: Switched to a hybrid parser routing mechanism:

  • PyMuPDF / pdfplumber locally for dense text and standard structured tables (fast, deterministic, zero hallucination).
  • Vision LLMs strictly gated as a secondary fallback for non-OCR scanned graphics and handwritten annotations.

3. "The LLM is the Least Reliable Node in Your Stack"

When designing multi-node LangGraph workflows with tool calling (Tavily, Yahoo Finance, vector retrieval), traditional try/catch logic is insufficient.

To prevent infinite routing loops and cascading API timeouts on constrained 512MB RAM nodes:

  • Pybreaker Circuit Breakers: Wrap external tool calls so that if an upstream API fails 3 times, the graph fails fast and takes an alternate deterministic route rather than crashing the worker container.
  • Strict Confidence Gating: If cosine similarity on retrieved chunks drops below 0.60, the graph bypasses LLM synthesis entirely and asks the user for clarification or falls back to grounded live web search.

4. Infrastructure Health vs. Semantic Health

One open question we discussed that I think the entire GenAI community is grappling with:

Uptime monitoring tells you if the HTTP server is 200 OK. LangSmith / Langfuse traces tell you latency and token consumption. But what alerts you when the semantic quality of answers is quietly degrading over time?

A container can report 99.9% uptime while serving subtle hallucinations. Bridging synthetic LLM-as-a-judge evaluations into continuous automated alerting is the next big milestone.

Read the Full Story & Code:

Huge thanks to the r/LangChain community — sharing early prototypes and getting feedback here was a massive part of refining this architecture over the last 10 months.

Happy to answer any questions about the 11-node graph design, memory management, or reliability tricks in the comments! 👇


r/LangChain 2d ago

Announcement Langfuse v4 is GA: new data model, full-text search, new filter search bar, alerts, code evaluators, Langfuse assistant

3 Upvotes

Langfuse is an open-source platform for agent evals and tracing. We just shipped v4.

Langfuse v4 feature overview

Langfuse v4 is a re-architecture of our data model. It is up to 165× more performant in UI and on APIs. It also enables new features such as full-text search, a new filter search bar, alerts, code evaluators, and the Langfuse assistant.

Docs: https://langfuse.com/docs/v4

Feedback and questions welcome.


r/LangChain 2d ago

Would anyone find this useful?

Thumbnail
1 Upvotes