This plugin allows you to track an toxic interactions between a user and a LLM into PostHog-LLM or PostHog-LLM-Lite. To use this plugin in PostHog-LLM, simply install the plugin's backend, it runs the machine learning model for toxicity classification. The plugin links the PostHog data ingestion process with the hosted machine learning model.
- Open PostHog-LLM.
- Open the Data pipeline page from the sidebar.
- Head to the Manage apps tab.
- Install app advanced button
- "Install from GitHub, GitLab or npm" using this repository's URL.
- Click on the Apps tab, and it will prompt you for the API_SERVER_URL (e.g., http://localhost:9612, or http://toxicity:9612 if running in a Docker container in the postlang network).