SuiLight知识沙龙 - 多智能体知识协作平台。拥有100位虚拟思想家,覆盖26个领域(科学、哲学、社会科学等),支持跨域讨论、知识沉淀、共识追踪和知识图谱可视化。当用户需要(1)组织多角度知识讨论、(2)创建虚拟思想家角色、(3)构建知识胶囊系统、(4)实现知识图谱、(5)部署Streamlit应用时使用此...
SuiLight是26个领域的多智能体知识协作平台,拥有100位虚拟思想家,支持跨域讨论和知识沉淀。
bash
# 克隆仓库
git clone https://github.com/wanyview1/SuiLight.git
cd SuiLight
# 安装依赖
pip install -r requirements.txt
# 启动UI
streamlit run ui/streamlit_app.py
# 启动API
python api/main.py
服务启动: http://localhost:8501
python
from suilight.capsule import KnowledgeCapsule
# 创建知识胶囊
capsule = KnowledgeCapsule(
title="量子纠缠原理",
domain="物理学",
content="量子纠缠是量子力学中...",
tags=["量子力学", "纠缠", "非局域性"],
confidence=0.9
)
capsule.save()
python
from suilight.thinker import VirtualThinker
# 创建虚拟思想家
thinker = VirtualThinker(
name="Einstein",
domain="物理学",
style="直觉+数学",
expertise=["相对论", "量子力学"]
)
# 发起讨论
response = thinker.discuss(
topic="量子意识假说",
context="神经科学与量子物理的交叉领域"
)
python
from suilight.saloon import KnowledgeSaloon
saloon = KnowledgeSalon()
# 多领域讨论
result = saloon.cross_domain_discussion(
topic="意识的本体论地位",
domains=["哲学", "神经科学", "物理学", "计算机科学"],
thinkers_per_domain=3,
rounds=3
)
python
from suilight.graph import KnowledgeGraph
graph = KnowledgeGraph()
graph.add_node("量子纠缠", domain="物理学")
graph.add_node("非局域性", domain="物理学")
graph.add_edge("量子纠缠", "非局域性", weight=0.9)
graph.visualize()
端点方法描述/api/domainsGET获取26个领域列表/api/thinkerGET获取虚拟思想家/api/discussPOST发起跨域讨论/api/capsuleGET/POST知识胶囊CRUD/api/graphGET知识图谱数据/api/consensusGET共识追踪数据
text
suilight/
├── api/ # FastAPI后端
│ ├── main.py # API入口
│ ├── capsule.py # 胶囊API
│ └── thinker.py # 思想家API
├── ui/ # Streamlit前端
│ └── streamlit_app.py
├── tests/ # 测试
├── docs/ # 文档
│ ├── PLATFORM_DESIGN.md
│ ├── CAPSULE_SYSTEM.md
│ └── ROADMAP.md
└── demo_capsule.py # 演示脚本
类别领域自然科学物理学、化学、生物学、数学、天文学、地质学计算机科学AI/ML、数据科学、网络安全、量子计算哲学形而上学、认识论、伦理学、美学社会科学心理学、社会学、经济学、政治学人文学历史学、语言学、文学、艺术工程生物工程、材料科学、环境科学
bash
# 安装streamlit CLI
pip install streamlit
# 部署
streamlit deploy
dockerfile
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 8501
CMD ["streamlit", "run", "ui/streamlit_app.py"]
Built with ❤️ by KAI