police-risk-open-ai

Exploring police risk assessments using OpenAI and LLMs

This library records my experimentation with LLMs, the OpenAI API, and examining how they perform in police-like risk assessments. This outputs a Streamlit web app that is available here.

Documentation

NBdev generated documentation is available through GitHub pages.

Install

pip install police_risk_open_ai

Amend the example.env file included in this repo, using an API key from OpenAI, and save this as a new file, .env

How to use

You can use query_llm to query the API.

query_llm('Where does it rain in Spain?')
'\n\nRainfall in Spain is'