ragflow-fileupload-n8n
v1.0.0
Published
N8N Community Node for interacting with RAGFlow (Infiniflow). Supports listing datasets, smart text upsert (auto .txt extension and file upload), and optimized retrieval for AI agents.
Downloads
92
Maintainers
Readme
n8n-nodes-ragflow
This is an n8n community node for interacting with RAGFlow, an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
Features
- Dynamic Dataset Selection: Automatically fetches your RAGFlow datasets into a dropdown list.
- Smart Text Upsert:
- Automatically appends
.txtextension to text content uploads (fixing "file type not supported" errors). - Supports
SkiporOverwritestrategies for duplicate documents. - Note: Triggers parsing automatically using RAGFlow's document chunking API.
- Automatically appends
- AI-Optimized Retrieval:
- Returns a flattened
context_textfield ready for direct injection into LLM Prompts. - Provides detailed
chunksarray with similarity scores and document mapping.
- Returns a flattened
Operations
- Upsert Text (Email/Content): Upload text content to a dataset.
- Retrieve (Search/Chat): Search your dataset for relevant context based on a query.
Installation
Community Node (Recommended)
- Go to Settings > Community Nodes in your n8n instance.
- Select Install.
- Enter
n8n-nodes-ragflow. - Agree to the risks and install.
Manual Installation
To install this node manually (e.g., for development):
- Go to your n8n root directory (e.g.,
~/.n8n). - Clone this repository or copy the files into
custom/n8n-nodes-ragflow. - Run
npm installandnpm run buildinside the node directory. - Restart n8n.
Credentials
You need a RAGFlow API Key.
- Log in to your RAGFlow console.
- Go to User Profile / Settings -> API Keys.
- Create a new key.
- In n8n, add a new RAGFlow API credential and paste the key.
- Base URL: The URL of your RAGFlow instance (e.g.,
http://localhost:9380orhttps://demo.ragflow.io). Do not add/api/v1to the end, the node handles it.
- Base URL: The URL of your RAGFlow instance (e.g.,
Compatibility
- Tested with RAGFlow v0.16.0+ (Docker version).
- Compatible with n8n v1.0+.
License
MIT
