Spaces:
Running
Running
Commit History
25 days ago
-
Add Knowledge Base document versioning, diff, and chat compare queries
- Track version history per KB document (item_id/content_hash/version/ previous_version_id), auto-saving changed re-uploads as a new version with no confirmation prompt - Keep old and new versions' vectors both live and queryable - older versions are never deleted or hidden - Add a text-diff service (normalized, difflib-based) and endpoints to list versions and diff any two documents - Add chat-level "what changed between v1 and v2" / "difference between X and Y" queries, resolved from stored extracted_text and summarized by the LLM, isolated so failures fall back to normal chat - Dedupe retrieval to the latest version when two versions share a filename, so default answers never mix old and new content - a no-op for any pre-existing content without version metadata - Add an Item ID field to the admin upload UI so a renamed file can still be linked to its prior version - Add version history/diff view in admin file list Co-Authored-By: Claude Sonnet 5 <noreply@anthropi…8ad67af