You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: langchain4j-pgvector-spring-boot-starter/src/main/java/dev/langchain4j/store/embedding/pgvector/spring/PgVectorDataSourceProperties.java
Copy file name to clipboardExpand all lines: langchain4j-pgvector-spring-boot-starter/src/main/java/dev/langchain4j/store/embedding/pgvector/spring/PgVectorEmbeddingStoreAutoConfiguration.java
// Check if the context's data source is a Postgres datasource
39
70
ensureTrue(isPostgresqlDataSource(dataSource), "The DataSource in Spring Context is not a Postgres datasource, you need to manually specify the Postgres datasource configuration via 'langchain4j.pgvector.datasource'.");
40
71
@@ -58,11 +89,11 @@ public PgVectorEmbeddingStore pgVectorEmbeddingStoreWithCustomDataSource(PgVecto
Copy file name to clipboardExpand all lines: langchain4j-pgvector-spring-boot-starter/src/main/java/dev/langchain4j/store/embedding/pgvector/spring/PgVectorEmbeddingStoreProperties.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,9 @@ public class PgVectorEmbeddingStoreProperties {
32
32
*/
33
33
privateIntegerindexListSize;
34
34
35
+
privateStringdataSourceBeanName;
36
+
37
+
35
38
publicStringgetTable() {
36
39
returntable;
37
40
}
@@ -71,4 +74,12 @@ public Integer getIndexListSize() {
0 commit comments