Skip to content

fix(firestore-vector-search): backfill embedding model corrected#728

Merged
cabljac merged 3 commits intomainfrom
@invertase/fix-fvs-backfill
Jul 22, 2025
Merged

fix(firestore-vector-search): backfill embedding model corrected#728
cabljac merged 3 commits intomainfrom
@invertase/fix-fvs-backfill

Conversation

@CorieW
Copy link
Copy Markdown
Collaborator

@CorieW CorieW commented Jul 17, 2025

  • Tested

  • Fixes backfill embedding model

  • Replaces textEmbeddingGecko001GoogleAI as soon to deprecate in August

  • Removes some of the old embedding stuff

This comment was marked as outdated.

@CorieW CorieW force-pushed the @invertase/fix-fvs-backfill branch from 3ac2ab7 to bcf8d88 Compare July 17, 2025 14:21
@CorieW CorieW requested a review from cabljac July 17, 2025 14:22
@CorieW CorieW force-pushed the @invertase/fix-fvs-backfill branch from bcf8d88 to 5a194ab Compare July 17, 2025 14:29
@CorieW CorieW force-pushed the @invertase/fix-fvs-backfill branch from 5a194ab to cd651f3 Compare July 17, 2025 15:09
@CorieW CorieW requested a review from Copilot July 17, 2025 15:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the firestore vector search backfill embedding model by migrating from deprecated embedding models to current ones and consolidating the codebase around the Genkit library. The changes replace the soon-to-be-deprecated textEmbeddingGecko001GoogleAI model with textEmbedding004 as mentioned in the deprecation notice for August.

Key changes include:

  • Removal of legacy embedding client implementations (VertexAI and Gemini direct clients)
  • Migration to unified Genkit-based embedding approach for all providers
  • Update to newer embedding model (textEmbedding004) replacing the deprecated Gecko model

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vertex_ai.ts Removed legacy VertexAI embedding client implementation
gemini.ts Removed legacy Gemini AI embedding client implementation
index.ts Refactored to use Genkit client for both gemini and vertex providers
genkit.ts Updated to use newer embedding model and fixed implementation bugs
package.json Updated Genkit dependencies to latest versions
genkit.test.ts Updated test mocks to reflect new embedding model
gemini.test.ts Removed test file for deleted Gemini client
Files not reviewed (1)
  • firestore-vector-search/functions/package-lock.json: Language not supported

@CorieW CorieW force-pushed the @invertase/fix-fvs-backfill branch 3 times, most recently from ee297c9 to c5ade26 Compare July 17, 2025 15:36
@CorieW CorieW force-pushed the @invertase/fix-fvs-backfill branch from c5ade26 to 705effc Compare July 17, 2025 15:46
Copy link
Copy Markdown
Collaborator

@cabljac cabljac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@cabljac cabljac merged commit ca90439 into main Jul 22, 2025
9 checks passed
@cabljac cabljac deleted the @invertase/fix-fvs-backfill branch July 22, 2025 08:47
@github-project-automation github-project-automation bot moved this from Approved [PR] to Done in [Cloud] Extensions + Functions Jul 22, 2025
andyma-star pushed a commit to andyma-star/firebase-extensions that referenced this pull request Mar 12, 2026
…gleCloudPlatform#728)

* fix(firestore-vector-search): backfill embedding model corrected

* chore(firestore-vector-search): removing some old stuff

* chore(firestore-vector-search): adjust changelog
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.

3 participants