๐Ÿ”ฌ
Vigil: Documentation
GitHub Repo
  • ๐Ÿ›ก๏ธVigil
  • Overview
    • ๐Ÿ—๏ธRelease Blog
    • ๐Ÿ› ๏ธInstall Vigil
      • ๐Ÿ”ฅInstall PyTorch (optional)
    • ๐ŸงชUse Vigil
      • โš™๏ธConfiguration
        • ๐Ÿ”„Auto-updating vector database
      • ๐Ÿ—„๏ธLoad Datasets
      • ๐ŸŒWeb server
        • ๐ŸคAPI Endpoints
        • ๐ŸชWeb UI playground
      • ๐ŸPython library
      • ๐ŸŽฏScanners
        • ๐Ÿค—Transformer
        • โ•YARA / Heuristics
        • ๐Ÿ“‘Prompt-response Similarity
        • ๐Ÿ’พVector database
        • ๐ŸคCanary Tokens
    • ๐Ÿ›ก๏ธCustomize Detections
      • ๐ŸŒŸAdd custom YARA signatures
      • ๐Ÿ”ขAdd embeddings
      • ๐ŸCustom scanners
    • ๐Ÿช„Sample scan results
Powered by GitBook
On this page
  1. Overview
  2. Use Vigil
  3. Scanners

Prompt-response Similarity

This module is designed to scan a prompt and that prompts response from an LLM to determine how semantically similar they are. Embeddings are generated for the prompt and response then the cosine similarity is returned.

This scanner must be enabled in the output_scanners section of the conf/server.conf configuration file, and it uses a different method of calling than the normal input scanners.

API endpoint POST /analyze/response

{
    "prompt": str,
    "response": str
}
PreviousYARA / HeuristicsNextVector database

Last updated 1 year ago

๐Ÿงช
๐ŸŽฏ
๐Ÿ“‘