Spaces:
Build error
Build error
Commit History
-
fix: make ingestion and querying robust; add acceptance-test corpus
Shubham Pawar +1: Claude Sonnet 5Issues found while building an end-to-end test corpus and running it against the live API (see docs/fixes/2026-09-05-ingestion-and-event-loop-blocking.md): Ingestion - Markdown ingest returned HTTP 500 in offline / strict-TLS environments: UnstructuredMarkdownLoader downloads a spaCy model at runtime. Switched .md/.markdown to TextLoader (markdown is chunked as plain text anyway). - A single ingest/query froze the whole worker: async handlers ran the synchronous load->chunk->embed->store / retrieve->LLM work on the event loop. Moved it to run_in_threadpool; stream() driven via iterate_in_threadpool. /health now stays ~1ms responsive during a 5.5s ingest (was blocked ~4.75s). - /api/ingest had no upload limits. Added MAX_UPLOAD_FILES / MAX_FILE_SIZE_MB / MAX_TOTAL_UPLOAD_MB, enforced before any work, returning HTTP 413. - Embedding model now warmed in the lifespan startup hook instead of stalling the first request. Querying - Groq model llama-3.3-70b-versatile is decom…c8f7f2e
-
fix: improve RAG retrieval quality for dense documents
- Increased chunk_size 1000 -> 1500 (prevents splitting relevant paragraphs) - Increased top_k 5 -> 8 (more context for large papers) - Rewrote prompt: synthesizes partial info instead of refusing - Prompt now instructs to use details, quotes, and structure answersc2702f6
-
fix: allow all CORS origins for HuggingFace Spaces
HF Spaces uses dynamic subdomains that change per session639205e -
fix: correct HuggingFace Space domain in CORS
ee3690f -
fix: add HuggingFace Spaces domains to CORS origins
Fixes 403 error when ingesting files on deployed app1bb7cb2 -
fix: fix linting issues
a6df84a
-
feat: implement FastAPI application structure
- Add main FastAPI app with CORS and lifespan - Add Pydantic models for all endpoints - Add health check endpoints - Add /api/query with streaming support - Add /api/ingest with file upload - Update settings with API configurationb6fa51d
-
feat: initial project setup and structure
- Created project directory structure (src/, api/, rag/, llmops/, frontend/, evals/, tests/, config/, docs/) - Added README.md with project overview and quick start guide - Added .gitignore for Python, IDE, and environment files - Added .env.example with configuration template - Added requirements.txt with 2025-updated dependencies - Added LICENSE (MIT) - Added Python package __init__.py files - Added config/settings.py with Pydantic-based configurationa5f90d1