Chat with GitHub specs using RAG (Pinecone and OpenAI)
Workflow Description
An intelligent automation system that enables interactive conversations with GitHub repository specifications using Retrieval-Augmented Generation (RAG). The system combines Pinecone vector database with OpenAI's language capabilities to deliver precise answers to technical inquiries about project documentation.
How it works
- 1.Load GitHub specification documents and split them into logical text chunks
- 2.Convert text segments into vector embeddings and store them in Pinecone
- 3.Receive user queries through the chat interface and retrieve relevant documents
- 4.Use an intelligent agent combining memory and vector search to compose contextual responses
- 5.Deliver the final answer to the user while maintaining conversation history
Use cases
- Answer technical questions about repository structure and GitHub documentation
- Accelerate information retrieval from extensive project documentation repositories
- Provide development teams with an intelligent assistant for common project-related questions
Requirements
- Valid OpenAI API key to run the language model and embedding functions
- Active Pinecone account with an initialized index for vector storage and retrieval
- GitHub specification files in text format (Markdown or Plaintext) ready for processing
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (17)
When clicking ‘Test workflow’
Manual Trigger
HTTP Request
HTTP Request
Pinecone Vector Store
Vector Store Pinecone
Default Data Loader
Document Default Data Loader
Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
When chat message received
Chat Trigger
AI Agent
Agent
OpenAI Chat Model
OpenAI
Window Buffer Memory
Memory Buffer Window
Vector Store Tool
Tool Vector Store
OpenAI Chat Model1
OpenAI
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Generate User Query Embedding
OpenAI
Pinecone Vector Store (Querying)
Vector Store Pinecone
Generate Embeddings
OpenAI
Sticky Note2
Sticky Note