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: gemini provider model change
a8057c1
-
feat: add multi-provider LLM support (Gemini, OpenAI, Claude, Groq)
- Added provider selection cards on login page with tier badges - Dynamic Get Key links for each provider - Updated pipeline to support multiple LLM providers - Added langchain-openai, langchain-anthropic, langchain-groq deps - Updated API models and routes for provider parametera226579 -
chore: simplify API key validation to format check only
462f062
-
feat: add multi-tenant BYOK authentication
- Added API key login page with validation - Added user namespace for collections (hash-based isolation) - Added collection list with create/delete in sidebar - Added logout functionality - Made API key required (removed server-side fallback) - Session isolation: each user's chats and collections are separate9a80835
-
feat: add BYOK (Bring Your Own Key) support
- Added api_key field to QueryRequest model - Updated query endpoint to pass user key to pipeline - Added _build_chain_with_key() for dynamic LLM creation - Added API key input field in sidebar with password mask - Users can now use their own Gemini API keyef93124
-
fix: correct HF Space subdomain and revert to localhost API
- Fixed browser.serverAddress to lowercase: aienthussp-rag-documind-ai.hf.space - Reverted API_BASE_URL to use localhost:8000 (internal container access)2e9bce0
-
fix: update api base url resolution
81a16c2 -
fix: Updated Python version in Dockerfile and Updated exception in app.py
2c1c9b1 -
fix: fix linting issues
a6df84a -
fix: remove unecessary imports
65607a5
-
feat: implement chat-per-collection with context updates
- Add separate chat history for each document collection - Add get_current_messages() and add_message() helper functions - Add context update notification when files are ingested - Clear chat now only clears current collection's chat0c49008 -
fix: improve markdown file ingestion handling
- Fix MIME type detection for .md files in frontend upload - Add explicit MIME type mapping for markdown files - Add .markdown extension to API supported file typese1dbbef
-
feat: configure HF Spaces deployment
91ab187
-
feat: add Streamlit frontend with chat interface
- Add main chat app with st.chat_input - Add file upload with multi-format support - Add source attribution with expandable panel - Add modern gradient styling - Add Streamlit theme configuration00d5502
-
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