(improvement)(launcher)Refactor config keys, use s2 as the prefix

This commit is contained in:
jerryjzhang
2024-05-25 01:36:24 +08:00
parent 6745df5a2e
commit 822879cd7b
10 changed files with 111 additions and 135 deletions

View File

@@ -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;
}