mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 05:43:51 +00:00
[improvement](chat) Remove unnecessary pom imports, optimize code, and adapt the test project. (#485)
This commit is contained in:
@@ -12,6 +12,9 @@ import java.util.Objects;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/***
|
||||
* Implementation of S2EmbeddingStore within the Java process's in-memory.
|
||||
*/
|
||||
@Slf4j
|
||||
public class InMemoryS2EmbeddingStore implements S2EmbeddingStore {
|
||||
|
||||
|
||||
@@ -20,8 +20,11 @@ import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
import org.springframework.web.util.UriComponentsBuilder;
|
||||
|
||||
/***
|
||||
* Implementation of calling the Python service S2EmbeddingStore.
|
||||
*/
|
||||
@Slf4j
|
||||
public class PythonS2EmbeddingStore implements S2EmbeddingStore {
|
||||
public class PythonServiceS2EmbeddingStore implements S2EmbeddingStore {
|
||||
|
||||
@Autowired
|
||||
private EmbeddingConfig embeddingConfig;
|
||||
@@ -4,7 +4,7 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Supersonic EmbeddingStore
|
||||
* Added the functionality of adding and querying collection names.
|
||||
* Enhanced the functionality by enabling the addition and querying of collection names.
|
||||
*/
|
||||
public interface S2EmbeddingStore {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user