diff --git a/scripts/generate-related/compute-embeddings.js b/scripts/generate-related/compute-embeddings.js index 654b7a1675..9bd5100c16 100644 --- a/scripts/generate-related/compute-embeddings.js +++ b/scripts/generate-related/compute-embeddings.js @@ -56,7 +56,7 @@ const summarisePost = async (post) => { for (const path of paths) { const file = path.split("/").pop(); - const filename = `scripts/generate-related/data/${file}`; + const filename = `./scripts/generate-related/data/${file}`; if (!fs.existsSync(filename)) { await summarisePost(path).then((embedding) => {