Comment

Comment by reacharavindh

The embedding model stays loaded in memory. It is used for turning your search keywords into embeddings.

The index you’re thinking of is made once per file.. then you compare and search in embeddings. Add/modify files = asynchronous updating or adding corresponding embeddings using the model in memory onto wherever you persist those embeddings(say SQLite)..

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton