Package dev.langchain4j.adaptiverag
package dev.langchain4j.adaptiverag
-
ClassDescriptionAdaptiveRagRepresents the state of our graph.Class to grade answers based on whether they address a given question.Represents the arguments for a structured prompt, encapsulating both a user's question and an LLM-generated response.Binary score to assess answer addresses question.The ChromaStore class provides a singleton interface for interacting with the Chroma Embedding Store.This class provides a service for generating answers to questions using natural language processing.Interface for service implementation that provides capabilities to answer questions based on given context.Provides functionality to grade the groundedness of an LLM generation with respect to a set of facts.Represents a set of facts and an associated LLM generation.Binary score for hallucination present in generation answer.This class implements a
Function
to rewrite questions for better vectorstore retrieval.Router for user queries to the most relevant datasource.The RetrievalGrader class implements a function to assess the relevance of a retrieved document to a user's question.Represents a structure for holding the arguments needed to process a user's query.A static class that represents a score in a binary format.The `WebSearchTool` class provides a solution for performing web searches based on user queries.