mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
(improvement)(launcher)Refactor config keys, use s2 as the prefix
This commit is contained in:
@@ -8,37 +8,37 @@ import org.springframework.context.annotation.Configuration;
|
||||
@Data
|
||||
public class EmbeddingConfig {
|
||||
|
||||
@Value("${embedding.url:}")
|
||||
@Value("${s2.embedding.url:}")
|
||||
private String url;
|
||||
|
||||
@Value("${embedding.recognize.path:/preset_query_retrival}")
|
||||
@Value("${s2.embedding.persistent.path:/tmp}")
|
||||
private String embeddingStorePersistentPath;
|
||||
|
||||
@Value("${s2.embedding.recognize.path:/preset_query_retrival}")
|
||||
private String recognizePath;
|
||||
|
||||
@Value("${embedding.preset.collection:preset_query_collection}")
|
||||
@Value("${s2.embedding.preset.collection:preset_query_collection}")
|
||||
private String presetCollection;
|
||||
|
||||
@Value("${embedding.meta.collection:meta_collection}")
|
||||
@Value("${s2.embedding.meta.collection:meta_collection}")
|
||||
private String metaCollectionName;
|
||||
|
||||
@Value("${embedding.nResult:1}")
|
||||
@Value("${s2.embedding.nResult:1}")
|
||||
private int nResult;
|
||||
|
||||
@Value("${embedding.solved.query.collection:solved_query_collection}")
|
||||
@Value("${s2.embedding.solved.query.collection:solved_query_collection}")
|
||||
private String solvedQueryCollection;
|
||||
|
||||
@Value("${embedding.solved.query.nResult:5}")
|
||||
@Value("${s2.embedding.solved.query.nResult:5}")
|
||||
private int solvedQueryResultNum;
|
||||
|
||||
@Value("${embedding.metric.analyzeQuery.collection:solved_query_collection}")
|
||||
@Value("${s2.embedding.metric.analyzeQuery.collection:solved_query_collection}")
|
||||
private String metricAnalyzeQueryCollection;
|
||||
|
||||
@Value("${text2sql.collection.name:text2dsl_agent_collection}")
|
||||
private String text2sqlCollectionName;
|
||||
|
||||
@Value("${embedding.metric.analyzeQuery.nResult:5}")
|
||||
@Value("${s2.embedding.metric.analyzeQuery.nResult:5}")
|
||||
private int metricAnalyzeQueryResultNum;
|
||||
|
||||
@Value("${inMemoryEmbeddingStore.persistent.path:/tmp}")
|
||||
private String embeddingStorePersistentPath;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user