fix: address index artifact review notes - #232
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
🚧 Files skipped from review as they are similar to previous changes (13)
Summary by CodeRabbit
WalkthroughThe changes improve index-artifact reliability and state handling. Queue workers validate chapter existence and propagate cancellation signals to embedding operations. Dense-segment builders reject invalid configuration and sentence word counts. Search-index state records missing artifacts correctly. Library indexing processes streamed batches and uses shared metadata readers. State refreshes release locks reliably. CLI messages, help routes, readiness documentation, and tests are updated. Sequence Diagram(s)sequenceDiagram
participant QueueWorker
participant ChapterStore
participant EmbeddingBuilder
participant EmbeddingProvider
participant ArchiveFile
QueueWorker->>ChapterStore: verify chapter existence
ChapterStore-->>QueueWorker: chapter revision or missing
QueueWorker->>EmbeddingBuilder: build artifact with AbortSignal
EmbeddingBuilder->>EmbeddingProvider: embed batches with abort signal
EmbeddingProvider-->>EmbeddingBuilder: embeddings
EmbeddingBuilder-->>QueueWorker: embedding artifact
QueueWorker->>ArchiveFile: commit artifact
Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/core/src/library/search-index.ts`:
- Line 618: Update the compatibility error message in mergeEmbeddingState to
cover mismatched embedding models as well as provider or dimension differences,
using broader wording such as “different embedding configurations.”
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c20b4869-ff95-4601-ac2e-28016f1f6414
📒 Files selected for processing (13)
packages/cli/src/args/uri/chapter/routing.tspackages/cli/src/commands/library.tspackages/cli/src/commands/queue/worker.tspackages/cli/src/runtime/embedding.tspackages/core/data/help/topics/readiness.jinjapackages/core/src/library/search-index.tspackages/core/src/retrieval/index-artifact/build.tspackages/core/src/retrieval/query/archive-view/index-state.tspackages/core/src/retrieval/search-index/search/build.tspackages/core/src/retrieval/search-index/search/types.tspackages/core/src/storage/wikg/wikg-coordinator/flusher.tstest/cli/archive/mock.tstest/cli/queue.test.ts
8d8ba2a to
d397566
Compare
Summary
Validation