From ca8e8245fcde739a60e626e492220abc770ea5e2 Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 14 Jun 2023 00:27:19 -0700 Subject: [PATCH] remove lancedb logging --- server/utils/vectorDbProviders/lance/index.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/server/utils/vectorDbProviders/lance/index.js b/server/utils/vectorDbProviders/lance/index.js index 2b324cde0..d259021bf 100644 --- a/server/utils/vectorDbProviders/lance/index.js +++ b/server/utils/vectorDbProviders/lance/index.js @@ -26,9 +26,8 @@ function curateLanceSources(sources = []) { } const LanceDb = { - uri: `${ - !!process.env.STORAGE_DIR ? `${process.env.STORAGE_DIR}/` : "./storage/" - }lancedb`, + uri: `${!!process.env.STORAGE_DIR ? `${process.env.STORAGE_DIR}/` : "./storage/" + }lancedb`, name: "LanceDb", connect: async function () { if (process.env.VECTOR_DB !== "lancedb") @@ -91,13 +90,11 @@ const LanceDb = { updateOrCreateCollection: async function (client, data = [], namespace) { if (await this.hasNamespace(namespace)) { const collection = await client.openTable(namespace); - const result = await collection.add(data); - console.log({ result }); + await collection.add(data); return true; } - const result = await client.createTable(namespace, data); - console.log({ result }); + await client.createTable(namespace, data); return true; }, hasNamespace: async function (namespace = null) { @@ -149,7 +146,6 @@ const LanceDb = { }); } - console.log(submissions); await this.updateOrCreateCollection(client, submissions, namespace); await DocumentVectors.bulkInsert(documentVectors); return true;