Class AdaptiveRag

java.lang.Object
dev.langchain4j.adaptiverag.AdaptiveRag

public class AdaptiveRag extends Object
AdaptiveRag
  • Constructor Details

    • AdaptiveRag

      public AdaptiveRag(String openApiKey, String tavilyApiKey)
      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