🪢 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
fix(dataset-schemas): allow schemas until 10k char length (#10820)
Hassieb Pakzad3b242378dccd
diff --git a/packages/shared/src/utils/jsonSchemaValidation.ts b/packages/shared/src/utils/jsonSchemaValidation.tsindex 876c53accd..7e9b924b04 100644--- a/packages/shared/src/utils/jsonSchemaValidation.ts+++ b/packages/shared/src/utils/jsonSchemaValidation.ts@@ -39,7 +39,7 @@ export const createAjvInstanceInternal = () => {export function isValidJSONSchema(schema: unknown): boolean {try {const stringified = JSON.stringify(schema);- if (stringified.length > 1_000) return false; // Schema too large+ if (stringified.length > 10_000) return false; // Schema too largeconst ajv = createAjvInstanceInternal();// This will throw an error if the schema is invalid