🪢 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
chore(dataset-run-items): sunset dual-write phase; do not fall back on PG in CH execution path (#8497)
marliessophie4fd1f86f9d46
diff --git a/packages/shared/src/server/dataset-run-items/datasetExecution.ts b/packages/shared/src/server/dataset-run-items/datasetExecution.tsindex ecd7e05911..bee47064a6 100644--- a/packages/shared/src/server/dataset-run-items/datasetExecution.ts+++ b/packages/shared/src/server/dataset-run-items/datasetExecution.ts@@ -1,5 +1,4 @@import { env } from "../../env";-import { logger } from "../../server/logger";import {DatasetRunItemsExecutionStrategy,DatasetRunItemsOperationType,@@ -48,23 +47,8 @@ export async function executeWithDatasetRunItemsStrategy<TInput, TOutput>({if (operationType === DatasetRunItemsOperationType.WRITE) {// For write operations, implement dual-write strategyif (strategy.shouldWriteToClickHouse) {- // Dual-write phase: write to both databases- const postgresResult = await postgresExecution(input);-- try {- await clickhouseExecution(input);- logger.debug("Successfully wrote to both PostgreSQL and ClickHouse", {- operation: `dataset_run_items_${operationType}`,- });- } catch (error) {- logger.error("ClickHouse write failed during dual-write phase", {- error: error instanceof Error ? error.message : String(error),- operation: `dataset_run_items_${operationType}`,- });- // Continue with PostgreSQL result since it succeeded- }-- return postgresResult;+ // Write only to ClickHouse+ return await clickhouseExecution(input);} else {// Write only to PostgreSQLreturn await postgresExecution(input);@@ -74,20 +58,10 @@ export async function executeWithDatasetRunItemsStrategy<TInput, TOutput>({const shouldExecuteClickhouse = strategy.shouldReadFromClickHouse;if (shouldExecuteClickhouse) {- try {- return await clickhouseExecution(input);- } catch (error) {- logger.error(- "ClickHouse execution failed, falling back to PostgreSQL",- {- error: error instanceof Error ? error.message : String(error),- operation: `dataset_run_items_${operationType}`,- },- );- // Fallback to PostgreSQL for reliability- return await postgresExecution(input);- }+ // Read from ClickHouse+ return await clickhouseExecution(input);} else {+ // Read from PostgreSQLreturn await postgresExecution(input);}}diff --git a/packages/shared/src/server/llm/testModelCall.ts b/packages/shared/src/server/llm/testModelCall.tsindex 8c5e534505..642056965a 100644--- a/packages/shared/src/server/llm/testModelCall.ts+++ b/packages/shared/src/server/llm/testModelCall.ts@@ -22,7 +22,7 @@ export const testModelCall = async ({apiKey: z.infer<typeof LLMApiKeySchema>;prompt?: string;modelConfig?: ModelConfig | null;-}): Promise<void> => {+}) => {(await fetchLLMCompletion({streaming: false,