org.llm4s.rag.evaluation.RAGASLangfuseObserver
See theRAGASLangfuseObserver companion object
class RAGASLangfuseObserver(langfuseUrl: String, publicKey: Secret, secretKey: Secret, environment: String, release: String, version: String, batchSender: LangfuseBatchSender)
Observer that logs RAGAS evaluation results to Langfuse.
Integrates with the Langfuse tracing infrastructure in llm4s-observability, which llm4s-rag depends on for it, to log:
- Individual metric scores
- Composite RAGAS scores
- Evaluation details and metadata
Value parameters
- environment
-
Environment name (e.g., "production", "development")
- langfuseUrl
-
The Langfuse API URL
- publicKey
-
Langfuse public key
- release
-
Release version
- secretKey
-
Langfuse secret key
- version
-
API version
Attributes
- Example
-
{ val observer = LangfuseConfigLoader.default().map(RAGASLangfuseObserver.from) val result = evaluator.evaluate(sample) for { obs <- observer evalResult <- result } obs.logEvaluation(evalResult)}
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article