mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #407] [MERGED] Ensure async txtai readiness, improve HF fallback variants, and add SSE timeout in orchestrator #715
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#715
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/407
Author: @AJaySi
Created: 3/10/2026
Status: ✅ Merged
Merged: 3/10/2026
Merged by: @AJaySi
Base:
main← Head:codex/fix-hugging-face-model-not-found-errors-y1qoah📝 Commits (1)
3a88d09Make SIF agent workflows non-blocking and guard SSE hangs📊 Changes
4 files changed (+82 additions, -58 deletions)
View changed files
📝
backend/services/intelligence/sif_agents.py(+18 -12)📝
backend/services/intelligence/txtai_service.py(+14 -31)📝
backend/services/llm_providers/huggingface_provider.py(+28 -12)📝
frontend/src/services/contentPlanningOrchestrator.ts(+22 -3)📄 Description
Motivation
Description
SIFBaseAgent._ensure_intelligence_readyand replaced synchronousis_initialized()checks in multiple agents withawait self._ensure_intelligence_ready()to safely gate operations.TxtaiIntelligenceServiceto awaitself._ensure_initialized_async()inindex_content,search,get_similarity,cluster, andclassify, changed initialization logging and failure handling, and kept indexing flow but now warns and optionally raises when uninitialized._fetch_index_documentsthread-safe by callingembeddings.countandembeddings.searchviaasyncio.to_thread, and normalized metadata processing._candidate_model_variantsand integrated it into the HF fallback sequence to try provider-suffixed and base model ids, and adjusted logging and retry behavior inhuggingface_provider.ContentPlanningOrchestrator.loadAIAnalyticsnow has a hard timeout and afinishedguard to ensure SSE-based strategic intelligence resolves or times out and clears the timeout on completion.Testing
pytest) covering intelligence and agent flows and they passed.jest) for the orchestrator and SSE handling and they passed.flake8/mypy) on modified modules and they passed.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.