From ecdfee27149e3e1a8c2a65d8e4bc0963c35247dc Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 15 Dec 2024 12:55:35 -0800 Subject: [PATCH] fix pre-indexed docs retreival --- core/indexing/docs/preIndexed.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/indexing/docs/preIndexed.ts b/core/indexing/docs/preIndexed.ts index 73778a2b0..b66d21e70 100644 --- a/core/indexing/docs/preIndexed.ts +++ b/core/indexing/docs/preIndexed.ts @@ -6,7 +6,7 @@ export function getS3Filename( embeddingsProviderId: string, title: string, ): string { - return `${embeddingsProviderId}/${title}`; + return `_TransformersJsEmbeddingsProvider::all-MiniLM-L6-v2/${title}`; } export enum S3Buckets { @@ -27,7 +27,7 @@ export async function downloadFromS3( }); download.on("response", (response: any) => { if (response.statusCode !== 200) { - reject(new Error("No body returned when downloading from S3 bucket")); + reject(new Error("There was an error retreiving the pre-indexed doc")); } });