mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-02 21:50:43 +08:00
query schema update
This commit is contained in:
@ -528,7 +528,7 @@ public class ChatController {
|
||||
contentVector.add(response.getData().get(0).getEmbedding());
|
||||
|
||||
// search embedding
|
||||
DataResult<TableSchemaResponse> result = gatewayClientService.schemaVectorSearch(contentVector);
|
||||
DataResult<TableSchemaResponse> result = gatewayClientService.schemaVectorSearch(contentVector, queryRequest.getDataSourceId());
|
||||
|
||||
List<String> schemas = Lists.newArrayList();
|
||||
if (CollectionUtils.isNotEmpty(result.getData().getTableSchemas())) {
|
||||
|
@ -87,8 +87,9 @@ public interface GatewayClientService {
|
||||
* save table schema vector
|
||||
*
|
||||
* @param searchVectors
|
||||
* @param datasourceId
|
||||
* @return
|
||||
*/
|
||||
@Get("/api/milvus/schema/search")
|
||||
DataResult<TableSchemaResponse> schemaVectorSearch(List<List<BigDecimal>> searchVectors);
|
||||
DataResult<TableSchemaResponse> schemaVectorSearch(List<List<BigDecimal>> searchVectors, Long datasourceId);
|
||||
}
|
||||
|
@ -19,4 +19,6 @@ public class TableSchemaRequest {
|
||||
private List<List<BigDecimal>> contentVector;
|
||||
|
||||
private List<String> sentenceList;
|
||||
|
||||
private Boolean deleteBeforeInsert;
|
||||
}
|
||||
|
Reference in New Issue
Block a user