fix pre-indexed docs retreival
This commit is contained in:
parent
ebf7a1da51
commit
ecdfee2714
1 changed files with 2 additions and 2 deletions
|
|
@ -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"));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue