fixed embedding dimensions to get stripped model
This commit is contained in:
parent
d6b100459f
commit
d018a96923
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ def get_embedding_dimensions(model_name: str) -> int:
|
|||
# Check all model dictionaries
|
||||
all_models = {**OPENAI_EMBEDDING_DIMENSIONS, **OLLAMA_EMBEDDING_DIMENSIONS, **WATSONX_EMBEDDING_DIMENSIONS}
|
||||
|
||||
model_name = model_name.lower().strip().split(":")[0]
|
||||
|
||||
if model_name in all_models:
|
||||
dimensions = all_models[model_name]
|
||||
logger.info(f"Found dimensions for model '{model_name}': {dimensions}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue