# EasyGEO **Repository Path**: DS-ADMIN/easy-geo ## Basic Information - **Project Name**: EasyGEO - **Description**: No description available - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-25 - **Last Updated**: 2026-03-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GEO Orchestration System - 完整项目结构 ``` EasyGEO/ ├── cmd/ │ ├── api/ │ │ └── main.go # REST API服务入口 │ └── rulego/ │ └── main.go # RuleGo编排引擎入口 │ ├── internal/ # 核心业务模块 │ ├── knowledge/ │ │ ├── domain/ │ │ │ └── models.go # 领域模型(User, KnowledgeBase, Content等) │ │ ├── repository/ │ │ │ └── repository.go # 数据仓储层 │ │ └── service/ │ │ └── service.go # 领域服务 │ ├── embedding/ │ │ └── engine.go # 向量化引擎 │ └── database/ │ ├── postgres.go # PostgreSQL连接 │ ├── redis.go # Redis连接 │ └── milvus.go # Milvus连接 │ ├── agents/ # AI Agent实现 │ ├── content-generator/ │ │ ├── agent.py # LangGraph内容生成Agent │ │ ├── a2a_server.py # A2A协议服务端 │ │ └── requirements.txt │ ├── publisher/ │ │ ├── agent.py # CrewAI发布Agent │ │ ├── a2a_server.py │ │ └── requirements.txt │ └── monitor/ │ ├── agent.py # AutoGen监控Agent │ ├── a2a_server.py │ └── requirements.txt │ ├── components/ # RuleGo自定义组件 │ └── ai_agent.go # AI Agent组件 │ ├── workflows/ # 工作流定义 │ ├── content_pipeline.json # 内容生成工作流 │ └── monitoring.json # 监控工作流 │ ├── api/ # API相关 │ └── openapi.yaml # OpenAPI规范 │ ├── registry/ # A2A注册中心 │ ├── pkg/ # 公共包 │ └── a2a/ # A2A协议实现 │ ├── config/ │ └── config.go # 配置管理 │ ├── scripts/ │ ├── init_db.sql # 数据库初始化 │ └── docker-compose.yml # 基础设施 │ └── docs/ # 文档 ``` ## 快速启动 ### 1. 启动基础设施 ```bash cd scripts docker-compose up -d ``` ### 2. 启动API服务 ```bash go run cmd/api/main.go ``` ### 3. 启动RuleGo引擎 ```bash go run cmd/rulego/main.go ``` ### 4. 启动Agent服务 ```bash # 每个Agent在独立终端 cd agents/content-generator pip install -r requirements.txt python a2a_server.py cd agents/publisher pip install -r requirements.txt python a2a_server.py cd agents/monitor pip install -r requirements.txt python a2a_server.py ``` ## 环境变量 ```env # Database DB_HOST=localhost DB_PORT=5432 DB_USER=postgres DB_PASSWORD=postgres DB_NAME=geo_orchestration # Redis REDIS_HOST=localhost REDIS_PORT=6379 # Milvus MILVUS_HOST=localhost MILVUS_PORT=19530 # AI APIs OPENAI_API_KEY=sk-... ANTHROPIC_API_KEY=sk-ant-... ``` ## API调用示例 ```bash # 注册用户 curl -X POST http://localhost:8080/api/v1/auth/register \ -H "Content-Type: application/json" \ -d '{"username":"test","email":"test@example.com","password":"password123"}' # 创建知识库 curl -X POST http://localhost:8080/api/v1/knowledge \ -H "Content-Type: application/json" \ -d '{"name":"OralB品牌","description":"口腔护理品牌","brand_info":{"name":"OralB"},"keywords":["电动牙刷","口腔护理"]}' # 生成内容 curl -X POST http://localhost:8080/api/v1/content/generate \ -H "Content-Type: application/json" \ -d '{"keyword":"电动牙刷推荐","knowledge_base_id":"","target_platforms":["wechat","toutiao"]}' ```