- agent/a11y_agent.py: open qa_dataset.jsonl once in __init__ (buffering=1)
instead of open/close on every request; move json/datetime imports to
module level; add llm_temperature/max_tokens/top_p from settings;
pre-cache system prompts for both languages in __init__
- config.py: add llm_temperature, llm_max_tokens, llm_top_p fields
- database/vector_store_client.py: upgrade to lancedb 0.30.2 API —
list_tables().tables instead of table_names(); to_list() instead of
to_df().to_dict(); count_rows() instead of len(); remove unused asyncio
- requirements.txt: pin lancedb==0.30.2
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Zamiana OPENAI_API_KEY na GITHUB_TOKEN w kodzie, dokumentacji i konfiguracji
Jacek Zadrożny
f9779bd
Add detailed logging and fix read-only filesystem issues
Jacek Zadrożny
787b7ff
- Add verbose logging to agent creation process
- Fix VectorStoreClient to handle read-only filesystem
- Fix EmbeddingsClient cache creation with proper error handling
- Only create directories if they don't exist and we have write permissions
- Better traceback logging for database connection errors
Fix signal error in background thread
Jacek Zadrożny
77bf306
- Remove signal-based timeout (doesn't work in threads)
- Simplify to basic background initialization
- Update HUGGINGFACE_DEBUG.md with correct approach
Fix HuggingFace deployment issues
Jacek Zadrożny
637ed9b
- Remove blocking vector_store.connect() call
- Add lazy database connection with timeout
- Add conditional API key validation for HF Spaces
- Add detailed error logging with traceback
- Add timeout to agent initialization (30s)
- Fix test_startup.py for new architecture
- Add HUGGINGFACE_DEBUG.md documentation
- Improve error handling in VectorStoreClient