Skip to content

Commit 27cf298

Browse files
authored
Add files via upload
1 parent cf0dc74 commit 27cf298

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui_tabs_databases.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def on_model_selected(self, index):
144144
config_data = yaml.safe_load(file) or {}
145145
if selected_path:
146146
config_data["EMBEDDING_MODEL_NAME"] = selected_path
147+
if "stella" in selected_path.lower() or "static-retrieval" in selected_path.lower():
148+
config_data["EMBEDDING_MODEL_DIMENSIONS"] = 1024
147149
else:
148150
config_json_path = Path(selected_path) / "config.json"
149151
if config_json_path.exists():

0 commit comments

Comments
 (0)