I am trying to call the google.cloud.discoveryengine.v1main.CompletionService.CompleteQuery endpoint and unfortunately the only response I receive is an empty array {}
I have tried using the Node.js client, as well as the cloud console following the instructions shown in the documentation https://cloud.google.com/generative-ai-app-builder/docs/configure-autocomplete#send_an_autocomplete_request
I saw a similar issue mentioned here https://discuss.google.dev/t/vertex-ai-agent-builder-completequery-api-returning-empty-array-suggestions/153538 and another mention here https://issuetracker.google.com/issues/420691255
I am not using any CMEK
I have tried using different query suggestion models without success, all return the same empty array.
I have double checked that autocomplete is enabled in my app configurations, and it has been enabled for months at this point.
Autocomplete results are not returned through the API, or through the widget.
I have tried using the v1, v1beta, and v1alpha endpoints with the same result.
I have tried triggering the autocomplete request through the advanced autocomplete endpoint instead of the basic one, with the same response.
I attempted to run this call and to my surprise it returned a 404 https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections.dataStores/getCompletionConfig
curl -X GET "https://discoveryengine.googleapis.com/v1alpha/projects/my-project/locations/global/collections/default_collection/dataStores/my-data-store/completionConfig" \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "X-Goog-User-Project: my-project-id"
{
"error": {
"code": 404,
"message": "Method not found.",
"status": "NOT_FOUND"
}
}
Are there users that obtain a response from the autocomplete endpoint ?
Or is this an issue specific to my account ?