Class RagAssistantAutoConfiguration
java.lang.Object
ai.yda.framework.assistant.rag.autoconfigure.RagAssistantAutoConfiguration
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionai.yda.framework.core.assistant.RagAssistantragAssistant(ai.yda.framework.rag.core.Rag<ai.yda.framework.rag.core.model.RagRequest, ai.yda.framework.rag.core.model.RagResponse> rag) Creates and configures aRagAssistantbean in the Spring application context.
-
Constructor Details
-
RagAssistantAutoConfiguration
public RagAssistantAutoConfiguration()Default constructor forRagAssistantAutoConfiguration.
-
-
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 aRagAssistantbean in the Spring application context.- Parameters:
rag- theRaginstance used by theRagAssistantto perform its operations. This parameter is expected to be provided by the application or other autoconfiguration.- Returns:
- a configured
RagAssistantbean.
-