private-gpt
private-gpt copied to clipboard
Add customizable embedding model support for OpenAI API
This pull request enables the specification of embedding models in the OpenAI settings. Changes include updates to configuration files and the embedding component.
Changes Made
- Modified
settings-openai.yamlto acceptembedding_modelunder thellmsection. - Updated
settings.yamlto defineembedding_modelfor the OpenAI service. - Altered
embedding_component.pyin theprivate_gptto initializeOpenAIEmbeddingwith a user-defined model. - Added
embedding_modelfield inprivate_gpt/settings/settings.pywith a default value and description.
This enhancement allows for flexible selection of OpenAI embedding models, enhancing adaptability to various use cases.
Covers the same functionality as https://github.com/zylon-ai/private-gpt/pull/1920.