diff --git a/server/endpoints/api/workspace/index.js b/server/endpoints/api/workspace/index.js index e745d3f917..032fe41c39 100644 --- a/server/endpoints/api/workspace/index.js +++ b/server/endpoints/api/workspace/index.js @@ -65,6 +65,7 @@ function apiWorkspaceEndpoints(app) { await Telemetry.sendTelemetry("workspace_created", { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", + Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "pinecone", }); response.status(200).json({ workspace, message }); @@ -488,6 +489,7 @@ function apiWorkspaceEndpoints(app) { const result = await chatWithWorkspace(workspace, message, mode); await Telemetry.sendTelemetry("sent_chat", { LLMSelection: process.env.LLM_PROVIDER || "openai", + Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "pinecone", }); response.status(200).json({ ...result }); diff --git a/server/endpoints/chat.js b/server/endpoints/chat.js index efe10c6987..d0a2923c57 100644 --- a/server/endpoints/chat.js +++ b/server/endpoints/chat.js @@ -77,6 +77,7 @@ function chatEndpoints(app) { await Telemetry.sendTelemetry("sent_chat", { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", + Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "pinecone", }); response.end(); @@ -154,6 +155,7 @@ function chatEndpoints(app) { { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", + Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "pinecone", }, user?.id diff --git a/server/endpoints/workspaces.js b/server/endpoints/workspaces.js index d34f5aa50a..3170eb1a33 100644 --- a/server/endpoints/workspaces.js +++ b/server/endpoints/workspaces.js @@ -32,6 +32,7 @@ function workspaceEndpoints(app) { { multiUserMode: multiUserMode(response), LLMSelection: process.env.LLM_PROVIDER || "openai", + Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "pinecone", }, user?.id diff --git a/server/models/documents.js b/server/models/documents.js index c8046f5b37..4505089d5c 100644 --- a/server/models/documents.js +++ b/server/models/documents.js @@ -74,6 +74,7 @@ const Document = { await Telemetry.sendTelemetry("documents_embedded_in_workspace", { LLMSelection: process.env.LLM_PROVIDER || "openai", + Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "pinecone", }); return { failed: failedToEmbed, embedded }; @@ -105,6 +106,7 @@ const Document = { await Telemetry.sendTelemetry("documents_removed_in_workspace", { LLMSelection: process.env.LLM_PROVIDER || "openai", + Embedder: process.env.EMBEDDING_ENGINE || "inherit", VectorDbSelection: process.env.VECTOR_DB || "pinecone", }); return true;