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

Use OpenAI for embeddings when openai mode is selected #1096

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

imartinez
Copy link
Collaborator

At the moment, even if openai is selected as the execution mode, local Embeddings are being used.
That blocks fully remote setups based on openai, as it uses HuggingFace torch-based embeddings.

With this fix, openai is used both for the LLM and the embeddings when openai is selected in the .yaml llm->model configuration.

Fixes #1093

@imartinez imartinez merged commit 7854652 into main Oct 23, 2023
@imartinez imartinez deleted the fix/openai-embeddings branch October 23, 2023 08:50
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.

Error on "PGPT_PROFILES=openai make run"
2 participants