Skip to content

bazilinskyy/llm-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analysing reports of events involving automated vehicles with LLM

In the description below, it is assumed that the repo is stored in the folder llm-events. Terminal commands lower assume macOS.

Setup

Tested with Python 3.9.12. To setup the environment run these two commands in a parent folder of the downloaded repository (replace / with \ and possibly add --user if on Windows):

  • pip install -e llm-events will setup the project as a package accessible in the environment.
  • pip install -r llm-events/requirements.txt will install required packages.
  • Windows User need specific version of kaleiod to work with Plotly pip install kaleido==0.1.0.post1. See Issues

For analysis with GPT-V, the API key of OpenAI needs to be placed in file llm-events/secret. The file needs to be formatted as llm-events/secret example.

Configuration of project

Configuration of the project needs to be defined in llm-events/config. Please use the default.config file for the required structure of the file. If no custom config file is provided, default.config is used. The config file has the following parameters:

  • reports: path with reports.
  • data: path for CSV with output.
  • analyse: toggle to run analysis of reports.
  • query: query to path to LLM.
  • plotly_template: template used to make graphs in the analysis.
  • logger_level: Level of console output. Can be: debug, info, warning, error.

Analysis

Analysis can be started by running python llm-events/llmevents/run.py. A number of CSV files used for data processing are saved in llmevents/_output. Visualisations of all data are saved in llmevents/_output/figures/.

Answers to questions in the query

Histogram of Q1 Histogram of categorisation of output for question 1.

Histogram of Q2 - automated vehicle brand Histogram of categorisation of output for question 2 - automated vehicle brand.

Histogram of Q2 - automated vehicle model Histogram of categorisation of output for question 2 - automated vehicle model.

Histogram of Q2 - automated vehicle year Histogram of categorisation of output for question 2 - automated vehicle year.

Histogram of Q2 - automated vehicle mode Histogram of categorisation of output for question 2 - automated vehicle model mode.

Histogram of Q2 - other road user Histogram of categorisation of output for question 2 - automated vehicle.

Histogram of Q2 - other vehicle Histogram of categorisation of output for question 2 - other vehicle.

Histogram of Q3 Histogram of categorisation of output for question 3.

Histogram of Q4 Histogram of categorisation of output for question 4.

Histogram of Q5 Histogram of categorisation of output for question 5.

Histogram of Q6 Histogram of categorisation of output for question 6.

Histogram of Q7 Histogram of categorisation of output for question 7.

Troubleshooting

Troubleshooting setup

ERROR: llm-events is not a valid editable requirement

Check that you are indeed in the parent folder for running command pip install -e llm-events. This command will not work from inside of the folder containing the repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published