This is an example Node.js application that processes projects from the ITP Project Database, generates embeddings, and saves the embeddings to local files. The embeddings are then used for a semantic search.
Run here: https://editor.p5js.org/a2zitp/sketches/6UACQFJmg
fetch-projects-db.js
: Retrieve project data from ITP Project Database API.embeddings-transformers.js
: Generates embeddings using the bge-small model with transformers.js.index.js
: run a local web serverpublic/index.html
+ public/sketch.js
: proof of concept semantic search
npm install
node fetch-projects-db.js
node embeddings-transformers.js