← All N8N workflows
AI & researchAgentChat TriggerDocument Default Data LoaderEmbeddings OllamaForm Trigger

Local chatbot with retrieval augmented generation (RAG) Gemini

Configured with Agent, Chat Trigger, Document Default Data Loader, Embeddings Ollama, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
AI & modelsEmbeddings OllamaEmbeddings OllamaFiles / mediaDefault Data LoaderDocument Default Data Lo…TransformRecursive CharacterText SplitterText Splitter Recursive …TriggerWhen chat messagereceivedChat TriggerTriggerOn form submission1Form TriggerData storeQdrant Vector StoreVector Store QdrantAI & modelsAI Agent1AgentData storeSimple Memory1Memory Buffer WindowAI & modelsEmbeddings Ollama2Embeddings OllamaData storeQdrant Vector Store2Vector Store QdrantAI & modelsGoogle Gemini ChatModelLM Chat Google GeminiWeb / APIHTTP RequestHTTP RequestTransformMergeMerge

Node categories in this workflow

  • AI & models
  • Files / media
  • Transform
  • Trigger
  • Data store
  • Web / API

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Embeddings OllamaAI & modelsEmbeddings OllamaSee node parameters
Default Data LoaderFiles / mediaDocument Default Data LoaderSee node parameters
Recursive Character Text SplitterTransformText Splitter Recursive Character Text SplitterSee node parameters
When chat message receivedTriggerChat TriggerSee node parameters
On form submission1TriggerForm TriggerSee node parameters
Qdrant Vector StoreData storeVector Store QdrantSee node parameters
AI Agent1AI & modelsAgentSee node parameters
Simple Memory1Data storeMemory Buffer WindowSee node parameters
Embeddings Ollama2AI & modelsEmbeddings OllamaSee node parameters
Qdrant Vector Store2Data storeVector Store QdrantSee node parameters
Google Gemini Chat ModelAI & modelsLM Chat Google GeminiSee node parameters
HTTP RequestWeb / APIHTTP RequestPOST
MergeTransformMergeSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googlePalmApi
  • ollamaApi
  • qdrantApi

Workflow notes

Data Ingestion

Data Ingestion

**Add data to the semantic database

RAG Chatbot

RAG Chatbot

*Chat with your data

Local chatbot with retrieval augmented generation (RAG) Gemini

Local chatbot with retrieval augmented generation (RAG) Gemini

Purpose and structure

This folder contains the Local chatbot with retrieval augmented generation (RAG) Gemini workflow. Its executable nodes use agent, chatTrigger, documentDefaultDataLoader, embeddingsOllama, formTrigger, httpRequest, lmChatGoogleGemini, memoryBufferWindow, merge, textSplitterRecursiveCharacterTextSplitter, vectorStoreQdrant. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When chat message received, On form submission1

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/algonacci/rag-evaluation/blob/5a0256acc2f538259f7ec60a71f6991a0365fb41/sumber.json MIT; preserve source notices.

More in AI & research