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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamedMongoDbAtlasEmbeddingStoreConfig(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 Type
    Method
    Description
    dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
     
    com.mongodb.client.MongoClient
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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.