Files
AIclinicalresearch/docs/03-业务模块/ASL-AI智能文献/05-开发记录/README.md
HaHafeng 1b53ab9d52 feat(aia): Complete AIA V2.0 with universal streaming capabilities
Major Changes:
- Add StreamingService with OpenAI Compatible format
- Upgrade Chat component V2 with Ant Design X integration
- Implement AIA module with 12 intelligent agents
- Update API routes to unified /api/v1 prefix
- Update system documentation

Backend (~1300 lines):
- common/streaming: OpenAI Compatible adapter
- modules/aia: 12 agents, conversation service, streaming integration
- Update route versions (RVW, PKB to v1)

Frontend (~3500 lines):
- modules/aia: AgentHub + ChatWorkspace (100% prototype restoration)
- shared/Chat: AIStreamChat, ThinkingBlock, useAIStream Hook
- Update API endpoints to v1

Documentation:
- AIA module status guide
- Universal capabilities catalog
- System overview updates
- All module documentation sync

Tested: Stream response verified, authentication working
Status: AIA V2.0 core completed (85%)
2026-01-14 19:15:01 +08:00

156 lines
3.5 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ASL妯″潡寮€鍙戣<E98D99>褰?
<EFBFBD>洰褰曡<EFBFBD>褰旳SL锛圓I鏅鸿兘鏂囩尞绛涢€夛級妯″潡鐨勫畬鏁村紑鍙戝巻绋嬨€?
---
## 馃搧 鏂囨。绱㈠紩
### Week 1 瀹屾垚鎶ュ憡锛?025-11-18锛?
| 鏂囨。 | 鍐呭<E98D90> | 閲嶈<E996B2>鎬?|
|------|------|--------|
| **浠婃棩宸ヤ綔鎬荤粨.md** | 2025-11-18鍏ㄥぉ宸ヤ綔鎬荤粨 | 猸愨瓙猸愨瓙猸?|
| **涓ゆ<E6B693>娴嬭瘯瀹屾暣鎶ュ憡.md** | 鍥藉唴澶栨ā鍨嬪<E98DA8>姣?+ 涓夌<E6B693>椋庢牸娴嬭瘯 | 猸愨瓙猸愨瓙猸?|
| **鍗掍腑鏁版嵁娉涘寲娴嬭瘯鎶ュ憡.md** | 鏈€鍒濈殑娉涘寲鑳藉姏娴嬭瘯 | 猸愨瓙猸愨瓙 |
| **Prompt璁捐<E79281>涓庢祴璇曞畬鎴愭姤鍛?md** | Prompt v1.0.0娴嬭瘯 | 猸愨瓙猸?|
| **Week1瀹屾垚鎶ュ憡.md** | Week 1寮€鍙戝畬鎴愭€荤粨 | 猸愨瓙猸愨瓙 |
---
## 馃幆 鏍稿績鍙戠幇
### 1. 鏍规湰闂<E6B9B0><E99782><EFBFBD><E7BAAD>
**鍑嗙‘鐜囦笉楂樼殑鏍规湰鍘熷洜** = AI涓庝汉绫诲<E7BBAB>杈圭晫鎯呭喌鐨勭悊瑙樊寮?
**涓嶆槸**:
- 鉂?妯″瀷鏅哄晢涓嶅<E6B693>
- 鉂?Prompt璁捐<E79281>涓嶅ソ
- 鉂?瀹芥澗/涓ユ牸绋嬪害涓嶅<E6B693>
**鑰屾槸**:
- 鉁?绾虫帓鏍囧噯瀛樺湪闅愬惈瑙勫垯
- 鉁?杈圭晫鎯呭喌瀹氫箟涓嶆槑纭?
- 鉁?AI鏃犳硶鐚滄祴鐢ㄦ埛鐪熷疄鎰忓浘
---
### 2. 瑙喅鏂规<E98F82>
#### 鐭<>湡鏂规<E98F82>锛堝凡瀹炵幇锛夆渽
**涓夌<E6B693>绛涢€夐<E282AC>鏍?*:
- 瀹芥澗妯″紡锛氬垵绛涗娇鐢<E5A887>紝瀹佸彲澶氱撼鍏?
- 鏍囧噯妯″紡锛氬父瑙勪娇鐢<E5A887>紝骞宠 鍑嗙鐜?
- 涓ユ牸妯″紡锛氱簿绛涗娇鐢<E5A887>紝瀹佸彲閿欐潃
**鐘舵€?*: 鍚庣<E98D9A>瀹屾垚锛屽墠绔<E5A2A0>緟寮€鍙?
---
#### 涓<>湡鏂规<E98F82>锛堟帹鑽愶級猸?
**鐢ㄦ埛鑷<E59F9B>畾涔夎竟鐣屾儏鍐?*:
1. 鐢ㄦ埛杈撳叆PICOS + 绾虫帓鏍囧噯
2. LLM鍒嗘瀽鐢熸垚20绉嶈竟鐣屾儏鍐?
3. 鐢ㄦ埛纭<E59F9B><E7BAAD>姣忕<E5A7A3>鎯呭喌鐨勫<E990A8>鐞嗘柟寮?
4. 绯荤粺鐢熸垚瀹氬埗鍖朠rompt
**浼樼偣**: 娑堥櫎AI涓庝汉绫荤悊瑙樊寮?
---
#### 闀挎湡鏂规<E98F82>锛圴1.0+锛夝煍?
**Few-shot瀛︿範**:
- 浠庣敤鎴风籂姝d腑瀛︿範
- 鎸佺画浼樺寲鍑嗙‘鐜?
-<>у寲Prompt
---
## 馃搳 娴嬭瘯鏁版嵁
### 妯″瀷鎬ц兘瀵规瘮
| 妯″瀷 | 鍑嗙‘鐜?| 涓€鑷寸巼 | 閫熷害 | JSON绋冲畾鎬?|
|------|--------|--------|------|-----------|
| DeepSeek-V3 + Qwen-Max | 40% | 60% | 16绉?| 鉁?100% |
| GPT-4o + Claude-4.5 | 0%* | 80% | 10绉?| 鉂?20% |
*鍥燡SON鏍煎紡閿欒<E996BF>瀵艰嚧澶辫触
### 绛涢€夐<E282AC>鏍煎<E98F8D>姣?
| 椋庢牸 | 鍑嗙‘鐜?| 鍙<>洖鐜?| 绮剧‘鐜?|
|------|--------|--------|--------|
| 鏍囧噯妯″紡 | 60% | 0% | 100% |
| 瀹芥澗妯″紡 | 20% | 50% | 0% |
| 涓ユ牸妯″紡 | 鏈<>祴璇?| - | - |
---
## 馃殌 涓嬩竴姝ヨ<E5A79D>鍒?
### 鏈<>懆浠诲姟
1. 猬?鍓嶇<E98D93>寮€鍙戯細绛涢€夐<E282AC>鏍奸€夋嫨鍣?
2. 猬?API闆嗘垚锛氫紶閫抈style`鍙傛暟
3. 猬?鎵╁ぇ娴嬭瘯锛?0绡囩湡瀹炴暟鎹?
4. 猬?鐢ㄦ埛鍩硅<E98DA9>锛氫笁绉嶉<E7BB89>鏍间娇鐢ㄥ満鏅?
### Week 2浠诲姟
1. 猬?璁捐<E79281>杈圭晫鎯呭喌纭<E5968C><E7BAAD>UI
2. 猬?瀹炵幇LLM杈圭晫鎯呭喌鐢熸垚
3. 猬?鐢ㄦ埛纭<E59F9B><E7BAAD>娴佺▼寮€鍙?
4. 猬?瀹氬埗鍖朠rompt鐢熸垚
---
## 馃摑 蹇<>€熼摼鎺?
### 娴嬭瘯鑴氭湰
- `backend/scripts/test-stroke-screening.ts` - 鏍囧噯妯″紡娴嬭瘯
- `backend/scripts/test-stroke-screening-lenient.ts` - 瀹芥澗妯″紡娴嬭瘯
- `backend/scripts/test-stroke-screening-international-models.ts` - 妯″瀷瀵规瘮
- `backend/scripts/test-json-parser.ts` - JSON瑙瀽鍣ㄦ祴璇?
### Prompt鏂囦欢
- `backend/prompts/asl/screening/v1.1.0-lenient.txt` - 瀹芥澗Prompt
- `backend/prompts/asl/screening/v1.1.0-standard.txt` - 鏍囧噯Prompt
- `backend/prompts/asl/screening/v1.1.0-strict.txt` - 涓ユ牸Prompt
### 鏍稿績浠g爜
- `backend/src/modules/asl/schemas/screening.schema.ts` - Prompt鐢熸垚
- `backend/src/modules/asl/services/llmScreeningService.ts` - 绛涢€夋湇鍔?
- `backend/src/common/utils/jsonParser.ts` - JSON瑙瀽鍣?
---
## 馃挕 閲嶈<E996B2>鎻愮ず
1. **JSON瑙瀽鍣ㄥ凡淇<E587A1><E6B787>** - 鏀<>寔涓<E5AF94>枃寮曞彿鑷<E5BDBF>姩杞<E5A7A9>
2. **涓夌<E6B693>椋庢牸宸插疄鐜?* - 鍚庣<E98D9A>瀹屾垚锛屽墠绔<E5A2A0>緟寮€鍙?
3. **鏍规湰闂<E6B9B0><E99782>宸茬璁?* - 闇€瑕佺敤鎴疯嚜瀹氫箟杈圭晫鎯呭喌
---
**鏇存柊鏃ユ湡**: 2025-11-18
**缁存姢浜?*: AI Assistant
**鐗堟湰**: v1.0