workflows.fit
Back to n8n workflows
n8n templateFreeBy Anderson Adelino

Document-based AI chatbot with RAG, OpenAI and Cohere reranker

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Build intelligent AI chatbot with RAG and Cohere Reranker Who is it for? This template is perfect for developers, bu...

Data & StorageAILangchainCore NodesChat TriggerAgentLm Chat Open AiEmbeddings Open Ai
Loading interactive preview...

Template notes

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Build intelligent AI chatbot with RAG and Cohere Reranker

Who is it for?

This template is perfect for developers, businesses, and automation enthusiasts who want to create intelligent chatbots that can answer questions based on their own documents. Whether you're building customer support systems, internal knowledge bases, or educational assistants, this workflow provides a solid foundation for document-based AI conversations.

How it works

This workflow creates an intelligent AI assistant that combines RAG (Retrieval-Augmented Generation) with Cohere's reranking technology for more accurate responses:

1. Chat Interface: Users interact with the AI through a chat interface 2. Document Processing: PDFs from Google Drive are automatically extracted and converted into searchable vectors 3. Smart Search: When users ask questions, the system searches through vectorized documents using semantic search 4. Reranking: Cohere's reranker ensures the most relevant information is prioritized 5. AI Response: OpenAI generates contextual answers based on the retrieved information 6. Memory: Conversation history is maintained for context-aware interactions

Setup steps