Skip to content

Commit 4ae967f

Browse files
committed
Merge branch '169-springai-1.0' of https://github.com/oracle-samples/ai-optimizer into 169-springai-1.0
2 parents f3e2d31 + 0c621b7 commit 4ae967f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/server/bootstrap/model_def.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,26 +151,25 @@ def main() -> list[Model]:
151151
"max_chunk_size": 8192,
152152
},
153153
{
154-
# This is intentionally last to line up with docos
155-
"name": "mxbai-embed-large",
154+
"name": "all-minilm",
156155
"enabled": os.getenv("ON_PREM_OLLAMA_URL") is not None,
157156
"type": "embed",
158157
"api": "OllamaEmbeddings",
159158
"url": os.environ.get("ON_PREM_OLLAMA_URL", default="http://127.0.0.1:11434"),
160159
"api_key": "",
161160
"openai_compat": True,
162-
"max_chunk_size": 512,
161+
"max_chunk_size": 256,
163162
},
164163
{
165164
# This is intentionally last to line up with docos
166-
"name": "all-minilm",
165+
"name": "mxbai-embed-large",
167166
"enabled": os.getenv("ON_PREM_OLLAMA_URL") is not None,
168167
"type": "embed",
169168
"api": "OllamaEmbeddings",
170169
"url": os.environ.get("ON_PREM_OLLAMA_URL", default="http://127.0.0.1:11434"),
171170
"api_key": "",
172171
"openai_compat": True,
173-
"max_chunk_size": 256,
172+
"max_chunk_size": 512,
174173
},
175174
]
176175

0 commit comments

Comments
 (0)