[improvement](chat) Remove unnecessary pom imports, optimize code, and adapt the test project. (#485)

This commit is contained in:
lexluo09
2023-12-08 20:03:42 +08:00
committed by GitHub
parent abbe8c84a1
commit a5c32ac064
8 changed files with 359 additions and 17 deletions

View File

@@ -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 {

View File

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

View File

@@ -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 {