Skip to content

fix: update RAG agent model and add auto-configuration#1217

Open
eliasecchig wants to merge 2 commits intomainfrom
fix/rag-agent-model-and-config
Open

fix: update RAG agent model and add auto-configuration#1217
eliasecchig wants to merge 2 commits intomainfrom
fix/rag-agent-model-and-config

Conversation

@eliasecchig
Copy link
Collaborator

@eliasecchig eliasecchig commented Mar 5, 2026

Summary

  • Update model to gemini-3-flash-preview
  • Add automatic Google Cloud project configuration
  • Make RAG retrieval tool conditional on RAG_CORPUS environment variable
  • Fix linting error in retail-ai-location-strategy

Changes

  • Model update: Changed from gemini-2.0-flash-001 to gemini-3-flash-preview
  • Auto-configuration: Added google.auth to automatically detect project ID and configure Vertex AI settings
  • Conditional tool loading: RAG retrieval tool now only initializes when RAG_CORPUS is set, preventing errors when the corpus is not configured
  • Environment defaults: Set GOOGLE_CLOUD_LOCATION to "global" and enable GOOGLE_GENAI_USE_VERTEXAI
  • Linting fix: Added noqa comment for required late import in retail-ai-location-strategy (import must occur after sys.path modification)

Impact

  • Fixes initialization errors when RAG corpus is not configured
  • Simplifies setup by auto-detecting Google Cloud project
  • Updates to latest Gemini model
  • Resolves E402 linting error

Related

- Update model from gemini-2.0-flash-001 to gemini-3-flash-preview
- Add automatic Google Cloud project detection using google.auth
- Set GOOGLE_CLOUD_LOCATION to global and enable Vertex AI
- Make RAG retrieval tool conditional (only loads if RAG_CORPUS is set)
- Prevents initialization errors when RAG corpus is not configured
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

There is a problem with the Gemini CLI PR review. Please check the action logs for details.

@eliasecchig eliasecchig force-pushed the fix/rag-agent-model-and-config branch from ba469e5 to 15c242c Compare March 5, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants