async fn find_pending_chunks(
pool: &SqlitePool,
model: &str,
limit: Option<usize>,
) -> Result<Vec<PendingChunk>>Expand description
Find chunks that are missing embeddings or have stale hashes.
A chunk is “pending” if:
- No row exists in
embeddingsfor this chunk+model, or - The stored
hashdiffers from the chunk’s currenthash.