Class NamedMongoDbAtlasEmbeddingStoreConfig
java.lang.Object
io.micronaut.langchain4j.mongodb.atlas.NamedMongoDbAtlasEmbeddingStoreConfig
@EachProperty(value="langchain4j.mongodb-atlas.embedding-stores",
primary="default")
public class NamedMongoDbAtlasEmbeddingStoreConfig
extends Object
Configures for MongoDbEmbeddingStore.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNamedMongoDbAtlasEmbeddingStoreConfig
(com.mongodb.client.MongoClient mongoClient, @Nullable io.micronaut.langchain4j.mongodb.atlas.NamedMongoDbAtlasEmbeddingStoreConfig.IndexMappingConfig indexMappingConfig, @Nullable com.mongodb.client.model.CreateCollectionOptions createCollectionOptions) -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
com.mongodb.client.MongoClient
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
NamedMongoDbAtlasEmbeddingStoreConfig
public NamedMongoDbAtlasEmbeddingStoreConfig(@Parameter com.mongodb.client.MongoClient mongoClient, @Parameter @Nullable @Nullable io.micronaut.langchain4j.mongodb.atlas.NamedMongoDbAtlasEmbeddingStoreConfig.IndexMappingConfig indexMappingConfig, @Parameter @Nullable @Nullable com.mongodb.client.model.CreateCollectionOptions createCollectionOptions)
-
-
Method Details
-
getMongoClient
public com.mongodb.client.MongoClient getMongoClient()- Returns:
- The data source.
-
getBuilder
public dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder getBuilder()- Returns:
- The embedded store builder.
-