You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: stream bookContents in batches without ToList(); document ChunkIndex schema migration
- EmbeddingService: replace bookContents.ToList() + Chunk() with a
streaming buffer pattern (List<BookContentChunk>(EmbeddingBatchSize)).
Each batch is filled from the IEnumerable, embedded, and upserted
before moving on, so only one batch of chunks + vectors lives in
memory at a time. Track total count with a running int.
- BookContentChunk: add <remarks> to ChunkIndex documenting that it is
a new column requiring a collection rebuild on existing deployments.
0 commit comments