All references to gemini-pro have been updated to gemini-2.5-flash throughout the project:
- ✅ src/config/config.py - Updated model name in config
- ✅ src/rag/rag_chain.py - Updated LLM initialization + removed deprecated parameter
- ✅ .env.template - Added GOOGLE_MODEL_NAME parameter
- ✅ QUICKSTART.md - Updated documentation
- ✅ DOCUMENTATION.md - Updated technical docs
- ✅ INDEX.md - Updated navigation guide
- ✅ COMPLETION_REPORT.md - Updated final report
# Before
GOOGLE_MODEL_NAME: str = "gemini-pro"
self.llm = ChatGoogleGenerativeAI(
model=Config.GOOGLE_MODEL_NAME,
google_api_key=Config.GOOGLE_API_KEY,
temperature=0.7,
top_p=0.95,
top_k=40,
convert_system_message_to_human=True # ← Removed (deprecated)
)
# After
GOOGLE_MODEL_NAME: str = "gemini-2.5-flash"
self.llm = ChatGoogleGenerativeAI(
model=Config.GOOGLE_MODEL_NAME,
google_api_key=Config.GOOGLE_API_KEY,
temperature=0.7,
top_p=0.95,
top_k=40
)- ⚡ Faster response times
- 💰 More cost-effective
- 🎯 Better performance for RAG tasks
- 🔄 Lower latency
- 📊 Improved context understanding
Since you already have PINECONE_API_KEY, here's how to find the environment:
- Go to https://app.pinecone.io
- Sign in with your account
- Look at your Projects or Environments section
- Find your environment name (e.g.,
us-east-1,eu-west-1, etc.) - Copy it to your
.envfile
A comprehensive guide has been created: PINECONE_SETUP.md
It includes:
- 📍 Step-by-step console navigation
- 🌍 Common environment names
⚠️ Troubleshooting tips- 🔐 Security best practices
# Google Gemini API Configuration
GOOGLE_API_KEY=your_google_api_key_here
GOOGLE_MODEL_NAME=gemini-2.5-flash ← NEW!
# Pinecone Configuration
PINECONE_API_KEY=pcsk_2VBd5V_JQSWvFQ3h84JfpcN8v14SkbgrWZNTc7dea9jdec6asb8mwewSM61CLTuhHLcvxm
PINECONE_ENVIRONMENT=your_pinecone_environment_here ← NEED THIS
PINECONE_INDEX_NAME=rag-documents-index-
Get your PINECONE_ENVIRONMENT
- Follow the guide in PINECONE_SETUP.md
- Visit https://app.pinecone.io
-
Update .env file
cp .env.template .env
Then edit with:
GOOGLE_API_KEY=sk-...your_key...PINECONE_API_KEY=pcsk_...your_key...(already set)PINECONE_ENVIRONMENT=us-east-1(or your environment)
-
Verify configuration
python -c "from src.config import Config; Config.validate(); print('✓ OK')" -
Initialize Pinecone
python main.py init
-
Start the app
streamlit run app.py
- PINECONE_SETUP.md ← New guide for Pinecone setup
- QUICKSTART.md - 5-minute setup
- README.md - Full documentation
- .env.template - Updated with new model
✅ Updated all code to use gemini-2.5-flash
✅ Removed deprecated parameter from LLM initialization
✅ Created PINECONE_SETUP.md with complete guide
✅ Updated .env.template with new model name
✅ Updated all documentation
Your project is ready to use! Just get your PINECONE_ENVIRONMENT and you're all set! 🎉