workflows.fit
Back to n8n workflows
n8n templateFreeBy JustinLee

Basic RAG chat

This workflow demonstrates a simple Retrieval-Augmented Generation (RAG) pipeline in n8n, split into two main sections: ๐Ÿ”น Part 1: Load Data into Vector Store Reads files from disk (or Google Drive). Splits content in...

AILangchainCore NodesText Splitter Recursive Character Text SplitterSticky NoteDocument Default Data LoaderChain Retrieval Qa
Loading interactive preview...

Template notes

This workflow demonstrates a simple Retrieval-Augmented Generation (RAG) pipeline in n8n, split into two main sections:

๐Ÿ”น Part 1: Load Data into Vector Store Reads files from disk (or Google Drive).

Splits content into manageable chunks using a recursive text splitter.

Generates embeddings using the Cohere Embedding API.

Stores the vectors into an In-Memory Vector Store (for simplicity; can be replaced with Pinecone, Qdrant, etc.).

๐Ÿ”น Part 2: Chat with the Vector Store Takes user input from a chat UI or trigger node.

Embeds the query using the same Cohere embedding model.

Retrieves similar chunks from the vector store via similarity search.