From f96f813d6478863483e22e97f7a8e1f91f1b223c Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 8 Jun 2026 10:39:45 +0530 Subject: [PATCH] qdrant change --- .env | 1 + .gitignore | 4 +++- index.js | 4 ++-- server.js | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..efa5451 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +AZURE_OPENAI_KEY=6f7D5hx9UdRHQ3tSubhwhh6vxaLGrXs97Ge8OlI4B6bp71hmbpFLJQQJ99CFAC77bzfXJ3w3AAAAACOGeZX1 \ No newline at end of file diff --git a/.gitignore b/.gitignore index f189a18..cfe82d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /node_modules -/.env \ No newline at end of file +# /.env + +# git rm --cached .env \ No newline at end of file diff --git a/index.js b/index.js index 719f6f4..0957600 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,7 @@ const { // QDRANT CONFIG // ====================== const qdrant = new QdrantClient({ - url: "http://20.40.61.65:6333", + url: "http://172.236.181.119:6333", checkCompatibility: false, timeout: 30000, }); @@ -293,7 +293,7 @@ async function processPDF(filePath, fileName) { pageNum <= pdf.numPages; pageNum++ ) { - +// if (pageNum == 7 || pageNum == 8) {continue;} console.log( diff --git a/server.js b/server.js index 99d2009..6db7eb9 100644 --- a/server.js +++ b/server.js @@ -14,7 +14,7 @@ const CONFIG = { apiKey: process.env.AZURE_OPENAI_KEY, }, qdrant: { - url: process.env.QDRANT_URL || "http://20.40.61.65:6333", + url: process.env.QDRANT_URL || "http://172.236.181.119:6333", collection: process.env.QDRANT_COLLECTION || "pdf_rag", }, search: {