Class HuggingFaceLangchain4jLanguageModel

java.lang.Object
io.micronaut.projectgen.micronaut.features.langchain4j.languagemodels.HuggingFaceLangchain4jLanguageModel
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, Feature, OpenRewriteFeature, Langchain4jFeature, Langchain4jLanguageModel

@Requires(property="micronaut.starter.feature.langchain4j.hugging.face.enabled", value="true", defaultValue="true") @Singleton public class HuggingFaceLangchain4jLanguageModel extends Object implements Langchain4jLanguageModel, OpenRewriteFeature
Feature that provides integration with Hugging Face's Langchain4j language model in Micronaut. Adds the necessary configuration and recipes for Hugging Face language model support.
  • Constructor Details

    • HuggingFaceLangchain4jLanguageModel

      public HuggingFaceLangchain4jLanguageModel()
  • Method Details

    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface Feature
      Returns:
      The title of the feature
    • getName

      public String getName()
      Description copied from interface: Feature
      The name of the feature. It must be unique.
      Specified by:
      getName in interface Feature
      Specified by:
      getName in interface io.micronaut.core.naming.Named
      Returns:
      the name of the feature
    • getRecipes

      public List<String> getRecipes(GeneratorContext generatorContext)
      Specified by:
      getRecipes in interface OpenRewriteFeature