Object RAGService

  • All Implemented Interfaces:

    
    public class RAGService
    
                        

    Service that manage the retrieval augmented generation (RAG) with Large Language Model (LLM) functionality

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static RAGService INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final BotRAGConfiguration getRAGConfiguration(String namespace, String botId) Get the RAG configuration
      final Unit deleteConfig(String namespace, String botId) Deleting the RAG Configuration
      final BotRAGConfiguration saveRag(BotRAGConfigurationDTO ragConfig) Save RAG configuration and filter errors
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getRAGConfiguration

         final BotRAGConfiguration getRAGConfiguration(String namespace, String botId)

        Get the RAG configuration

        Parameters:
        namespace - : the namespace
        botId - : the bot ID
      • deleteConfig

         final Unit deleteConfig(String namespace, String botId)

        Deleting the RAG Configuration

        Parameters:
        namespace - : the namespace
        botId - : the bot ID
      • saveRag

         final BotRAGConfiguration saveRag(BotRAGConfigurationDTO ragConfig)

        Save RAG configuration and filter errors

        Parameters:
        ragConfig - : the rag configuration to create or update
        Returns:

        BotRAGConfiguration