This plugin allows you to scan attacks from user prompts and agent responses in PostHog-LLM and PostHog-LLM-Lite. To use this plugin in PostHog-LLM, simply install the plugin's backend. The plugin links the PostHog data ingestion process with the hosted detection algorithm.
- 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://prompt-attack:9612 if running in a Docker container in the postlang network).