java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.service.model.ModelService

@ApplicationScoped public class ModelService extends Object
Service for managing LangChain4j models. Provides CDI producers for embedding, chat, and streaming chat models.
  • Constructor Details

    • ModelService

      public ModelService()
  • Method Details

    • getEmbeddingModel

      @Produces @Named("wiki-ai.embeddingModel") @ApplicationScoped public dev.langchain4j.model.embedding.EmbeddingModel getEmbeddingModel()
      Retrieves the embedding model
      Returns:
      The embedding model
    • getChatModel

      @Produces @Named("wiki-ai.chatModel") @ApplicationScoped public dev.langchain4j.model.chat.ChatModel getChatModel()
      Retrieves the chat model
      Returns:
      The chat model
    • getStreamingChatModel

      @Produces @Named("wiki-ai.streamingChatModel") @ApplicationScoped public dev.langchain4j.model.chat.StreamingChatModel getStreamingChatModel()
      Retrieves the streaming chat model
      Returns:
      The streaming chat model