Skip to content

Conversation

@gabrielmpetrescu
Copy link
Collaborator

@gabrielmpetrescu gabrielmpetrescu commented Dec 29, 2025

Current State: Users must manually run aidocs rag-chunks and aidocs rag-vectors after editing documentation. Easy to forget, leading to stale embeddings.

Improvement: Add a aidocs watch docs/ command that monitors the docs directory for changes and automatically re-chunks modified files + regenerates their embeddings.

Implementation approach:

  • Use watchdog library for file system monitoring
  • Debounce changes (wait by default 10 seconds after last edit)
  • Only process changed files (already supported via manifest hashing)
  • Show real-time status in terminal with Rich

Copy link
Contributor

@binaryk binaryk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gabrielmpetrescu this is a quite expensive command if it generates vectors on the fly. vectors should be generated after the .md is reviewed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants