Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

perf: reduce batch size (#997)

Max Deichmann9c00d1905f0d
diff --git a/scripts/model-match.ts b/scripts/model-match.ts
index 42a5497429..006d6c2b42 100644
--- a/scripts/model-match.ts
+++ b/scripts/model-match.ts
@@ -24,8 +24,7 @@ export async function modelMatch() {
console.log("Starting model match");
const start = Date.now();
- // while observations are not null, get the next 50_000 observations
- const BATCH_SIZE = 50_000;
+ const BATCH_SIZE = 10_000;
let continueLoop = true;
let index = 0;
let totalObservations = 0;
@@ -67,7 +66,6 @@ export async function modelMatch() {
take: BATCH_SIZE,
skip: index * BATCH_SIZE,
});
- console.log("Observations: ", observations[0]?.id);
console.log(`Found ${observations.length} observations to migrate`);