🪢 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: enable full-text search for EventsReadOnly ClickHouse clients (#15773)
Valery Meleshkin67b18586a207
diff --git a/packages/shared/src/server/clickhouse/client.ts b/packages/shared/src/server/clickhouse/client.tsindex 1fee29e737..bd9ce974a3 100644--- a/packages/shared/src/server/clickhouse/client.ts+++ b/packages/shared/src/server/clickhouse/client.ts@@ -28,17 +28,6 @@ type RequestTimeoutClickHouseSettings = ClickHouseSettings & {const CLICKHOUSE_CLIENT_DEFAULT_REQUEST_TIMEOUT_MS = 30_000;const CLICKHOUSE_SERVER_TIMEOUT_GRACE_SECONDS = 5;-/**- * Remove these once we remove corresponding variables- */-const EVENTS_TABLE_READ_PATH_ENV_KEYS = [- "LANGFUSE_ENABLE_EVENTS_TABLE_OBSERVATIONS",- "LANGFUSE_ENABLE_EVENTS_TABLE_UI",- "LANGFUSE_ENABLE_EVENTS_TABLE_FLAGS",- "LANGFUSE_ENABLE_EVENTS_TABLE_V2_APIS",- "LANGFUSE_MIGRATION_V4_ALLOW_PREVIEW_OPT_IN",-] as const;-/*** ClickHouseClientManager provides a singleton pattern for managing ClickHouse clients.* It creates and reuses clients based on their configuration to avoid creating@@ -104,8 +93,7 @@ export class ClickHouseClientManager {preferredClickhouseService: PreferredClickhouseService,): ServiceClickhouseSettings {const eventROSettings: ServiceClickhouseSettings =- preferredClickhouseService === "EventsReadOnly" &&- this.isEventsTableReadPathEnabled()+ preferredClickhouseService === "EventsReadOnly"? { enable_full_text_index: 1 }: {};@@ -115,12 +103,6 @@ export class ClickHouseClientManager {};}- private isEventsTableReadPathEnabled(): boolean {- return EVENTS_TABLE_READ_PATH_ENV_KEYS.some(- (key) => process.env[key] === "true",- );- }-private getRequestTimeoutClickHouseSettings(requestTimeout?: number,): RequestTimeoutClickHouseSettings {