initial commit: slides + practica_resueltos + README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
# Testing de Aplicaciones LLM
|
||||
|
||||
<v-clicks>
|
||||
|
||||
### Dos enfoques complementarios
|
||||
|
||||
**Unit tests**: Componentes aislados con mocks, validaciones rápidas y predecibles.
|
||||
|
||||
**Integration tests**: Llamadas reales para confirmar que todo funciona junto.
|
||||
|
||||
### AgentEvals
|
||||
|
||||
```typescript
|
||||
import { createTrajectoryMatchEvaluator } from "agentevals";
|
||||
|
||||
// Trajectory Match: compara contra trayectoria de referencia
|
||||
const evaluator = createTrajectoryMatchEvaluator({ matchMode: "subset" });
|
||||
|
||||
// LLM-as-Judge: validación cualitativa con un modelo
|
||||
const llmEvaluator = createLLMJudgeEvaluator({ model: "gpt-4.1" });
|
||||
```
|
||||
|
||||
### Integración con LangSmith
|
||||
Configura `LANGSMITH_API_KEY` y `LANGSMITH_TRACING` para registrar experimentos automáticamente con Vitest/Jest.
|
||||
|
||||
[Docs: Testing](https://docs.langchain.com/oss/javascript/langchain/test)
|
||||
|
||||
</v-clicks>
|
||||
Reference in New Issue
Block a user