Skip to content

Commit e6f715a

Browse files
publish a new blog: langflow+milvus (#479)
* publish a new blog: langflow+milvus * update serial number * Update drag-drop-and-deploy-how-to-build-rag-workflows-with-langflow-and-milvus.md --------- Co-authored-by: Fendy <[email protected]>
1 parent e2e223e commit e6f715a

File tree

1 file changed

+158
-0
lines changed

1 file changed

+158
-0
lines changed
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
---
2+
id: drag-drop-and-deploy-how-to-build-rag-workflows-with-langflow-and-milvus.md
3+
title: >
4+
Drag, Drop, and Deploy: How to Build RAG Workflows with Langflow and Milvus
5+
author: Min Yin
6+
date: 2025-10-30
7+
cover: assets.zilliz.com/langflow_milvus_cover_9f75a11f90.png
8+
recommend: false
9+
publishToMedium: true
10+
tags: Milvus, vector database
11+
meta_keywords: Langflow, Milvus, RAG, AI workflow
12+
meta_title: Drag, Drop, and Deploy RAG Workflows with Langflow & Milvus
13+
desc: Learn how to build visual RAG workflows using Langflow and Milvus. Drag, drop, and deploy context-aware AI apps in minutes—no coding required.
14+
origin: https://milvus.io/blog/drag-drop-and-deploy-how-to-build-rag-workflows-with-langflow-and-milvus.md
15+
---
16+
17+
Building an AI workflow often feels harder than it should. Between writing glue code, debugging API calls, and managing data pipelines, the process can eat up hours before you even see results. [**Langflow**](https://www.langflow.org/) and [**Milvus**](https://milvus.io/) simplify this dramatically — giving you a code-light way to design, test, and deploy retrieval-augmented generation (RAG) workflows in minutes, not days.
18+
19+
**Langflow** offers a clean, drag-and-drop interface that feels more like sketching ideas on a whiteboard than coding. You can visually connect language models, data sources, and external tools to define your workflow logic — all without touching a line of boilerplate code.
20+
21+
Paired with **Milvus**, the open-source vector database that gives LLMs long-term memory and contextual understanding, the two form a complete environment for production-grade RAG. Milvus efficiently stores and retrieves embeddings from your enterprise or domain-specific data, allowing LLMs to generate answers that are grounded, accurate, and context-aware.
22+
23+
In this guide, we’ll walk through how to combine Langflow and Milvus to build an advanced RAG workflow — all through a few drags, drops, and clicks.
24+
25+
26+
## What is Langflow?
27+
28+
Before going through the RAG demo, let’s learn what Langflow is and what it can do.
29+
30+
Langflow is an open-source, Python-based framework that makes it easier to build and experiment with AI applications. It supports key AI capabilities such as agents and the Model Context Protocol (MCP), giving developers and non-developers alike a flexible foundation for creating intelligent systems.
31+
32+
At its core, Langflow provides a visual editor. You can drag, drop, and connect different resources to design complete applications that combine models, tools, and data sources. When you export a workflow, Langflow automatically generates a file named `FLOW_NAME.json` on your local machine. This file records all the nodes, edges, and metadata that describe your flow, allowing you to version-control, share, and reproduce projects easily across teams.
33+
34+
![](https://assets.zilliz.com/Langflow_s_visual_editor_cd553ad4ad.png)
35+
36+
Behind the scenes, a Python-based runtime engine executes the flow. It orchestrates LLMs, tools, retrieval modules, and routing logic — managing data flow, state, and error handling to ensure smooth execution from start to finish.
37+
38+
Langflow also includes a rich component library with prebuilt adapters for popular LLMs and vector databases — including [Milvus](https://milvus.io/). You can extend this further by creating custom Python components for specialized use cases. For testing and optimization, Langflow offers step-by-step execution, a Playground for rapid testing, and integrations with LangSmith and Langfuse for monitoring, debugging, and replaying workflows end-to-end.
39+
40+
41+
## Hands-on Demo: How to Build a RAG Workflow with Langflow and Milvus
42+
43+
Building on Langflow’s architecture, Milvus can serve as the vector database that manages embeddings and retrieves private enterprise data or domain-specific knowledge.
44+
45+
In this demo, we’ll use Langflow’s Vector Store RAG template to demonstrate how to integrate Milvus and build a vector index from local data, enabling efficient, context-enhanced question answering.
46+
47+
![](https://assets.zilliz.com/data_processing_flow_289a9376c9.webp)
48+
49+
### Prerequisites:
50+
51+
1.Python 3.11 (or Conda)
52+
53+
2.uv
54+
55+
3.Docker & Docker Compose
56+
57+
4.OpenAI key
58+
59+
60+
### Step 1. Deploy Milvus Vector Database
61+
62+
Download the deployment files.
63+
```
64+
wget <https://github.com/Milvus-io/Milvus/releases/download/v2.5.12/Milvus-standalone-docker-compose.yml> -O docker-compose.yml
65+
```
66+
Start the Milvus service.
67+
```
68+
docker-compose up -d
69+
```
70+
```
71+
docker-compose ps -a
72+
```
73+
74+
![](https://assets.zilliz.com/start_milvus_service_860353ed55.webp)
75+
76+
### Step 2. Create a Python Virtual Environment
77+
```
78+
conda create -n langflow
79+
# activate langflow and launch it
80+
conda activate langflow
81+
```
82+
### Step 3. Install the Latest Packages
83+
```
84+
pip install langflow -U
85+
```
86+
### Step 4. Launch Langflow
87+
```
88+
uv run langflow run
89+
```
90+
Visit Langflow.
91+
```
92+
<http://127.0.0.1:7860>
93+
```
94+
### Step 5. Configure the RAG Template
95+
Select the Vector Store RAG template in Langflow.
96+
97+
![](https://assets.zilliz.com/rag1_fcb0d1c3c5.webp)
98+
99+
![](https://assets.zilliz.com/rag2_f750e10a41.webp)
100+
101+
Choose Milvus as your default vector database.
102+
103+
![](https://assets.zilliz.com/vdb_milvus_925c6ce846.webp)
104+
105+
In the left panel, search for “Milvus” and add it to your flow.
106+
107+
![](https://assets.zilliz.com/add_milvus1_862d14d0d0.webp)
108+
109+
![](https://assets.zilliz.com/add_milvus2_4e3d6aacda.webp)
110+
111+
Configure Milvus connection details. Leave other options as the default for now.
112+
113+
![](https://assets.zilliz.com/connect1_a27d3e4f43.webp)
114+
115+
![](https://assets.zilliz.com/connect2_d8421c1525.webp)
116+
117+
Add your OpenAI API key to the relevant node.
118+
119+
![](https://assets.zilliz.com/openai_key_7a6596868c.webp)
120+
121+
![](https://assets.zilliz.com/openai_key2_4753bfb4d0.webp)
122+
123+
### Step 6. Prepare Test Data
124+
Note: Use the official FAQ for Milvus 2.6 as the test data.
125+
```
126+
https://github.com/milvus-io/milvus-docs/blob/v2.6.x/site/en/faq/product_faq.md
127+
```
128+
### Step 7. Phase One Testing
129+
Upload your dataset and ingest it into Milvus.
130+
Note: Langflow then converts your text into vector representations. You must upload at least two datasets, or the embedding process will fail. This is a known bug in Langflow’s current node implementation.
131+
132+
![](https://assets.zilliz.com/ingest_7b804d870a.webp)
133+
134+
![](https://assets.zilliz.com/ingest2_fc7f1e4d9a.webp)
135+
136+
Check the status of your nodes.
137+
138+
![](https://assets.zilliz.com/test_48e02d48ca.webp)
139+
140+
### Step 8. Phase Two Testing
141+
142+
![](https://assets.zilliz.com/ingest_7b804d870a.webp)
143+
144+
### Step 9. Run the Full RAG Workflow
145+
146+
![](https://assets.zilliz.com/full_flow1_5b4f4962f5.webp)
147+
148+
![](https://assets.zilliz.com/full_flow2_535c722a3d.webp)
149+
150+
## Conclusion
151+
152+
Building AI workflows doesn’t have to be complicated. Langflow + Milvus makes it fast, visual, and code-light — a simple way to enhance RAG without heavy engineering effort.
153+
154+
Langflow’s drag-and-drop interface makes it a suitable choice for teaching, workshops, or live demos, where you need to demonstrate how AI systems work in a clear and interactive manner. For teams seeking to integrate intuitive workflow design with enterprise-grade vector retrieval, combining Langflow’s simplicity with Milvus’s high-performance search delivers both flexibility and power.
155+
156+
👉 Start building smarter RAG workflows with [Milvus](https://milvus.io/) today.
157+
158+
Have questions or want a deep dive on any feature? Join our[ Discord channel](https://discord.com/invite/8uyFbECzPX) or file issues on[ GitHub](https://github.com/milvus-io/milvus). You can also book a 20-minute one-on-one session to get insights, guidance, and answers to your questions through[ Milvus Office Hours](https://milvus.io/blog/join-milvus-office-hours-to-get-support-from-vectordb-experts.md).

0 commit comments

Comments
 (0)