Class RagAssistantAutoConfiguration

java.lang.Object
ai.yda.framework.assistant.rag.autoconfigure.RagAssistantAutoConfiguration

@AutoConfiguration public class RagAssistantAutoConfiguration extends Object
Autoconfiguration class for setting up the RagAssistant bean. This class is responsible for automatically configuring a RagAssistant instance within the Spring application context. The RagAssistant bean is created using a provided Rag instance, which is injected as a dependency. The configuration is applied automatically when the application starts, thanks to the AutoConfiguration annotation.

This setup allows the RagAssistant to be readily available for use in the application wherever it's needed, without requiring manual bean configuration.

Since:
0.1.0
See Also:
  • RagAssistant
  • Rag
  • Constructor Details

  • Method Details

    • ragAssistant

      @Bean public ai.yda.framework.core.assistant.RagAssistant ragAssistant(ai.yda.framework.rag.core.Rag<ai.yda.framework.rag.core.model.RagRequest,ai.yda.framework.rag.core.model.RagResponse> rag)
      Creates and configures a RagAssistant bean in the Spring application context.
      Parameters:
      rag - the Rag instance used by the RagAssistant to perform its operations. This parameter is expected to be provided by the application or other autoconfiguration.
      Returns:
      a configured RagAssistant bean.