Package dev.langchain4j.adaptiverag
Class AdaptiveRag
java.lang.Object
dev.langchain4j.adaptiverag.AdaptiveRag
AdaptiveRag
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the state of our graph. -
Constructor Summary
ConstructorDescriptionAdaptiveRag
(String openApiKey, String tavilyApiKey) Constructor for the AdaptiveRag class. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
-
Constructor Details
-
AdaptiveRag
Constructor for the AdaptiveRag class.- Parameters:
openApiKey
- The API key for OpenAI, used for accessing its services.tavilyApiKey
- The API key for Tavily, used for web search functionality. This constructor initializes the AdaptiveRag instance by validating the provided API keys. Both keys are required for the functionality of this class. If either key is null, an exception is thrown. This ensures that the AdaptiveRag instance is always properly configured.
-
-
Method Details