Skip to content

Make embedding model configurable#71

Open
Sasyamerugu wants to merge 1 commit intosugarlabs:mainfrom
Sasyamerugu:configurable-embedding-model
Open

Make embedding model configurable#71
Sasyamerugu wants to merge 1 commit intosugarlabs:mainfrom
Sasyamerugu:configurable-embedding-model

Conversation

@Sasyamerugu
Copy link

This PR makes the embedding model used by the FAISS vector store configurable.

Previously, the embedding model was hardcoded to
sentence-transformers/all-MiniLM-L6-v2 in ai.py. This prevented users
from selecting alternative embedding models based on their hardware,
language, or performance requirements.

This change introduces a new configuration parameter:

EMBEDDING_MODEL

The embedding model can now be specified through configuration
without modifying the source code, while keeping the default
behavior unchanged.

The embedding model used for the FAISS vector store was previously
hardcoded to sentence-transformers/all-MiniLM-L6-v2 in ai.py. This
prevented users from selecting alternative embedding models suited
to their hardware or language.

This change introduces a configurable EMBEDDING_MODEL setting that
allows the embedding model to be specified through configuration
without modifying the source code. The default behavior remains
unchanged.
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.

1 participant