Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

Part of Val Town Semantic Search.

Uses Neon to search embeddings of all vals, using the pg_vector extension.

  • Call OpenAI to generate an embedding for the search query.
  • Query the vals_embeddings table in Neon using the cosine similarity operator.

Migrated from folder: semanticSearchPrototype/semanticSearchNeon