Skip to content
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

[vertexai] Fix Datastore error on indexing large fields #558

Merged
merged 9 commits into from
Oct 29, 2024

Conversation

lspataroG
Copy link
Contributor

@lspataroG lspataroG commented Oct 17, 2024

As the self._text_property_name and other fields might contain large text, this fix prevents from indexing such fields that currently triggers an error (see Datastores's maximum size of an indexed string property limitation). This also saves datastore's costs, preventing a non necessary field to be indexed. We can now pass a list exclude_from_indexes to the class, which is the same list that the sdk expects in input when creating an entity.

🐛 Bug Fix

As the `self._text_property_name` might contain large text, this fix prevents from indexing  a large field like a document corpus. This also saves datastore's costs, preventing a non necessary field to be indexed.
@lspataroG lspataroG changed the title [vertexai] Fix Datastore error on indexing large fields [vertexai] Fix Datastore error on indexing text field Oct 17, 2024
@lspataroG lspataroG changed the title [vertexai] Fix Datastore error on indexing text field [vertexai] Fix Datastore error on indexing large fields Oct 24, 2024
@lkuligin lkuligin merged commit 533aeaf into langchain-ai:main Oct 29, 2024
14 of 15 checks passed
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