## Dify 閮ㄧ讲瀹屾垚 鉁? ### 瀹屾垚鐨勫伐浣?1. Docker 闀滃儚鍔犻€熷櫒閰嶇疆 - 閰嶇疆 5 涓浗鍐呴暅鍍忔簮 - 澶у箙鎻愬崌涓嬭浇閫熷害鍜屾垚鍔熺巼 2. Dify 闀滃儚鎷夊彇 (鍏?11 涓湇鍔? - langgenius/dify-api:1.9.1 - langgenius/dify-web:1.9.1 - postgres, redis, weaviate, nginx 绛? - 鎬诲ぇ灏忕害 2GB锛岃€楁椂绾?15 鍒嗛挓 3. Dify 鏈嶅姟鍚姩 - 鉁?nginx (80/443) - 鉁?api, worker, worker_beat - 鉁?web (3000) - 鉁?db (PostgreSQL), redis - 鉁?weaviate (鍚戦噺鏁版嵁搴? - 鉁?sandbox, plugin_daemon, ssrf_proxy 4. Dify 鍒濆鍖栭厤缃? - 鍒涘缓绠$悊鍛樿处鍙? - 鍒涘缓搴旂敤: AI Clinical Research - 鑾峰彇 API Key: app-VZRn0vMXdmltEJkvatHVGv5j 5. 鍚庣鐜閰嶇疆 - DIFY_API_URL=http://localhost/v1 - DIFY_API_KEY 宸查厤缃? ### 鏂囨。鏇存柊 - 鏂板: docs/05-姣忔棩杩涘害/Day18-Dify閮ㄧ讲瀹屾垚.md - 鏇存柊: docs/04-寮€鍙戣鍒?寮€鍙戦噷绋嬬.md (Day 18 鏍囪涓哄畬鎴? ### 涓嬩竴姝?Day 19-24: 鐭ヨ瘑搴撶郴缁熷紑鍙?- Dify 瀹㈡埛绔皝瑁?- 鐭ヨ瘑搴撶鐞?CRUD - 鏂囨。涓婁紶涓庡鐞?- @鐭ヨ瘑搴撻泦鎴?- RAG 闂瓟楠岃瘉 --- Progress: 閲岀▼纰?1 (MVP) 85% -> 鐭ヨ瘑搴撶郴缁熷紑鍙戜腑
83 lines
1.2 KiB
CSS
83 lines
1.2 KiB
CSS
.message-input-container {
|
|
background: white;
|
|
border-top: 1px solid #f0f0f0;
|
|
padding: 16px 24px;
|
|
}
|
|
|
|
.selected-knowledge-bases {
|
|
margin-bottom: 12px;
|
|
padding: 8px 12px;
|
|
background: #f5f5f5;
|
|
border-radius: 6px;
|
|
animation: slideDown 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.message-input-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.message-textarea {
|
|
resize: none;
|
|
padding: 12px;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
border-radius: 8px;
|
|
border: 1px solid #d9d9d9;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.message-textarea:hover {
|
|
border-color: #40a9ff;
|
|
}
|
|
|
|
.message-textarea:focus {
|
|
border-color: #1890ff;
|
|
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
|
|
}
|
|
|
|
.message-input-toolbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.message-input-hint {
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
color: #8c8c8c;
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.kb-hint {
|
|
color: #1890ff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 768px) {
|
|
.message-input-container {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.message-input-toolbar {
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
|
|
|