Skip to content

Add Gemini backend and stabilize single-worker deployment#8

Merged
AyushAnand413 merged 2 commits into
mainfrom
fix/rag-grounding-tuning
Mar 23, 2026
Merged

Add Gemini backend and stabilize single-worker deployment#8
AyushAnand413 merged 2 commits into
mainfrom
fix/rag-grounding-tuning

Conversation

@AyushAnand413

Copy link
Copy Markdown
Owner

This PR improves document QA reliability by switching the generation layer to support Gemini and stabilizing deployment behavior on Hugging Face Spaces.

Changes included:

  • added Gemini backend support with a shared client factory
  • updated supervisor and response generation flow to use configurable LLM backends
  • added google-genai dependency
  • changed Gunicorn to a single worker to avoid in-memory document state issues across requests
  • kept the existing Hugging Face backend as a fallback option

Environment updates:

  • LLM_BACKEND=gemini
  • GEMINI_MODEL=gemini-2.5-flash
  • LLM_INTENT_BACKEND=gemini
  • GEMINI_INTENT_MODEL=gemini-2.5-flash
  • GEMINI_API_KEY added as a secret

Local verification:

  • Gemini smoke test succeeded
  • prompt-level generation test succeeded

@vercel

vercel Bot commented Mar 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ragify-ai Ready Ready Preview, Comment Mar 23, 2026 6:56pm

@AyushAnand413 AyushAnand413 merged commit 433eb9b into main Mar 23, 2026
4 checks passed
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.

1 participant