In the description below, it is assumed that the repo is stored in the folder llm-events
. Terminal commands lower assume macOS.
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 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 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/
.
Histogram of categorisation of output for question 1.
Histogram of categorisation of output for question 2 - automated vehicle brand.
Histogram of categorisation of output for question 2 - automated vehicle model.
Histogram of categorisation of output for question 2 - automated vehicle year.
Histogram of categorisation of output for question 2 - automated vehicle model mode.
Histogram of categorisation of output for question 2 - automated vehicle.
Histogram of categorisation of output for question 2 - other vehicle.
Histogram of categorisation of output for question 3.
Histogram of categorisation of output for question 4.
Histogram of categorisation of output for question 5.
Histogram of categorisation of output for question 6.
Histogram of categorisation of output for question 7.
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.