Spaces:
Sleeping
Sleeping
Commit History
-
Fix regeneration to use Groq instead of mock, improve mock fallback
- Pipeline regeneration now calls Groq via regenerate_with_refinement() instead of hardcoded _generate_mock() - Mock generator improved: filters stop words, scores sentences by meaningful keyword overlap, picks most relevant sentences first - Fixes garbage responses like "rt Ratio falls below 0.6" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>62494ee -
Add evidence-grounded verification for text documents
- Evidence-grounded boost: if retrieved evidence is strong (similarity >= 0.5), claims with moderate similarity (>= 0.4) are marked as supported - Relaxed heuristic entailment threshold from 70% to 50% word overlap - Fixed ChromaDB client to use EphemeralClient for newer versions - Added comprehensive PROJECT_DOCUMENTATION.md - Fixes false hallucination detection on PDF/text document queries Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>116c121
-
Relax verification for text documents - support flexible claim matching
- Verification now accepts: high similarity + neutral NLI, moderate similarity + entailment, or very high similarity alone - Lowered default similarity threshold from 0.75 to 0.6 for paraphrased text - Lowered firewall threshold from 0.8 to 0.6 for text document queries - Fixes issue where valid PDF answers were marked as unsupported Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>00a7178 -
Fix NLI parsing error and stop overwriting valid RAG responses
- Fixed NLI model output parsing (handle list-of-lists from top_k=None) - Response from RAG pipeline is no longer replaced with "hallucination detected" - Verification status is shown as a note, not as a replacement for the answer - PDF/text document queries now return actual answers with verification info Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>f433f81 -
Restructure project with FastAPI + React frontend and Railway deployment
- Restructured into modular packages (config/, core/, generation/, ingestion/, retrieval/, utils/) - Added FastAPI REST API (api.py) with structured data analysis for Excel/CSV - Added React frontend with Vite, Tailwind CSS, tabular response rendering - Added hallucination detection: full name matching, claim verification, comparison - Added student comparison, filter queries, aggregate operations on uploaded data - Added Railway deployment config (Procfile, railway.json, nixpacks.toml) - Updated requirements.txt with fastapi, uvicorn, openpyxl - Updated .gitignore for Python/Node artifacts and user uploads Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1bbe15b