mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-20 06:34:55 +00:00
[improvement](chat) Adjust related packages, add other SqlGeneration implementations, and rename EmbedLLMProxy to JavaLLMProxy. (#489)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package com.tencent.supersonic;
|
||||
|
||||
import com.tencent.supersonic.chat.config.OptimizationConfig;
|
||||
import com.tencent.supersonic.chat.parser.sql.llm.prompt.SqlExample;
|
||||
import com.tencent.supersonic.chat.parser.sql.llm.prompt.SqlExampleLoader;
|
||||
import com.tencent.supersonic.chat.parser.EmbedLLMProxy;
|
||||
import com.tencent.supersonic.chat.parser.sql.llm.SqlExample;
|
||||
import com.tencent.supersonic.chat.parser.sql.llm.SqlExampleLoader;
|
||||
import com.tencent.supersonic.chat.parser.JavaLLMProxy;
|
||||
import com.tencent.supersonic.chat.parser.LLMProxy;
|
||||
import com.tencent.supersonic.chat.utils.ComponentFactory;
|
||||
import java.util.List;
|
||||
@@ -31,7 +31,7 @@ public class EmbeddingInitListener implements CommandLineRunner {
|
||||
|
||||
public void initSqlExamples() {
|
||||
try {
|
||||
if (llmProxy instanceof EmbedLLMProxy) {
|
||||
if (llmProxy instanceof JavaLLMProxy) {
|
||||
List<SqlExample> sqlExamples = sqlExampleLoader.getSqlExamples();
|
||||
String collectionName = optimizationConfig.getText2sqlCollectionName();
|
||||
sqlExampleLoader.addEmbeddingStore(sqlExamples, collectionName);
|
||||
|
||||
@@ -31,7 +31,7 @@ com.tencent.supersonic.chat.processor.ParseResultProcessor=\
|
||||
com.tencent.supersonic.chat.processor.RespBuildProcessor
|
||||
|
||||
com.tencent.supersonic.chat.parser.LLMProxy=\
|
||||
com.tencent.supersonic.chat.parser.EmbedLLMProxy
|
||||
com.tencent.supersonic.chat.parser.JavaLLMProxy
|
||||
|
||||
com.tencent.supersonic.chat.api.component.SemanticInterpreter=\
|
||||
com.tencent.supersonic.knowledge.semantic.LocalSemanticInterpreter
|
||||
|
||||
Reference in New Issue
Block a user