Uses of Class
dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
-
Uses of MongoDbEmbeddingStore.Builder in dev.langchain4j.store.embedding.mongodb
Modifier and TypeMethodDescriptionMongoDbEmbeddingStore.builder()
MongoDbEmbeddingStore.Builder.collectionName
(String collectionName) MongoDbEmbeddingStore.Builder.createCollectionOptions
(com.mongodb.client.model.CreateCollectionOptions createCollectionOptions) MongoDbEmbeddingStore.Builder.createIndex
(Boolean createIndex) Set whether in production mode, production mode will not create index automaticallyMongoDbEmbeddingStore.Builder.databaseName
(String databaseName) MongoDbEmbeddingStore.Builder.filter
(org.bson.conversions.Bson filter) Document query filter, all fields included in filter must be contained inIndexMapping.metadataFieldNames
MongoDbEmbeddingStore.Builder.fromClient
(com.mongodb.client.MongoClient mongoClient) Build Mongo Client, Please close the client to release resources after usageMongoDbEmbeddingStore.Builder.indexMapping
(IndexMapping indexMapping) set MongoDB search index fields mappingMongoDbEmbeddingStore.Builder.maxResultRatio
(Long maxResultRatio)