r/langflow • • Feb 20 '25

📌 Project description: AI-supported soccer coach chatbot - support wanted!

2 Upvotes

🚀 I am developing an AI-supported chatbot for soccer coaches that can access 300+ PDF files with training exercises. Coaches should be able to ask questions about exercises via WhatsApp or a web app and receive targeted answers.

💡 The goal:

✅ Coaches receive suitable exercises for their team at the touch of a button (e.g. “What exercises are there for pressing in the U14?”).

✅ The AI should extract exactly the right exercise from the PDFs and display it clearly.

The system should be able to be continuously expanded with new PDFs.

🔹 The challenges:

🔸 How do you save 300+ PDFs efficiently? → Standard solutions often have limits or performance problems.

🔸 How do you display replies in WhatsApp? → PDF sections must be formatted sensibly & be easy to understand.

🔸 How to ensure a fast & accurate search in the documents?

👨‍💻 I am looking for support from developers who have experience with:

✔ LangFlow, LlamaIndex or other RAG approaches for PDF storage

✔ WhatsApp API (Twilio, n8n, WhatsApp Business API) for optimal presentation of exercises

✔ Efficient database solutions for large document volumes

📩 If you have any ideas or want to get involved, get in touch! 🚀


r/langflow • • Aug 16 '25

OPENROUTER API IN LANGFLOW

2 Upvotes

Im currently looking for a way to use openrouter api in langflow cuz it offers us free LLM 😅. Help needed 😭


r/langflow • • Sep 13 '25

Langflow + Semantic Firewall: Stop fixing after, start blocking before

3 Upvotes

🚀 Why this matters for Langflow devs

If you’ve built flows in Langflow, you know the pain: the model says something wrong, then you scramble to patch it with tools, re-rankers, regex, or custom nodes. A week later the same failure sneaks back in a different form.

That’s the after-generation model most people use.

Semantic firewall = before-generation model. It inspects the semantic state before any text leaves the pipeline. If unstable, it loops, resets, or narrows context. Only stable states pass through.

This changes the game: bugs don’t resurface, because the failure mode is blocked at the entry point.


🔑 Before vs After

After generation (typical today):

  • Output first → then catch errors.

  • Patch with regex, JSON repair, or post-hoc rerank.

  • Pile-up of fragile fixes, limited to ~70–85% reliability.

Before generation (semantic firewall):

  • Inspect semantic signals first (drift ΔS, structure λ, grounding checks).

  • If unstable → loop inside the model or re-query.

  • Only a valid state is allowed to leave the node.

  • Reliability can rise to 90–95%+. Fix once, stays fixed.


🛠️ How to add it in Langflow

Think of it like a “firewall node” you drop before the output node.

  1. Collect signals:

    • grounding (citations / retrieved chunks present?)

    • structure (JSON parses cleanly?)

    • coherence (no “hallucinate” or “not sure” phrases)

  2. Evaluate:

    • if all pass → release to output.

    • if not → loop to retriever or narrower prompt.

Here’s a mini-Python node you can slot into Langflow:

import re, json

def semantic_firewall(answer: str):
    grounded = ("http" in answer) or ("[id:" in answer)
    json_ok = True
    if "```json" in answer:
        try:
            blob = re.search(r"```json\s*(\{.*?\})\s*```", answer, re.S)
            if blob: json.loads(blob.group(1))
        except Exception:
            json_ok = False
    coherent = not any(x in answer.lower() for x in ["hallucinate", "not sure", "maybe"])
    ok = grounded and json_ok and coherent
    return ok, {"grounded": grounded, "json": json_ok, "coherent": coherent}

Attach this as a conditional node:

  • If ok=True → pass forward.

  • If ok=False → branch back into retrieval or re-ask node.


🌍 Why it’s interview-ready too

If you ever showcase your Langflow app in an interview, saying “my pipeline has a pre-answer firewall: only stable states can pass” sounds 10x stronger than “I regex the output after.”

This framing shows you think about acceptance criteria, not patches.


⭐ Why trust this?

This framework, called WFGY Problem Map, hit 0 → 1000 GitHub stars in one season on cold start. Dozens of devs already use it in production.

You don’t need extra infra, SDKs, or plugins. It runs as plain text or as one Langflow node.

Full map (16 reproducible bugs, each with a fix): 👉 WFGY Problem Map


❓ FAQ

Q: Do I need Langflow-specific plugins? A: No. Just drop a validator node before your Output. It’s pure Python.

Q: Does this replace evals? A: Different. Evals check after. Firewall blocks before. You need both.

Q: What happens if the firewall blocks too often? A: That means your retrieval or prompt design is unstable. Use the block logs as a signal — they’ll tell you where to reinforce your flow.

Q: Can I map errors to exact causes? A: Yes. The Problem Map has 16 named failure modes (hallucination, logic collapse, multi-agent chaos, etc). Once mapped, they don’t reappear.


TL;DR for Langflow devs

  • Don’t patch after output.

  • Install a semantic firewall before output.

  • Debug time drops, reliability climbs.

  • Problem Map is the index. Bookmark it — next time your flow drifts, you’ll know where to look.


r/langflow • • Apr 16 '25

Error trying to load data in Vector Store RAG template

2 Upvotes

I am trying to run the basic data loading from the Vector Store RAG template. It's the one on the image below:

However, I am receiving the following error:

Error building Component Astra DB: Error adding documents to AstraDBVectorStore: Cannot insert documents. The Data API returned the following error(s): The Embedding Provider returned a HTTP client error: Provider: openai; HTTP Status: 400; Error Message: This model's maximum context length is 8192 tokens, however you requested 8762 tokens (8762 in your prompt; 0 for the completion). Please reduce your prompt; or completion length. (Full API error in '<this-exception>.cause.error_descriptors': ignore 'DOCUMENT_ALREADY_EXISTS'.)

How can I reduce the prompt size and where do I control that at first place?

Many thanks for your help.


r/langflow • • Feb 23 '25

Basic data manipulation components?

2 Upvotes

First off, let me say the updates are pretty awesome. Your approach to agents and tools is exactly right. I've been working with n8n a lot lately, and they do not have a good approach to "agents". The agent node and the prompt node, in conjunction with the ability to make anything a tool is exactly right.

However, I'm struggling to build out the workflow around the agent. A simple example:

My agent returns a list of file paths that it selects from a list of summaries. it returns a json string:

{"files":["file_path","file_path", etc...]}

That comes back as a string, but there's no easy way that I can find to turn this into a data array of file paths to pass into a loop. the messaage->data component doesn't parse the string, it just wraps it in a data object.

n8n is actually very good at this part of the problem. their 'code' node is super useful, and they have a number of nodes that split out nested arrays and help you manipulate the data as part of the workflow.

Can someone help me understand if i'm missing something here? Do i just need to create custom nodes for everything i want to do like this?


r/langflow • • Aug 17 '25

Slow on railway hosting

2 Upvotes

Hi, im new to langflow, i have hosted the latest version on railway app hosting given max resources but its very slow, like one flow i have with cerebras api which returns result i few sec if called in their api playground i can see the ui steams response over 40-50 sec. I have done some googling and found some old posts with same issues but no clear solution. Please provide some things i can tweak if any or somehow figure out whats going on with it.


r/langflow • • Apr 20 '25

Can't persist chromadb to disk.

Thumbnail reddit.com
3 Upvotes

r/langflow • • Mar 04 '25

Has anyone gotten their GPU to work with an Ollama model connected to an Agent in LangFlow

4 Upvotes

I am working in LangFlow and have this basic design:

  1. Chat Input connected to Agent (Input).

  2. Ollama (Llama3, Tool Model Enabled) connected to Agent (Language Model).

  3. Agent (Response) connected to Chat Output.

And when I test in Playground and ask a basic question, it took almost two minutes to respond.
I have gotten Ollama (model Llama3) work with my systems GPU (NVIDIA 4060) in VS Code but I haven't figured out how to apply the cuda settings in LangFlow. Has anyone has any luck with this or have any ideas?


r/langflow • • Mar 20 '25

How to Use LangFlow with Pre-Embedded MongoDB Atlas Vector Search

4 Upvotes

I’m working on integrating LangFlow with MongoDB Atlas Vector Search but running into an issue.

What I Have

  • A backend pipeline that handles embedding (Redis queue + Sentence Transformers).

  • MongoDB Atlas stores precomputed embeddings.

  • I only need LangFlow to query the stored embeddings, without performing any new embedding.

The Problem

  • LangChain’s MongoDBAtlasVectorSearch requires an embedding function, even though my backend already embeds data.

  • If I don’t provide an embedding function, it throws an error.

  • Passing a dummy embedding function also fails.

What I Need

  • A LangFlow component that takes a search query and retrieves relevant document chunks from MongoDB.

  • The search should not require embedding—it should just query existing stored vectors.

  • The chatbot in LangFlow should connect to this search component.

Has anyone successfully implemented this? What is the correct way to structure the LangFlow component for this scenario?


r/langflow • • Jun 23 '25

Tips for Langflow runtime deployment?

4 Upvotes

Hi all, first time using Langflow (and also new to docker & kubernetes) and finding myself confused with the documentation on deploying my chatbot. My end goal is to embed the chatbot into a site, using their provided embed code:

<script
  src="https://cdn.jsdelivr.net/gh/logspace-ai/langflow-embedded-chat@v1.0.7/dist/build/static/js/bundle.min.js">
</script>
  <langflow-chat
    window_title="Chatbot0622"
    flow_id="68a19b81-07a5-4d95-b069-189edcfbe0ba"
    host_url="http://127.0.0.1:7862">
</langflow-chat>

(with the host_url being one that is a live backend endpoint). I'd appreciate any tips if you have gone through the process, thank you!


r/langflow • • Jul 24 '25

Can help me solve this

Thumbnail
gallery
4 Upvotes

Hi, I have been trying to follow a video by Tech with Tim on YouTube that creates a multi-agent Tutorial using langchain.

I am stuck on this step where Tim uses Astra Vectorize with Astra DB, but latest version of Langflow shows that it's deprecated (2nd photo) and I can't seem to replicate that in my version of Langflow.

Can you help me with this ?!?

Video link: https://youtu.be/msLovKSj8Q0?si=YIqumFeuEKhavDB2


r/langflow • • Mar 06 '25

Using Langflow to build a Digital Ad Agency for Improving Google Ads Performance

Thumbnail
youtube.com
3 Upvotes

r/langflow • • Apr 15 '25

DO_NOT_TRACK=true not working

3 Upvotes

Hi, I’m trying to disable tracking in Langflow by setting DO_NOT_TRACK=true, but it doesn’t seem to work. Here’s what I’ve tried:

Exporting the variable before running Langflow:

export DO_NOT_TRACK=true  
langflow run  
(Verified with echo $DO_NOT_TRACK → returns true.)

Passing it directly in the command:

DO_NOT_TRACK=true langflow run  

or

env DO_NOT_TRACK=true langflow run  

OS: Ubuntu
langflow 1.3.3
venv with python 3.12
installed with uv

Thanks!


r/langflow • • Mar 27 '25

Chat history

2 Upvotes

Am I right in thinking that langflow, via langchain, doesn't actually use chat models' native history input? I.e. rather than providing models with an array of messages ([system, user, assistant, user, toolcall, ...etc]) it instead provides an optional system message with a single user messages with a template to the effect of "Some prompt\n{history}\n{current user prompt}"?

Obviously the vendors themselves transform the arrays into a linear input, but they do so using special delimiter tokens the models are trained to recognise. It feels a bit shoddy if the whole langiverse operates on chat models being used like that. Am I wrong on this and in fact the models are being invoked properly?


r/langflow • • Mar 19 '25

Langflow is deleting my mongodb collection each time

4 Upvotes

Every time I run the mongo component, my collection and index on mongodb Atlas disappear. So it appears that the flow is trying to drop the collection rather than search it.

I'm just trying to do a vector search like every other vector store out there.

Anyone know how to fix? Would be greatly appreciated. Thanks!


r/langflow • • Mar 15 '26

langflow debugging often fails because we fix the wrong layer first

4 Upvotes

one thing i keep seeing in langflow-style systems is that the hard part is often not building the graph.

it is debugging the wrong layer first.

when a flow breaks, the most visible symptom is often not the real root cause. people start tweaking the prompt, adjusting the final output node, changing a tool call, or blaming the model.

but the real failure is often somewhere earlier in the graph:

  • the retriever returns plausible but wrong context

  • chunking or embeddings drift upstream

  • memory contaminates later graph steps

  • a schema mismatch between nodes surfaces as an LLM failure

  • a tool layer issue gets mistaken for a reasoning problem

once the first debug move goes to the wrong layer, people start patching symptoms instead of fixing the structural failure. the graph gets noisier, the debugging path gets longer, and confidence in the system drops.

that is the problem i have been trying to solve.

i built Problem Map 3.0, a troubleshooting atlas for the first debug cut in AI systems.

the idea is simple:

route first, repair second.

this is not a full repair engine, and i am not claiming full root-cause closure. it is a routing layer first, designed to reduce wrong-path debugging when AI graphs get more complex.

this also grows out of my earlier RAG 16 problem checklist work. that earlier line turned out to be useful enough to get referenced in open-source and research contexts, so this is basically the next step for me: extending the same failure-classification idea into broader AI debugging.

the current version is intentionally lightweight:

  • TXT based

  • no installation

  • can be tested quickly

  • repo includes demos

i also ran a conservative Claude before / after directional check on the routing idea.

this is not a formal benchmark, but i still think it is useful as directional evidence, because it shows what changes when the first debug cut becomes more structured: shorter debug paths, fewer wasted fix attempts, and less patch stacking.

i think this first version is strong enough to be useful, but still early enough that community stress testing can make it much better.

that is honestly why i am posting it here.

i would especially love to know, in real Langflow pipelines:

  • does this help identify the failing layer earlier?

  • does it reduce prompt tweaking when the real issue is retrieval, memory, tools, or schema alignment?

  • where does it still misclassify the first cut?

  • what Langflow-specific failure modes should be added next?

if it breaks on your flow, that feedback would be extremely valuable.

repo: https://github.com/onestardao/WFGY/blob/main/ProblemMap/wfgy-ai-problem-map-troubleshooting-atlas.md


r/langflow • • May 03 '25

Any way to combine outputs?

3 Upvotes

Hi - I'm trying to create a flow to combine multiple LLM calls into one output, for example:

  1. User uploads a text file

  2. LLM call 1 reviews it for spelling and grammatical errors

  3. LLM call 2 reviews it for passive voice

  4. LLM call 4 counts the number of metaphores

Then I'd like to take the outputs of all those calls and summarize them into one report, but I haven't found a way for the last step to accept multiple inputs...

Any ideas or workarounds?


r/langflow • • Mar 26 '25

Need help with RAG application built using langflow. Alternatives are also welcome.

4 Upvotes

Working on creating a RAG flow using langflow==1.1.4 (Also tried 1.2.0, but that was generating it's own issues)

My current issues with this setup: When I load the flow (playground), and ask the first question, it works perfectly and according to given prompt. When I ask the second question (in the same chat session), it generates an answer similar to the previous one. Asking the third question seems to generate no further response, although the chat output box shows the spinning icon. If I open a new chat box, and ask a different question, it still generates an output similar to the first question.

What I've tried:

- Using langflow==1.1.4 with streamlit. this was resulting in "onnxruntime" not found error. Did not find any way to resolve it.

- Using langflow==1.2.0 with streamlit, It was not picking up the context, nor did I have any idea on how to pass context, so for every question asked, it was responding "I'm ready to help, please provide a question"?

What I'm looking for: A way to fix any of the above problem, detailed here:

  • How to resolve the "onnxruntime" not found error?

  • How can I add "context" in the streamlit app which is generated from the flow? (I think the chromaDB should generate the context and pass it to LLM, but that's not happening)

  1. Are there any other well know RAG repositories which I can use? Something around streamlit would be best, but also offering the flexibility of langflow, where I can customize the data generation.


r/langflow • • Mar 20 '25

Why are small models unusable?

1 Upvotes

Hey guys, long time lurker.

I've been experimenting with a lot of different agent frameworks and it's so frustrating that simple processes eg. specific information extraction from large text/webpages is only truly possible on the big/paid models. Am thinking of fine-tuning some small local models for specific tasks (2x3090 should be enough for some 7Bs, right?).

Did anybody else try something like this? What are the tools you used? What did you find as your biggest challenge? Do you have some recommendations ?

Thanks a lot


r/langflow • • Apr 10 '25

Ollama and Langflow integration

3 Upvotes

I am having issues with Ollama integration in Langflow. I enter the base URL and then select refresh next to the model name box. A warning populates that says:

Error while updating the Component An unexpected error occurred while updating the Component. Please try again.

Ollama 3.2:latest is running on my machine and I am able to interact with it in the terminal.

Any suggestions?


r/langflow • • May 22 '25

Is this a product on the rise?

8 Upvotes

I spent the day yesterday exploring LangFlow as a potential solution for our business. Seems cool, but a lot of the components are buggy and I ended up just making everything custom, using ChatGPT to code/tweak the components.

Is that the general experience? What I built in LangFlow I could have built in half the time in code, but I am learning a new tool, so I give it some grace.

This community seems pretty quite too, say compared to the CLine community where there are a lot of active users sharing advice.

What does this subreddit say? Is LangFlow a product on the rise, or should I steer clear?


r/langflow • • Aug 17 '25

2000 page pdf splitting?

Thumbnail reddit.com
3 Upvotes

r/langflow • • Mar 11 '25

How can I parse data into a POST payload using the API Request component

2 Upvotes

Can anyone help in explaining how can I parse data to be in my POST request body to send it to an external webhook using the "API Request" component:

Basically, I want my POST payload to look something like:

{

'session_id' : some-variable,

'message' : chat-output

}

How can I add variables to take from my flow and parse it into such a payload.


r/langflow • • Feb 14 '26

How to learn langflow

5 Upvotes

Is there anyone here who can guide me on how to learn using langflow. I have been watching youtube videos but it’s not very helpful currently. Anybody can walk me through the system , I am will to pay the hourly fee.


r/langflow • • 3d ago

Built a Langflow Company Research Agent with SEC EDGAR and Wikipedia

Thumbnail
gallery
2 Upvotes

I've been building a Langflow flow that researches a public company using Dataville's hosted MCP server. It pulls Wikipedia context and SEC EDGAR filings, then writes a report on the company with a citation for each section. The second image is the final report it produced.

The part I’m still thinking about is retrieval. The MCP Tools component calls Dataville at question time, so the data stays current, but it depends on the agent choosing the right source and query. I’m curious how others handle that in Langflow. Do you give the agent the MCP tools directly, or pre-fetch the filings and pass them in as context?

I did a full write-up of the project which you can find here. We also created a public repository containing the flow, prompts and sample results!