mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 13:47:09 +00:00
[improvement][common] Fix the issue of missing 'ORDER BY' clause generation (#1802)
This commit is contained in:
@@ -32,15 +32,10 @@ public class PgvectorEmbeddingStoreFactory extends BaseEmbeddingStoreFactory {
|
||||
|
||||
@Override
|
||||
public EmbeddingStore<TextSegment> createEmbeddingStore(String collectionName) {
|
||||
return PgVectorEmbeddingStore.builder()
|
||||
.host(storeProperties.getHost())
|
||||
.port(storeProperties.getPort())
|
||||
.database(storeProperties.getDatabase())
|
||||
.user(storeProperties.getUser())
|
||||
.password(storeProperties.getPassword())
|
||||
.table(collectionName)
|
||||
.dimension(storeProperties.getDimension())
|
||||
.build();
|
||||
return PgVectorEmbeddingStore.builder().host(storeProperties.getHost())
|
||||
.port(storeProperties.getPort()).database(storeProperties.getDatabase())
|
||||
.user(storeProperties.getUser()).password(storeProperties.getPassword())
|
||||
.table(collectionName).dimension(storeProperties.getDimension()).build();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -12,5 +12,6 @@ public class Properties {
|
||||
|
||||
static final String PREFIX = "langchain4j.pgvector";
|
||||
|
||||
@NestedConfigurationProperty EmbeddingStoreProperties embeddingStore;
|
||||
@NestedConfigurationProperty
|
||||
EmbeddingStoreProperties embeddingStore;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user