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

fix GIL deadlock when setting up a custom embedding function in python #1929

Merged
merged 6 commits into from
Jan 22, 2025

Conversation

ricopinazo
Copy link
Contributor

@ricopinazo ricopinazo commented Jan 21, 2025

What changes were proposed in this pull request?

  • Fix deadlock when using Python functions as custom embedding functions
  • Re-enable vector tracing events to be printed
  • Add a utility function vg.get_graph_documents()

Why are the changes needed?

The bug this PR is fixing was making impossible to use custom Python functions

Does this PR introduce any user-facing change? If yes is this documented?

Yes, and they are.

How was this patch tested?

I'm a bit confused because there is already a test with a custom Python function as embedding. I don't understand how was that working

Are there any further changes required?

No

Copy link
Collaborator

@ljeub-pometry ljeub-pometry left a comment

Choose a reason for hiding this comment

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

This looks fine as an immediate fix for the problem but does the server really need to finish embedding all the graphs before it reports as being online?

@ricopinazo ricopinazo merged commit 1b27e27 into master Jan 22, 2025
19 checks passed
@ricopinazo ricopinazo deleted the fix/custom-embedding branch January 22, 2025 11:08
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