Spaces:
Sleeping
Sleeping
|
Download docs/Memory.md from shak3008/cdss-backend: direct link, hf CLI and curl.
- Browser
- Download file 2.98 kB
-
https://huggingface.co/spaces/shak3008/cdss-backend/resolve/main/docs/Memory.md
- Command line
-
hf download hf://spaces/shak3008/cdss-backend/docs/Memory.md
-
curl -L -o Memory.md https://huggingface.co/spaces/shak3008/cdss-backend/resolve/main/docs/Memory.md
2.98 kB
CDSS — Memory & Progress Tracker
Current Status
Date: August 30, 2026 State: Phases 1-3 implemented and reviewed. All bugs fixed. Starting Phase 4.
Bug Fixes Applied (Aug 30)
- Phase 1 Fix:
evidenceScanner/requirements.txt— fixed missing newline betweenpython-dateutilandfastapi, removed duplicatetenacityentry. - Phase 3 Fix:
orchestrator/requirements.txt— removed unnecessary heavy ML deps (torch,sentence-transformers,qdrant-client,transformers). Orchestrator only makes HTTP calls. - Phase 3 Fix:
orchestrator/tools.py— changedtype[BaseModel]toType[BaseModel]for Python <3.12 compatibility. Increased httpx timeout to 90s. - Phase 3 Fix (CRITICAL):
orchestrator/crew.py— split the single evidence-gathering task (which asked LLM to call 2 tools and return 2 JSONs in 1 string) into 2 separate tasks (Task 2: RAG, Task 3: Scanner). Added a 5th CrewAI agent role (web_scanner). Each task now has unambiguous single-tool instructions.
What Has Been Done
- Research Phase: Audited all 6 project folders (
clinicalTextClassifier,vectorDbIngestion,vectorRetrieval,evidenceScanner,dataFusion,clinicalReasoning,orchestrator). - Schema Alignment: Mapped exact Pydantic I/O models across all agents to identify integration gaps.
- Agent 3 Discovery: Confirmed the new
evidenceScannerfolder exists and contains valid logic, but lacks a FastAPI server. - Agent 4 Adapters: Confirmed Agent 4 inherently supports raw JSON inputs from Agent 2/3 and can handle missing Knowledge Graph data gracefully.
- Documentation: Created
PRD.md,Architecture.md,Rules.md,Phases.md,Design.md,Risk_Analysis.md, and thisMemory.md. - User Decisions Locked:
- Keep CrewAI for Orchestration.
- Drop Knowledge Graph (
kg_evidence=[]). - Do not modify Agent 1's output schema (transform in Orchestrator).
What Is Pending (Phases)
- Phase 1: Evidence Scanner Server
- Fixed
tenacityretry bug inweb_scraper.py - Added
app.pyFastAPI wrapper forevidenceScanner.
- Fixed
- Phase 2: Orchestrator Adapters
- Create
orchestrator/adapters.py.
- Create
- Phase 3: Orchestrator Rewrite
- Update
crew.pyto wire all 5 agents. - Update
app.pyto handle thewhileloop (feedback loop) checking confidence ≥ 0.70.
- Update
- Phase 4: Full System Test
- Created
start_all.ps1startup script. - Syntax-verified all new/modified files.
- Launch all ports (8000, 8002, 8003, 8004, 8005, 9000).
- Test
POST /analyze.
- Created
Known Issues / Gotchas
evidenceScannercurrently has a bug in itsweb_scraper.pyretry logic where non-200 HTTP codes returnNoneinstead of raising exceptions, which bypassestenacity.- Need to ensure
top_k=5is dynamically passed through toSearchRequestduring Agent 1 → Agent 2 transformation.