Commit graph

3 commits

Author SHA1 Message Date
Vadym Samoilenko
cad48a7160 feat: deduplication by SHA-256 hash + queue progress bar on upload
Backend:
- Migration 014: add file_hash (SHA-256) to knowledge_documents
- Upload endpoint: skip if identical, replace if changed, create if new
- Response includes action: "created" | "updated" | "skipped"

Frontend:
- Show SkipForward icon for skipped files
- Overall progress bar: X / Y processed with percentage
- Summary line shows uploaded / skipped / failed counts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 21:09:16 +00:00
Vadym Samoilenko
aa23c309d4 feat: file attachments, model badge, Russian RAG fix, trust score calibration
- Add POST /chat/attachment endpoint with markitdown extraction for docs/images
- Add GET /chat?attachment_id= query param to inject attachment into assistant context
- Update model names: gpt-5.2, claude-sonnet-4-6, gemini-3.1-pro-preview
- Fix Google API event loop blocking (wrap in asyncio.to_thread)
- Add Russian query translation step in RAG retriever (with 10s timeout fallback)
- Fix corrective RAG grader treating empty Gemini response as irrelevant
- Add safety fallback: if corrective RAG empties results, use originals
- Recalibrate trust score: answer_groundedness 50% weight (was retrieval-heavy)
- Deduplicate sources by filename in citations
- Add llm_model/llm_provider to SSE done event and message store
- Show model badge (Cpu icon) at bottom of each assistant response
- Fix enum migration bug in 002, 005, 006 (remove create_type=False)
- Add migrations 010 (role varchar), 011 (enum varchar), 012 (app_settings)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 17:31:00 +00:00
Vadym Samoilenko
44a512c41f Phase 1 Complete: Dual-bot architecture, knowledge base, access control
- Remove notebook mode, add RAG + Personal Assistant dual-bot setup
- Add knowledge base management (upload, URL scraping, document processing)
- Add user feature access control (allowed_features, features_override)
- Update admin dashboard with knowledge base tab
- Redesign login page, sidebar, and profile
- Add Celery tasks for async document processing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 21:26:40 +00:00