dtka commited on
Commit
0be903e
·
1 Parent(s): 85f3d84

Update README, update README link, update logs

Browse files
Files changed (3) hide show
  1. README.md +29 -3
  2. app.py +1 -1
  3. swarm_log.jsonl +4 -0
README.md CHANGED
@@ -8,14 +8,33 @@ sdk_version: 5.33.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
 
 
 
 
 
 
 
11
  short_description: Gradio-based interface coordinates a network of agents
12
  ---
13
 
14
- # Collective Intelligence Orchestrator
15
 
16
  This Gradio-based interface coordinates a network of autonomous AI agents using Hugging Face's MCP protocol.
17
 
18
- ## Agents in the Network:
 
 
 
 
 
 
 
 
 
 
 
19
  - Climate Sensor
20
  - Policy Modeler
21
  - Economic Forecast
@@ -24,8 +43,9 @@ This Gradio-based interface coordinates a network of autonomous AI agents using
24
  - NGO Matcher
25
 
26
  Submit a real-world scenario, and watch the swarm collaborate in real time.
 
27
 
28
- ## Test Case Example:
29
  Input:
30
 
31
  - “Massive flooding in coastal Bangladesh, affecting over 200,000 residents. Power outages, displacement, and rising waterborne diseases reported.”
@@ -39,4 +59,10 @@ Expected output:
39
  - Public Health: Cholera risk, hospital overload.
40
  - NGO Matcher: Suggest 2–3 orgs that can help.
41
 
 
 
 
 
 
 
42
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
+ tags:
12
+ - mcp
13
+ - agents
14
+ - gradio
15
+ - hackathon
16
+ - agent-demo-track
17
+ - collective-intelligence
18
+ - mcp-server-track
19
  short_description: Gradio-based interface coordinates a network of agents
20
  ---
21
 
22
+ # 🧠 Collective Intelligence Orchestrator
23
 
24
  This Gradio-based interface coordinates a network of autonomous AI agents using Hugging Face's MCP protocol.
25
 
26
+ Collective Intelligence Orchestrator is a Gradio-powered interactive application that coordinates a swarm of autonomous AI agents using the Hugging Face Model Context Protocol (MCP). It simulates real-time, cross-domain collaboration between specialized agents for responding to real-world challenges.
27
+
28
+ This project is built for the Hugging Face + Open Source AI Hackathon and explores how autonomous model-to-model communication can drive situational understanding, policy modeling, and collective action at scale.
29
+
30
+ # 🚀 What It Does
31
+ You provide a real-world scenario — such as a humanitarian crisis, environmental disruption, or geopolitical event.
32
+ The orchestrator routes this context to a network of specialized MCP-compliant agents. These agents independently process the scenario and return responses from their unique domain lenses.
33
+
34
+ The orchestrator aggregates their outputs and presents a coordinated, multi-perspective analysis.
35
+
36
+ ## 🤖 Agents in the Swarm:
37
+ Each agent specializes in a unique area of knowledge. Current agents include:
38
  - Climate Sensor
39
  - Policy Modeler
40
  - Economic Forecast
 
43
  - NGO Matcher
44
 
45
  Submit a real-world scenario, and watch the swarm collaborate in real time.
46
+ All agents comply with MCP and are auto-discoverable, allowing seamless plug-and-play integration of new models.
47
 
48
+ ## 📊 Test Case Example:
49
  Input:
50
 
51
  - “Massive flooding in coastal Bangladesh, affecting over 200,000 residents. Power outages, displacement, and rising waterborne diseases reported.”
 
59
  - Public Health: Cholera risk, hospital overload.
60
  - NGO Matcher: Suggest 2–3 orgs that can help.
61
 
62
+ ## 🛠 Architecture
63
+ - Frontend: Gradio interface for input and real-time orchestration feedback
64
+ - Orchestrator Logic: app.py routes user scenarios to agents based on roles and context
65
+ - Agent Discovery: MCP auto-discovers agent endpoints via metadata (.well-known/mcp.yaml)
66
+ - Model Interfacing: Each agent may wrap a hosted LLM (Claude, GPT-4, etc.) or a local model with domain-aligned prompts
67
+
68
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -273,7 +273,7 @@ if __name__ == "__main__":
273
  Enter a real-world scenario (e.g., natural disaster, policy failure, humanitarian crisis), and let the orchestrator dynamically coordinate a swarm response using multiple autonomous MCP agents.
274
 
275
  **Author**: [@dtka](https://huggingface.co/dtka)
276
- **Project Docs**: [GitHub Repo](https://github.com/dtka/collective-intelligence-networks)
277
  **Hackathon**: [Hugging Face MCP Hackathon](https://huggingface.co/Agents-MCP-Hackathon)
278
  """)
279
 
 
273
  Enter a real-world scenario (e.g., natural disaster, policy failure, humanitarian crisis), and let the orchestrator dynamically coordinate a swarm response using multiple autonomous MCP agents.
274
 
275
  **Author**: [@dtka](https://huggingface.co/dtka)
276
+ **Project Docs**: [HF Repo README](https://huggingface.co/spaces/Agents-MCP-Hackathon/collective-intelligence-orchestrator/resolve/main/README.md)
277
  **Hackathon**: [Hugging Face MCP Hackathon](https://huggingface.co/Agents-MCP-Hackathon)
278
  """)
279
 
swarm_log.jsonl CHANGED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"timestamp": "2025-06-09T22:01:00Z", "input": "How can we adapt economic policy for climate impact?", "agents": ["Climate Sensor", "Economic Forecast", "Policy Modeler"], "response": "Generated plan combining climate data with economic models."}
2
+ {"timestamp": "2025-06-09T22:05:00Z", "input": "What are public health risks post-disaster?", "agents": ["Public Health", "Media Monitor"], "response": "Identified risks using media and health databases."}
3
+ {"timestamp": "2025-06-09T22:09:00Z", "input": "Which NGOs can help in this region?", "agents": ["NGO Matcher", "Public Health"], "response": "Matched suitable NGOs based on medical need."}
4
+ {"timestamp": "2025-06-09T22:13:00Z", "input": "Can we predict social unrest due to inflation?", "agents": ["Economic Forecast", "Media Monitor", "Policy Modeler"], "response": "Predicted unrest hotspots by merging trends and forecasts."}