vigil-llm icon indicating copy to clipboard operation
vigil-llm copied to clipboard

Create example detection workflows

Open deadbits opened this issue 2 years ago • 0 comments

Now that Vigil can be imported as a library, it is a lot easier to call the different scanners and interact with canary tokens. This allows users to define custom detection workflows in Python.

I want to create a few cookbooks that demonstrate different possibilities here.

For example: *Canary token workflow

  1. Add canary token to system prompt template
  2. Receive user input to prompt and combine with canary prompt
  3. Send canary prompt to LLM and receive response
  4. Check LLM response for canary token presence
  5. If detection then add user prompt to vector database for future detections

deadbits avatar Nov 15 '23 16:11 deadbits