From f512a7d4142c1645881869641c6e716a378d09b0 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 20 Sep 2024 08:51:43 +0530 Subject: [PATCH] fix : default embedding model --- chatmodel-springai/src/main/resources/application.properties | 1 + .../neo4j-springai/src/main/resources/application.properties | 1 + .../pgvector-springai/src/main/resources/application.properties | 1 + .../src/main/resources/application.properties | 1 + 4 files changed, 4 insertions(+) diff --git a/chatmodel-springai/src/main/resources/application.properties b/chatmodel-springai/src/main/resources/application.properties index a189790..7fa754e 100644 --- a/chatmodel-springai/src/main/resources/application.properties +++ b/chatmodel-springai/src/main/resources/application.properties @@ -7,6 +7,7 @@ spring.ai.openai.base-url=http://langchain4j.dev/demo/openai spring.ai.openai.chat.options.model=gpt-4o-mini spring.ai.openai.chat.options.temperature=0.2 spring.ai.openai.chat.options.responseFormat=json_object +spring.ai.openai.embedding.options.model=text-embedding-3-small spring.ai.openai.embedding.enabled=true diff --git a/embeddingstores/neo4j-springai/src/main/resources/application.properties b/embeddingstores/neo4j-springai/src/main/resources/application.properties index 4365155..f101a2d 100644 --- a/embeddingstores/neo4j-springai/src/main/resources/application.properties +++ b/embeddingstores/neo4j-springai/src/main/resources/application.properties @@ -6,6 +6,7 @@ spring.ai.openai.image.enabled=false spring.ai.openai.chat.options.temperature=0.2 spring.ai.openai.chat.options.model=gpt-4o-mini spring.ai.openai.chat.options.responseFormat=json_object +spring.ai.openai.embedding.options.model=text-embedding-3-small spring.threads.virtual.enabled=true diff --git a/embeddingstores/pgvector-springai/src/main/resources/application.properties b/embeddingstores/pgvector-springai/src/main/resources/application.properties index aa609ec..54b18ca 100644 --- a/embeddingstores/pgvector-springai/src/main/resources/application.properties +++ b/embeddingstores/pgvector-springai/src/main/resources/application.properties @@ -6,6 +6,7 @@ spring.ai.openai.image.enabled=false spring.ai.openai.chat.options.temperature=0.7 spring.ai.openai.chat.options.model=gpt-4o-mini spring.ai.openai.chat.options.responseFormat=json_object +spring.ai.openai.embedding.options.model=text-embedding-3-small spring.threads.virtual.enabled=true diff --git a/rag/rag-springai-openai-llm/src/main/resources/application.properties b/rag/rag-springai-openai-llm/src/main/resources/application.properties index 6d03c37..ffe001c 100644 --- a/rag/rag-springai-openai-llm/src/main/resources/application.properties +++ b/rag/rag-springai-openai-llm/src/main/resources/application.properties @@ -8,5 +8,6 @@ spring.ai.openai.base-url=http://langchain4j.dev/demo/openai spring.ai.openai.chat.options.model=gpt-4o-mini spring.ai.openai.chat.options.temperature=0.2 spring.ai.openai.chat.options.responseFormat=json_object +spring.ai.openai.embedding.options.model=text-embedding-3-small #spring.ai.openai.image.model=dall-e-3