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

Added remove_texts method in WeaviateSearch #567

Merged
merged 3 commits into from
Apr 8, 2024

Conversation

capak07
Copy link
Contributor

@capak07 capak07 commented Apr 8, 2024

@@ -71,6 +71,15 @@ def update_texts(texts:, ids:)
end
end

def remove_texts(ids:)
Copy link
Collaborator

@andreibondarev andreibondarev Apr 8, 2024

Choose a reason for hiding this comment

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

@capak07 Thoughts on using the batch_delete method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry didn't see this, wanted to check on what would be the right path for the where param, I had something like this
{ path: [\"__id\"], operator: Equal, valueString: \"#{ids}\" ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Batch delete docs: https://weaviate.io/developers/weaviate/api/rest/batch#batch-delete

But take a look at the where filter specs: https://weaviate.io/developers/weaviate/api/graphql/filters#where-filter

You may need to use `"ContainsAny":
image

@andreibondarev andreibondarev merged commit dfcdf69 into patterns-ai-core:main Apr 8, 2024
2 of 5 checks passed
@andreibondarev
Copy link
Collaborator

@capak07 I couldn't push to your branch so I fixed and pushed to origin: #568. It's merged now! Thank you!

@capak07
Copy link
Contributor Author

capak07 commented Apr 8, 2024

@capak07 I couldn't push to your branch so I fixed and pushed to origin: #568. It's merged now! Thank you!

No worries, thank you.
I hope I can contribute more to this repository

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.

Add remove_texts methods to all Langchain::Vectorsearch::* classes
2 participants