-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Infinity embeddings #1125
Closed
Closed
Infinity embeddings #1125
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* fix: postgres kg fix * fix: exporting id * fix: passing id from vector db * git pull add json_response parameter * add logger for debugging json_response * add json_response as api param * add json_reponse * add json_reponse * fix original csv output --------- Co-authored-by: Kenny Fukuya <[email protected]> Co-authored-by: João <[email protected]>
I am opening the PR here to contribute back and also stop a bit the divergence of our fork main branch. This includes also the given ID changes and JSON response changes. |
resolved issue with upsert of pg entity and relation;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Support for Infinity Embeddings, JSON response and pre-defined IDs on the API.
Overview
This PR adds support for local embedding generation using the Infinity Embedding library with a focus on the high-quality Snowflake Arctic Embed models.
Changes
1. New Embedding Backend
infinity
that uses the infinity-embed package2. Model Caching
3. Asymmetric Embedding Support
4. Error Handling
5. Example Implementation
lightrag_infinity_demo.py
showing how to use Infinity embeddings6. Configuration
Dependencies
infinity-emb[all]
to requirements.txtTesting
The implementation has been tested using the Snowflake Arctic Embed model for both standalone usage and integration with the LightRAG API server.