Package dev.langchain4j.adaptiverag
Class Generation
java.lang.Object
dev.langchain4j.adaptiverag.Generation
- All Implemented Interfaces:
BiFunction<String,
List<String>, String>
This class provides a service for generating answers to questions using natural language processing.
It implements the
BiFunction
interface to process question and context inputs and produce an answer.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface for service implementation that provides capabilities to answer questions based on given context. -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
Generation
public Generation()
-
-
Method Details
-
apply
Apply a text-based query to an AI model and retrieve the model's response.
-