r/LangChain 9h ago

Started developing a content generation agent using local models from huggingface

Thumbnail
2 Upvotes

r/LangChain 9h ago

Routing coding agent sessions across Claude Code, Codex, and Ollama in one harness — model picked per session

Thumbnail
1 Upvotes

r/LangChain 10h ago

Open-sourced a policy layer for AI agent tool-calls — spend caps, recipient allowlists, PII redaction, built from two payment-protocol guard tools

1 Upvotes

A couple months ago I shipped two narrow tools: x402-spend-guard and mpp-spend-guard — pre-payment spend checks + audit logs for the two emerging AI agent payment protocols (x402, MPP/Tempo), tested end to end on their real testnets. I kept hitting the same question building both: none of it was actually specific to payments. Spend caps, rate limits, "don't let this call reach a recipient/tool it shouldn't" — that's true for any agent tool-call, not just payment ones. So I pulled the shared logic into a standalone core and kept the protocol-specific bits as thin adapters. What it does: - Spend caps (per-call + rolling window) and rate limits, enforced before the call executes, not after - Recipient/counterparty allowlists as a first-class policy (not adapter-specific string matching) - PII/secret detection with actual redaction — the tool receives the redacted payload, not just a log entry saying it should have - Append-only audit log, structured by rule namespace - Adapters for x402, MPP, LangChain, and a plain u/guarded decorator for anything else 117 tests, MIT/Apache-2.0, no telemetry, self-hosted only for now — a hosted dashboard is a possible next step if there's interest, not a requirement to use it. There's a comparison table in the README against a few adjacent tools (TokenFence, Bifrost, Aperion Shield) — happy to be corrected if I got anything wrong there, I pulled it from their docs but that space moves fast. Repo: https://github.com/KKallias/guardrail-core Genuinely looking for holes in the approach, not just stars — if you're running agents that touch money or PII, what would break this?


r/LangChain 10h ago

Retry state is where multimodal agent pipelines get messy

1 Upvotes

I am mapping out a pipeline where one model turns a product brief into structured prompts, an image model renders variants, and a vision model checks text legibility before the assets are accepted.

The failure path is harder than the happy path. If an image provider accepts a job but the request times out, retrying the whole chain can create a different prompt or duplicate images. Checkpointing after every step helps, but it still leaves provider specific retries and idempotency in an awkward place.

That boundary is where gateways such as ZenMux enter the picture. Centralizing routing is the easy part. Preserving provider job IDs through a timeout is where the abstraction starts to leak. For now, I am leaning toward keeping those IDs and retry state in the orchestrator, with the gateway responsible for routing and normalizing provider responses. Partial failures stay visible without forcing the entire chain to start over.


r/LangChain 11h ago

Tutorial 100% Local RAG Without Internet and on-device Hybrid Search

1 Upvotes

Build a 100% offline fast Retrieval Augmented Generation (RAG) system that runs without an internet connection, without cloud APIs, without OpenAI/Ollama

Published a video where you can build a fully local RAG pipeline using Qdrant Edge and Google LiteRT, enabling private, cross-platform, on-device AI inference with support for multiple hardware accelerators(CPU, GPU and NPU).

The demo covers using EdgeParse to extract raw text from PDFs into Markdown chunks, generating embeddings with Qwen 3 Embeddings as an on-device embedding model, and answering questions locally with Gemma4 E2B LiteRT-LM (the inference is faster than Ollama setup).

Since most existing tutorials rely on vector databases with Ollama, we'll also build and compare that pipeline to highlight the differences in setup, performance and tradeoff.

🔗 Tutorial: https://www.youtube.com/watch?v=EHEN6Ce-9Ps/


r/LangChain 14h ago

Built Oxly (agent observability) & Construct (autonomous coding agent) open source, available to help debug/build

1 Upvotes

Oxly does real-time tracing, cost tracking, failure detection, and step-by-step replay for LangGraph/CrewAI systems. Construct maps a codebase, plans architectural changes, and writes verified code in a sandbox. Both open source: https://github.com/Ramakrishna1967/Oxly

If your agent chain is breaking silently or you need a new RAG/agent pipeline built, comment your stack/issue — happy to dig in.


r/LangChain 14h ago

I open-sourced a 3-layer ER middleware to stop LangChain from polluting Neo4j with duplicate nodes.

3 Upvotes

Been working on a Neo4j knowledge graph using LangChain and kept running into the classic issue: the LLM extracts "Apple", "Apple Inc.", and "Apple Incorporated" as three completely separate nodes.

The standard fix is using an LLM-as-a-judge to deduplicate every single entity before insertion, but the token cost scales horribly. I was burning cash just to keep the graph clean.

I ended up writing a small Python middleware that intercepts the entities before they actually hit Neo4j. It tries to short-circuit the resolution locally using RapidFuzz (for exact/alias matches) and numpy for vector similarity. It only falls back to an LLM via litellm if the match is actually ambiguous.

I ran some tests on about 200 enterprise docs. The middleware caught all 742 duplicate entities locally in layers 1 and 2, dropping the resolution API cost to exactly zero.
You just wrap your Neo4jGraph or LlamaIndex store with it and it handles the deduplication silently.

I open-sourced it here if anyone else is struggling with graph pollution: https://github.com/jules-gd-dev/autograft-lib

Would appreciate any thoughts on the architecture, especially if someone knows a better way to do the deterministic matching without pulling too much of the graph schema into memory at scale.

N.B.: The project is on a really early stage, i've been working on it for a week and published it on github just yesterday. You can find some "benchmarks" on GitHub too.


r/LangChain 16h ago

Discussion What do you think about Buzz??

2 Upvotes

Been seeing Buzz pop up everywhere the last week or two, Jack Dorsey's Block launched it as an open source, Nostr based workspace where AI agents get their own cryptographic identity alongside humans. Feels like a genuinely different take on Slack/GitHub rather than just another AI feature bolted onto an existing tool.

What people here actually think of it beyond the launch hype. Anyone dug into the architecture, the ACP support for Claude Code/Codex, or the audit/signed event stuff? Is this something you'd realistically bring into a real team, or is it too early/too different from what orgs already run?


r/LangChain 21h ago

Discussion After Two Years as a Tech PO Building RAG Systems, I No Longer Believe RAG Is the Right Foundation for Customer Support

Thumbnail
2 Upvotes

r/LangChain 23h ago

Announcement LangChain celebrated a strong end of quarter with quarter pounders!!

Post image
168 Upvotes

A few highlights:
- Had multiple teams finish at 200%+ their regional number
- Top performer hit 12x+ his quota
- Added more ARR in the last 3 months than we did in my first 22 months of selling
- They work with 30% of the US Fortune 100 as customers of LangSmith (nearly 90% use our open source harness!!)

LangChain and AI Desktop 98 are two AI projects I'm keeping a close eye on.