-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field "document" is a required field, but no value is found. #7050
Comments
The "problem" is that there is no indication in the protos that "document.id" is required in the DiscoveryEngine protos. Without this, our automatically generated samples don't know that we need to mark it as required. We use the method_signature annotation to see that it's "recommended" to use The nested document ID being required is unfortunate, and it seems to me like it may be a problem in the API. |
Description
The basic example of creating a document in a Vertex AI datastore fails with the error
Field "document" is a required field, but no value is found.
. AddingdocumentId
to the actual Document object as well as setting it on the request seems to solve the issue:Please update your examples. It would also be nice if the docs explains what value
[BRANCH]
is supposed to have.Environment details
Steps to reproduce
Run the example from the docs
The text was updated successfully, but these errors were encountered: