mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
(improvement)(project) Modify the log name for 'headless' and add 'headless' and 'chat' configurations to support separate deployment. (#556)
This commit is contained in:
@@ -40,4 +40,7 @@ com.tencent.supersonic.chat.postprocessor.PostProcessor=\
|
|||||||
com.tencent.supersonic.chat.postprocessor.RespBuildPostProcessor
|
com.tencent.supersonic.chat.postprocessor.RespBuildPostProcessor
|
||||||
|
|
||||||
com.tencent.supersonic.chat.processor.execute.ExecuteResultProcessor=\
|
com.tencent.supersonic.chat.processor.execute.ExecuteResultProcessor=\
|
||||||
com.tencent.supersonic.chat.processor.execute.MetricRecommendProcessor
|
com.tencent.supersonic.chat.processor.execute.MetricRecommendProcessor
|
||||||
|
|
||||||
|
com.tencent.supersonic.common.util.embedding.S2EmbeddingStore=\
|
||||||
|
com.tencent.supersonic.common.util.embedding.InMemoryS2EmbeddingStore
|
||||||
@@ -31,3 +31,47 @@ semantic:
|
|||||||
llm:
|
llm:
|
||||||
parser:
|
parser:
|
||||||
url: http://127.0.0.1:9092
|
url: http://127.0.0.1:9092
|
||||||
|
|
||||||
|
|
||||||
|
#langchain4j config
|
||||||
|
s2:
|
||||||
|
langchain4j:
|
||||||
|
#1.chat-model
|
||||||
|
chat-model:
|
||||||
|
provider: open_ai
|
||||||
|
openai:
|
||||||
|
api-key: sk
|
||||||
|
model-name: gpt-3.5-turbo-16k
|
||||||
|
temperature: 0.0
|
||||||
|
timeout: PT60S
|
||||||
|
#2.embedding-model
|
||||||
|
#2.1 in_memory(default)
|
||||||
|
embedding-model:
|
||||||
|
provider: in_process
|
||||||
|
# inProcess:
|
||||||
|
# modelPath: /data/model.onnx
|
||||||
|
# vocabularyPath: /data/onnx_vocab.txt
|
||||||
|
#2.2 open_ai
|
||||||
|
# embedding-model:
|
||||||
|
# provider: open_ai
|
||||||
|
# openai:
|
||||||
|
# api-key: api_key
|
||||||
|
# modelName: all-minilm-l6-v2.onnx
|
||||||
|
|
||||||
|
#2.2 hugging_face
|
||||||
|
# embedding-model:
|
||||||
|
# provider: hugging_face
|
||||||
|
# hugging-face:
|
||||||
|
# access-token: hg_access_token
|
||||||
|
# model-id: sentence-transformers/all-MiniLM-L6-v2
|
||||||
|
# timeout: 1h
|
||||||
|
|
||||||
|
#langchain4j log
|
||||||
|
logging:
|
||||||
|
level:
|
||||||
|
dev.langchain4j: DEBUG
|
||||||
|
dev.ai4j.openai4j: DEBUG
|
||||||
|
|
||||||
|
inMemoryEmbeddingStore:
|
||||||
|
persistent:
|
||||||
|
path: /tmp
|
||||||
@@ -7,7 +7,7 @@ import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfigurat
|
|||||||
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
|
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Semantic Launcher
|
* Headless Launcher
|
||||||
**/
|
**/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@SpringBootApplication(scanBasePackages = {"com.tencent.supersonic"},
|
@SpringBootApplication(scanBasePackages = {"com.tencent.supersonic"},
|
||||||
|
|||||||
@@ -4,3 +4,5 @@ com.tencent.supersonic.auth.authentication.interceptor.AuthenticationInterceptor
|
|||||||
com.tencent.supersonic.auth.api.authentication.adaptor.UserAdaptor=\
|
com.tencent.supersonic.auth.api.authentication.adaptor.UserAdaptor=\
|
||||||
com.tencent.supersonic.auth.authentication.adaptor.DefaultUserAdaptor
|
com.tencent.supersonic.auth.authentication.adaptor.DefaultUserAdaptor
|
||||||
|
|
||||||
|
com.tencent.supersonic.common.util.embedding.S2EmbeddingStore=\
|
||||||
|
com.tencent.supersonic.common.util.embedding.InMemoryS2EmbeddingStore
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<contextName>logback</contextName>
|
<contextName>logback</contextName>
|
||||||
<!-- <property name="LOG_PATH" value="${logback.logdir:-logs}"/>-->
|
<!-- <property name="LOG_PATH" value="${logback.logdir:-logs}"/>-->
|
||||||
<property name="LOG_PATH" value="${LOG_PATH:-logs}"/>
|
<property name="LOG_PATH" value="${LOG_PATH:-logs}"/>
|
||||||
<property name="LOG_APPNAME" value="semantic"/>
|
<property name="LOG_APPNAME" value="headless"/>
|
||||||
<!--输出到控制台-->
|
<!--输出到控制台-->
|
||||||
<appender name="consoleLog" class="ch.qos.logback.core.ConsoleAppender">
|
<appender name="consoleLog" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
<encoder>
|
<encoder>
|
||||||
|
|||||||
Reference in New Issue
Block a user