[improvement][common] Fix the issue of missing 'ORDER BY' clause generation (#1802)

This commit is contained in:
lexluo09
2024-10-15 10:22:22 +08:00
committed by GitHub
parent 1ef642d0dd
commit d7f301064a
6 changed files with 61 additions and 39 deletions

View File

@@ -35,9 +35,9 @@ public class EmbeddingStoreFactoryProvider {
return factoryMap.computeIfAbsent(embeddingStoreConfig,
storeConfig -> new MilvusEmbeddingStoreFactory(storeConfig));
}
if (EmbeddingStoreType.PGVECTOR.name().equalsIgnoreCase(embeddingStoreConfig.getProvider())) {
return factoryMap.computeIfAbsent(
embeddingStoreConfig,
if (EmbeddingStoreType.PGVECTOR.name()
.equalsIgnoreCase(embeddingStoreConfig.getProvider())) {
return factoryMap.computeIfAbsent(embeddingStoreConfig,
storeConfig -> new PgvectorEmbeddingStoreFactory(storeConfig));
}
if (EmbeddingStoreType.IN_MEMORY.name()