This PR ships a series of optimizations for the semantic search engine. Mostly focused on removing invalid states, optimizing requests to OpenAI, and reducing token usage. Release Notes (Preview-Only): - Added eager incremental indexing in the background on a debounce. - Added a local embeddings cache for reducing redundant calls to OpenAI. - Moved to an Embeddings Queue model which ensures optimal batch sizes at the token level, and atomic file & document writes. - Adjusted OpenAI Embedding API requests to use provided backoff delays during Rate Limiting. - Removed flush races between parsing files step and embedding queue steps. - Moved truncation to parsing step reducing the probability that OpenAI encounters bad data.
9 files changedLine totals unavailable