Skip to content

AI-powered assistant that indexes Google Drive files to a vector store on upload and answers user queries based on the content.

Notifications You must be signed in to change notification settings

sushant1827/RAG-AI-Agent-2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

RAG AI Agent 2.0

Google Drive trigger

This workflow is triggered when a new file is created in a specified Google Drive folder. The file content is extracted based on its type (PDF, Text, Excel, Doc, Docx, etc.). MS Word files are converted to Google Docs using Google APIs, saved back to the same folder, and the original file is deleted. MS Excel files are aggregated and transformed into a comma-separated text format. The extracted text is then chunked, embedded, and stored in a Supabase vector database. This setup enables efficient semantic search and retrieval of relevant information in response to user queries.

Nodes Used:

Google Drive (fileCreated), Google Drive (download: file), Switch (to route files based on file types), Supabase Vector Store, OpenAI Embeddings, Default Data Loader, Recursive Character Text Splitter

image


RAG AI Agent

The AI agent leverages the Supabase vector database from the prior workflow to retrieve and answer user queries with relevant information.

Nodes Used:

Chat Message (trigger), AI Agent, OpenAI Chat Model, Postgres Chat Memory, Supabase Vector Store, OpenAI Embeddings

image


Releases

No releases published

Packages

No packages published