Optimize unstructured data for RAG with Blockify IdeaBlocks technology
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Embeddings OpenAI, OpenAI Chat Model and Google Drive. It also calls api.blockify.ai over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Download .TXT File for Ingest (Google Drive): download
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Query Data Tool)
- Extract Text from .TXT File (Extract from File): extracts data from a file (text)
- Chunk Text (Code): runs custom JavaScript code
- Loop Over Chunks (Loop Over Items (Split in Batches)): loops over the items in batches
- Blockify Ingest API (HTTP Request): calls api.blockify.ai (POST)
- Extract IdeaBlocks from API Response (Edit Fields (Set)): sets 1 field: choices[0].message.content
- Simple IdeaBlock Vector Store (Simple Vector Store): stores documents in the Simple vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
Services it uses
HTTP calls to: api.blockify.ai
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (14)
- Manual Trigger
n8n-nodes-base.manualTrigger - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - AI Agent
@n8n/n8n-nodes-langchain.agent - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Extract from File
n8n-nodes-base.extractFromFile - Google Drive
n8n-nodes-base.googleDrive - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Blockify® Data Optimization Workflow Blockify Optimizes Data for RAG - Giving Structure to Unstructured Data for ~78X Accuracy, when pairing Blockify Ingest…