Skip to content

docs(evaluation): use GOOGLE_API_KEY in the script-based evaluation - #410

Merged
vvbandeira merged 1 commit into
The-OpenROAD-Project:masterfrom
vvbandeira:eval-api-key-docs
Sep 24, 2026
Merged

vvbandeira merged 1 commit into
The-OpenROAD-Project:masterfrom
vvbandeira:eval-api-key-docs

Conversation

@vvbandeira

Copy link
Copy Markdown
Member

Supersedes #232 by @harsh-kumar-patwa, narrowed to the script-based evaluation. The commit keeps the contributor's authorship and sign-offs.

Change

  • evaluation/script_based_evaluation/.env.sample and README.md now ask for GOOGLE_API_KEY instead of a service-account file.
  • The README drops the --creds-path option and the secret.json requirement.

This matches the code: config/config.py reads GOOGLE_API_KEY, and models/gemini_model.py calls the Gemini API through google-genai. main.py has no --creds-path argument.

Changes from #232 that this PR leaves out

#232 also removed GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_PROJECT_ID, and GOOGLE_CLOUD_LOCATION from the backend, the seed-credentials target, and the Secret CI credential steps. The backend still needs them. ChatVertexAI and VertexAIEmbeddings authenticate through Application Default Credentials, which read GOOGLE_APPLICATION_CREDENTIALS inside the Google auth library, not in project code. Without that credential, the Secret CI evaluation cannot start the backend.

Relates to #155. A full deprecation needs the backend to move from Vertex AI to the Gemini API.

🤖 Generated with Claude Code

The script-based evaluation reads GOOGLE_API_KEY and calls the Gemini
API through google-genai. It has no --creds-path option and does not
read a service-account file.

[vvbandeira: kept only the script_based_evaluation changes. The backend
still authenticates Vertex AI with GOOGLE_APPLICATION_CREDENTIALS.]

Signed-off-by: Harsh Kumar Patwa <harshkumarpatwa@gmail.com>
Signed-off-by: Harsh Kumar <harshkumar3446@gmail.com>
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
@vvbandeira
vvbandeira merged commit da2c7c2 into The-OpenROAD-Project:master Sep 24, 2026
7 checks passed
@vvbandeira
vvbandeira deleted the eval-api-key-docs branch September 24, 2026 01:23
vvbandeira added a commit to vvbandeira/ORAssistant that referenced this pull request Sep 24, 2026
* upstream/master:
  Add Vertex AI Ranking API as reranker option (The-OpenROAD-Project#411)
  docs(evaluation): use GOOGLE_API_KEY in the script-based evaluation (The-OpenROAD-Project#410)
  Build(deps): Bump types-requests from 2.32.0.20240622 to 2.33.0.20260906 in /frontend (The-OpenROAD-Project#404)
  test: add unit tests for evaluation metrics module (The-OpenROAD-Project#409)

Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>

# Conflicts:
#	backend/src/chains/hybrid_retriever_chain.py
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