Class StreamingRagAssistantAutoConfiguration

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

@AutoConfiguration public class StreamingRagAssistantAutoConfiguration extends Object
Autoconfiguration class for setting up a StreamingRagAssistant bean. This class is responsible for automatically configuring a StreamingRagAssistant instance within the Spring application context. The StreamingRagAssistant bean is created using a provided StreamingRag 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 StreamingRagAssistant to be readily available for use in the application wherever it's needed, without requiring manual bean configuration.

Since:
0.1.0
See Also:
  • StreamingRagAssistant
  • StreamingRag
  • Constructor Details

  • Method Details

    • streamingRagAssistant

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