feat: 初始化 OnceLove GraphRAG 项目基础架构

- 添加完整的项目结构,包括前端(Vue3 + Vite)、后端(Fastify)和基础设施配置
- 实现核心 GraphRAG 服务,集成 Neo4j 图数据库和 Qdrant 向量数据库
- 添加用户认证系统和管理员登录界面
- 提供 Docker 容器化部署方案和开发环境配置
- 包含项目文档、API 文档(Swagger)和测试脚本
This commit is contained in:
KOSHM-Pig
2026-03-23 00:00:13 +08:00
commit ec21df7aa6
50 changed files with 7459 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
$headers = @{"Authorization" = "Bearer sk-413a8289cada4695a18d8982e5f63f3c"; "Content-Type" = "application/json"}
$messages = @(
@{ role = "system"; content = "You are an entity relation expert. Extract persons, events, topics, relations from text. Return JSON only: {persons:[],events:[],topics:[],relations:[]}" }
@{ role = "user"; content = "I had a fight with her today. She said I did not buy her flowers the day before yesterday and said my marriage proposal was too casual" }
)
$body = @{ model = "qwen-plus"; messages = $messages; temperature = 0.7 } | ConvertTo-Json -Depth 10
$response = Invoke-RestMethod -Uri "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions" -Method Post -Headers $headers -Body $body
$response.choices[0].message.content