patch skipCache logic among all vector db providers

resolves #3958
This commit is contained in:
timothycarambat 2025-06-30 13:16:46 -07:00
parent 91e498229c
commit d1d68af0f8
5 changed files with 5 additions and 5 deletions

View File

@ -193,7 +193,7 @@ const Chroma = {
if (!pageContent || pageContent.length == 0) return false;
console.log("Adding new vectorized document into namespace", namespace);
if (skipCache) {
if (!skipCache) {
const cacheResult = await cachedVectorInformation(fullFilePath);
if (cacheResult.exists) {
const { client } = await this.connect();

View File

@ -147,7 +147,7 @@ const Milvus = {
if (!pageContent || pageContent.length == 0) return false;
console.log("Adding new vectorized document into namespace", namespace);
if (skipCache) {
if (!skipCache) {
const cacheResult = await cachedVectorInformation(fullFilePath);
if (cacheResult.exists) {
const { client } = await this.connect();

View File

@ -146,7 +146,7 @@ const QDrant = {
if (!pageContent || pageContent.length == 0) return false;
console.log("Adding new vectorized document into namespace", namespace);
if (skipCache) {
if (!skipCache) {
const cacheResult = await cachedVectorInformation(fullFilePath);
if (cacheResult.exists) {
const { client } = await this.connect();

View File

@ -193,7 +193,7 @@ const Weaviate = {
if (!pageContent || pageContent.length == 0) return false;
console.log("Adding new vectorized document into namespace", namespace);
if (skipCache) {
if (!skipCache) {
const cacheResult = await cachedVectorInformation(fullFilePath);
if (cacheResult.exists) {
const { client } = await this.connect();

View File

@ -148,7 +148,7 @@ const Zilliz = {
if (!pageContent || pageContent.length == 0) return false;
console.log("Adding new vectorized document into namespace", namespace);
if (skipCache) {
if (!skipCache) {
const cacheResult = await cachedVectorInformation(fullFilePath);
if (cacheResult.exists) {
const { client } = await this.connect();