Eager background indexing (#2928)
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.
K
Kyle Caverly committed
49af2874bb9e4db1a4b70641034f02b0c6a1fc8b
Committed by GitHub <noreply@github.com>
on 9/5/2023, 5:15:54 PM