Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TravelRiskFusion

TravelRiskFusion is an agentic system that fuses global disaster alerts and multimodal inputs into country-level travel risk assessments using:

Features

✅ Multimodal risk analysis (text, image, voice)
✅ Claude-powered reasoning with MCP tools
✅ SQLite persistence for fused results
✅ AWS SQS, DynamoDB and Lambda integration (optional)
✅ Demo and debug on local easily


Architecture

arch.png

Workflow:

  1. NewsAgent

    • Input news alert resource
    • Cleans and parses raw news text
    • Sends alerts to AWS SQS or FusionAgent (optional)
  2. FusionAgent

    • Runs agentic fusion loop with Claude LLM
    • Validates and stores results in SQLite
    • Supports multimodal inputs: text, image, voice
  3. FastAPI Endpoints

    • /multimodal-news-risk
    • /multimodal-image-risk
    • /multimodal-voice-risk

Installation

git clone https://github.com/your-org/TravelRiskFusion.git
cd TravelRiskFusion
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Set environment variables:

export CLAUDE_API_KEY=your_key_here
export AWS_REGION=ap-southeast-2

Run Locally

uvicorn workflow.main:app --host 0.0.0.0 --port 7777

http://localhost:7777/ui/index.html ui.png


API Endpoints

Analyze News

curl -X POST "http://localhost:7777/multimodal-news-risk" \
-H "Content-Type: application/json" \
-d '{"raw_text":"Cyclone Yagi made landfall...", "name":"Vietnam cyclone bulletin"}'

Input from UI

11 September 2024, a massive disaster response has been launched in Viet Nam following widespread damage inflicted by 
Typhoon Yagi, the most powerful storm to hit the South China Sea in almost three decades, the UN Office of the Coordination 
of Humanitarian Affairs (OCHA) has reported.The storm made landfall on Saturday in the country’s north with wind speeds 
reaching 213 kilometres (133 miles) per hour, causing severe flooding and landslides, and forcing the evacuation of over 
50,000 people. As of Wednesday, at least 179 people are reported to have been killed, including children, according to 
media reports. Several hundred people have been injured and over 47,500 houses damaged or destroyed. “The strength and 
intensity of the typhoon has left a trail of catastrophic consequences, with millions of families severely affected 
in coastal as well as mountainous and hard-to-reach areas,” the UN Children’s Fund (UNICEF) said in a bulletin, issued 
late on Monday. The agency estimates that 5.5 million children are among the 19 million people living in the most 
affected regions.
With weather as spectacularly diverse as its landscapes, cities and people, Europe is a terrific place to visit year-round. 
It can be snowing in one mountainous corner of the continent and sweltering hot in another, so it’s more about fine-tuning 
what you want from your trip than pinning down a single season. From flowery hikes through spring meadows to summer beach
days and open-air festivals, to autumn vineyard rambles and gallery hops to Christmas market sparkle–Europeswings joyously 
with the seasons. There is never a bad time to come. And in terms of temperatures, it’s not just a simple case of north 
versus south; elevation is equally important to consider.

Analyze Image

curl -X POST "http://localhost:7777/multimodal-image-risk" -F "file=@data/test.jpg"

Analyze Voice

curl -X POST "http://localhost:7777/multimodal-voice-risk" -F "file=@data/test-usa.mp3"

Deployment

  • AWS Lambda via Serverless Framework:
serverless deploy

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages