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

Add destroy_from_vectorsearch hook #82

Merged
merged 4 commits into from
Jun 16, 2024

Conversation

andreibondarev
Copy link
Collaborator

@andreibondarev andreibondarev commented May 20, 2024

Related to #53

Introduces the destroy_from_vectorsearch hook and updates documentation to support record deletion in vectorsearch databases.

  • Adds a destroy_from_vectorsearch method in lib/langchainrb_rails/active_record/hooks.rb to handle the deletion of records from vectorsearch databases. This method is designed to be called within an after_destroy callback.
  • Implements an after_destroy :destroy_from_vectorsearch callback within the same file to ensure records are automatically removed from the vectorsearch database upon deletion.
  • Updates the README.md file to include a new section on handling record deletions with the destroy_from_vectorsearch hook, providing users with guidance on how to use this feature effectively.

For more details, open the Copilot Workspace session.

@andreibondarev andreibondarev force-pushed the andreibondarev/add-delete-hook branch from d75c142 to cd2fa10 Compare June 16, 2024 21:53
@andreibondarev andreibondarev marked this pull request as ready for review June 16, 2024 21:54
@andreibondarev andreibondarev merged commit 88fcfe2 into main Jun 16, 2024
5 checks passed
@andreibondarev andreibondarev deleted the andreibondarev/add-delete-hook branch June 16, 2024 22:01
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 destroy_from_vectorsearch hook to clear delete records from vectorsearch DBs.
1 participant