Add incremental update mode to Box crawler#326
Merged
adeelehsan merged 3 commits intomainfrom Mar 10, 2026
Merged
Conversation
When incremental_update: true and hours_back are set, the crawler:
- Scans Box folders once to get all files with modified_at timestamps
- Filters to only files modified within the hours_back window
- Downloads and indexes only those files through the full pipeline
- Compares Box files vs indexed.csv to detect removed files
- Deletes removed files from Vectara and updates indexed.csv
Config:
box_crawler:
incremental_update: true
hours_back: 8h # supports: 6h, 24h, 2d
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Switch base image from python:3.11-slim to python:3.12-slim (eliminates CRITICAL CVE-2026-3731 in libssh-4, reduces vendored CVEs) - Upgrade Authlib 1.6.5 → 1.6.7 (CVE-2026-28802) - Upgrade ray 2.53.0 → 2.54.0 - Recompile requirements.txt with --universal for Python 3.12 Trivy results: 0 CRITICAL, 15 HIGH (all NO FIX available upstream) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
incremental_updateandhours_backconfig options to the Box crawlerhours_backwindow (single Box folder traversal)Config
How it works
modified_athours_backindexed.csv→ deletes orphaned docs from Vectaraincremental_updateis not set, crawler runs exactly as before (zero behavior change)Test plan
incremental_update: true, hours_back: 24hon existing corpus with indexed.csvincremental_updateis not set🤖 Generated with Claude Code