🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
Dataset Mutations
Rule
Always use functions in this directory. Never use direct Prisma calls.
Why
These functions handle:
- Name validation - Dataset names validated for folder structure (
/separator, no leading/trailing slashes, no//) - Upsert logic - Correct handling of unique constraint on
(projectId, name) - Null handling - Proper undefined vs null semantics for optional fields
Functions
upsertDataset()- Create or update by nameupdateDataset()- Update by ID
Name Validation Rules
See: packages/shared/src/features/datasets/validation.ts