FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
janpaul123
janpaul123indexValsBlobs
Remix of janpaul123/indexValsTurso
Public
Like
indexValsBlobs
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
1
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Part of Val Town Semantic Search.

Generates OpenAI embeddings for all public vals, and stores them in Val Town's blob storage.

  • Create a new metadata object. Also has support for getting the previous metadata and only adding new vals, but that's currently disabled.
  • Get all val names from the database of public vals, made by Achille Lacoin.
  • Put val names in batches. Vals in the same batch will have their embeddings stored in the same blob, at different offsets.
  • Iterate through all each batch, get code for all the vals, get embeddings from OpenAI, and store the result in a blob.
  • When finished, save the metadata JSON to its own blob.
  • Can now be searched using janpaul123/semanticSearchBlobs.

Migrated from folder: semanticSearchPrototype/indexValsBlobs

Code
README.mdmain.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.