Skip to content

Commit

Permalink
fix embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
jhcoll committed Oct 23, 2023
1 parent a307794 commit 558256c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/generate-related/compute-embeddings.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ const summarisePost = async (post) => {
return paths;
});

if (!fs.existsSync("./scripts/generate-related/data")) {
fs.mkdirSync("./scripts/generate-related/data");
}

for (const path of paths) {
const file = path.split("/").pop();
const filename = `./scripts/generate-related/data/${file}`;
Expand Down

0 comments on commit 558256c

Please sign in to comment.