An open API service indexing awesome lists of open source software.

https://github.com/ging/poc_llm_cb_fiware-naples

Webinar using Naples as a demo city
https://github.com/ging/poc_llm_cb_fiware-naples

Last synced: 3 months ago
JSON representation

Webinar using Naples as a demo city

Awesome Lists containing this project

README

          

# Poc_LLM_CB_FIWARE

## Deployment

### Download the desired map
Download and copy the desired `.mbtiles` in the `./src/map` folder

1. [Madrid Map](https://drive.upm.es/s/17y49EZQJm90m1J)
2. [Naples Map](https://drive.upm.es/s/ntikqYe2zqudukx)

### Serve the map

```
cd src/map
docker run -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-gl:v4.6.6 --verbose
```
You can access localhost:8080 to see if the map was loaded correctly

### Configure API OPEN-AI
```
cd src
cp template.env .env
# modify OPENAI_API_KEY with your OPENAI_API_KEY
```

### Configure the map
Modify `.env` with the initial position to be loaded

```
# MADRID -> 41.65606, -0.87734
# NAPLES -> 40.85216, 14.26811
INITIAL_LATITUDE=40.85216
INITIAL_LONGITUDE=14.26811
INITIAL_ZOOM=10
```

### Build the POC
```
cd src
npm install
npm run build
```

### Start FIWARE GEs

```
cd src
docker compose up -d
```

### Populate Context Broker with entities:
```
cd src/data
./generated_provision_{city}.sh # city you loaded the map
```

## Start playing

Open index.html and start playing...

https://github.com/user-attachments/assets/b5c6375b-6fb8-45ee-bf65-7447f01a658c