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

Can you replace the huggingface embedding to OpenAI compatible remote api? #71

Open
KylinMountain opened this issue Feb 28, 2025 · 3 comments

Comments

@KylinMountain
Copy link

Our local computer may not be able to run such embedding model.
Besides, it has introduce lots of dependencies, such torch, transformer, vllm.
In the real project, these infra should be run independently.

If we remove all this, the project maybe more clear and tiny, what do you think?

@bernaljg
Copy link
Collaborator

Hi @KylinMountain, thanks so much for your interest!

We don't really want to eliminate a user's ability to run a local embedding model since it is more efficient and cheaper for people with a machine that can handle it. However, we will introduce an option to use an OpenAI embedding endpoint instead of the huggingface model in the near future.

@KylinMountain
Copy link
Author

yeah, thanks. @bernaljg . But as a developer, we actually serve embedding model in like xinference, LM studio, gpu stack or ollama. All these provide open ai compatible embedding api.

Do you accept PR?

@bernaljg
Copy link
Collaborator

bernaljg commented Mar 4, 2025

We have pushed a version of HippoRAG that can use the text-embedding OpenAI models. It is currently in the develop branch, we will close this issue once its merged into main.

We are still evaluating whether we will be able to accept PRs since we are a small academic team but will keep you posted. Thanks again for your interest!

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

No branches or pull requests

2 participants