GoogleCloudPlatform / firebase-extensions

Apache License 2.0
74 stars 36 forks source link

[ext-firestore-semantic-search ] NOT_FOUND: Publisher Model #369

Closed frnndwrms closed 5 months ago

frnndwrms commented 6 months ago

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs for a specific extension in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:

[REQUIRED] Step 2: Describe your configuration

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

  1. I installed the extension and I added the firestore rules, and give the permits to vertex ai machine in audit for read and write according setup instructions.

  2. Then I run gcloud functions --project XXXX call ext-firestore-semantic-search-YYY-queryIndex --data '{"data": {"query":["I am a query"]}}'

but I got "error: '{"error":{"message":"INTERNAL","status":"INTERNAL"}}' executionId: f0bt4jz6g2nl"

I got error log for

ext-firestore-semantic-search-16hw-queryIndex

Unhandled error Error: 5 NOT_FOUND: Publisher Model projects/querelo-prod/locations/us-central1/publishers/google/models/undefined not found. at .callErrorFromStatus ( /workspace/node_modules/@grpc/grpc-js/build/src/call.js:31 ) at .Object.onReceiveStatus ( /workspace/node_modules/@grpc/grpc-js/build/src/client.js:192 ) at .Object.onReceiveStatus ( /workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360 ) at .Object.onReceiveStatus ( /workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323 ) at undefined. ( /workspace/node_modules/@grpc/grpc-js/build/src/resolving-call.js:94 ) at process.processTicksAndRejections ( node:internal/process/task_queues:77 )

I tried this several minutes after, and half hour after with same results.

Expected result

Got document list of the requested query

Actual result

'{"error":{"message":"INTERNAL","status":"INTERNAL"}}' executionId: f0bt4jz6g2nl"

jauntybrain commented 6 months ago

Hi @frnndwrms, thanks for reporting this issue. I see that you selected palm as your Embeddings method but you didn't select the PaLM Embeddings model, which is required for the PaLM method. Could you please try reinstalling the extension with specified PaLM Embeddings model (embedding-gecko) and see if the issue persists?

Screenshot 2024-02-23 at 1 39 36 PM
hygu98 commented 6 months ago

Choosing the Model Embedding fixed this issue for me but it's definitely not clear when configuring the Extension in Firebase Cloud Console.