Class EvaluationSamples
java.lang.Object
io.micronaut.langchain4j.test.EvaluationSamples
Loads
evaluation samples from a YAML (or JSON) file of the classpath: a list of samples,
or a map with a samples list.
samples:
- name: framework
input: Which framework do you recommend?
context: Micronaut is a JVM framework for microservices.
expected: Micronaut
- Since:
- 2.4.0
-
Method Summary
-
Method Details
-
load
- Parameters:
resource- The path of the file on the classpath, for examplesamples/assistant.yml- Returns:
- The samples of the file
-