From 9d2e750c1632d098b8637b8de5e7a1c7845291cc Mon Sep 17 00:00:00 2001 From: Angular2guy Date: Thu, 19 Dec 2024 17:30:13 +0100 Subject: [PATCH] feat: use better embedding model --- backend/src/main/resources/application-ollama.properties | 4 ++-- .../resources/dbchangelog/changes/db.changelog-1-ollama.xml | 3 +++ runPostgresql.sh | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/backend/src/main/resources/application-ollama.properties b/backend/src/main/resources/application-ollama.properties index 6133ea9..a65a7fa 100644 --- a/backend/src/main/resources/application-ollama.properties +++ b/backend/src/main/resources/application-ollama.properties @@ -14,8 +14,8 @@ spring.liquibase.change-log=classpath:/dbchangelog/db.changelog-master-ollama.xm #spring.ai.ollama.chat.model=qwen2.5:32b spring.ai.ollama.chat.model=llama3.1:8b spring.ai.ollama.chat.options.num-ctx=12288 -#spring.ai.embedding.transformer.onnx.modelUri=https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1/tree/main/onnx/model_quantized.onnx -#spring.ai.embedding.transformer.tokenizer.uri=https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1/tree/main/tokenizer.json +spring.ai.embedding.transformer.onnx.modelUri=https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1/resolve/main/onnx/model_quantized.onnx +spring.ai.embedding.transformer.tokenizer.uri=https://huggingface.co/mixedbread-ai/mxbai-embed-large-v1/resolve/main/tokenizer.json # function calling #spring.ai.ollama.chat.model=llama3.1:8b diff --git a/backend/src/main/resources/dbchangelog/changes/db.changelog-1-ollama.xml b/backend/src/main/resources/dbchangelog/changes/db.changelog-1-ollama.xml index b4e6d6d..58dc7b3 100644 --- a/backend/src/main/resources/dbchangelog/changes/db.changelog-1-ollama.xml +++ b/backend/src/main/resources/dbchangelog/changes/db.changelog-1-ollama.xml @@ -14,4 +14,7 @@ + + + \ No newline at end of file diff --git a/runPostgresql.sh b/runPostgresql.sh index 58a10ac..bae84b0 100644 --- a/runPostgresql.sh +++ b/runPostgresql.sh @@ -2,7 +2,10 @@ docker pull ankane/pgvector:latest docker run --name aidoclibchat-postgres -e POSTGRES_PASSWORD=sven1 -e POSTGRES_USER=sven1 -e POSTGRES_DB=aidoclibchat -p 5432:5432 -d ankane/pgvector docker run --name aidoclibchat-postgres-ollama -e POSTGRES_PASSWORD=sven1 -e POSTGRES_USER=sven1 -e POSTGRES_DB=aidoclibchat -p 5432:5432 -d ankane/pgvector +docker run --name aidoclibchat-postgres-ollama2 -e POSTGRES_PASSWORD=sven1 -e POSTGRES_USER=sven1 -e POSTGRES_DB=aidoclibchat -p 5432:5432 -d ankane/pgvector # docker start aidoclibchat-postgres # docker stop aidoclibchat-postgres # docker start aidoclibchat-postgres-ollama -# docker stop aidoclibchat-postgres-ollama \ No newline at end of file +# docker stop aidoclibchat-postgres-ollama +# docker start aidoclibchat-postgres-ollama2 +# docker stop aidoclibchat-postgres-ollama2 \ No newline at end of file