Skip to content

Commit

Permalink
feat: use better embedding model
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Dec 19, 2024
1 parent 9cfbae8 commit 9d2e750
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/src/main/resources/application-ollama.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
<changeSet id="8" author="angular2guy">
<modifyDataType tableName="vector_store" columnName="embedding" newDataType="vector(384)"/>
</changeSet>
<changeSet id="8.1" author="angular2guy">
<modifyDataType tableName="vector_store" columnName="embedding" newDataType="vector(1024)"/>
</changeSet>
</databaseChangeLog>
5 changes: 4 additions & 1 deletion runPostgresql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
# docker stop aidoclibchat-postgres-ollama
# docker start aidoclibchat-postgres-ollama2
# docker stop aidoclibchat-postgres-ollama2

0 comments on commit 9d2e750

Please sign in to comment.