Sulba
ReviewSign inAccount
Theme
Editor theme
Light
Dark

Intermediate · Retrieval

Embeddings for search

Search a help desk's pages with an embedding model on your machine: embedding requests in batches with the model's prefixes, a cache that embeds each text once, vectors cut short and kept in a byte a number, a review of an assistant's search, and an index that fits in a few hundred bytes a passage.

You build
embed.py, then cache.py, then shorten.py, then search.py, then index.py
Stages
3 Build, 1 Catch, 1 Ship
Time
About 3 hours
Runs on
Your machine

Loading the workspace…