feat: add iGPT as optional email intelligence retriever#4
Open
ShayFeldboy1010 wants to merge 5 commits intokaymen99:mainfrom
Open
feat: add iGPT as optional email intelligence retriever#4ShayFeldboy1010 wants to merge 5 commits intokaymen99:mainfrom
ShayFeldboy1010 wants to merge 5 commits intokaymen99:mainfrom
Conversation
Add iGPT (igpt.ai) as an alternative to the ChromaDB RAG pipeline. When USE_IGPT=true, product enquiry emails skip the construct_rag_queries step and call the iGPT Recall API directly, replacing the entire document loading/chunking/embedding/retrieval chain with a single API call. Fully backward-compatible — default behavior unchanged when USE_IGPT is unset. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace manual requests.post() calls with IgptAsk and IgptSearch from the langchain-igpt package. This uses iGPT's official LangChain integration and removes the requests dependency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
USE_IGPT=true, product enquiry emails skipconstruct_rag_queriesand call the iGPT Recall API directly — replacing the entire document loading/chunking/embedding/retrieval chain with a single API callUSE_IGPTis not setWhat changed
src/tools/igpt_retriever.pyigpt_retrieve()andigpt_search()functions using the officiallangchain-igptSDKsrc/nodes.pyUSE_IGPTenv varsrc/graph.py"product related igpt"route to skip query constructionrequirements.txtlangchain-igpt(optional dep)README.mdWhy iGPT
This project uses a full RAG stack to answer product enquiries: load docs → chunk → embed → store in ChromaDB → retrieve → generate. iGPT replaces that entire pipeline with one API call against live Gmail/Outlook data — no local vector store, no embedding model, no
create_index.pyto maintain.data/foldercreate_index.py+agents.py+nodes.pyigpt_retriever.pyTest plan
USE_IGPTunset, confirm ChromaDB RAG pipeline works as beforeUSE_IGPT=true+IGPT_API_KEY+IGPT_API_USER, confirm product enquiry emails route through iGPT retrieval