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
- Host: GitHub
- URL: https://github.com/ging/poc_llm_cb_fiware-naples
- Owner: ging
- License: apache-2.0
- Created: 2024-08-30T14:35:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-24T08:11:47.000Z (about 1 year ago)
- Last Synced: 2025-05-07T21:04:39.505Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 7.79 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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