> For the complete documentation index, see [llms.txt](https://vigil.deadbits.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vigil.deadbits.ai/overview/use-vigil/scanners/vector-database.md).

# Vector database

The `vectordb` scanner uses a [vector database](https://github.com/chroma-core/chroma) loaded with embeddings of known injection and jailbreak techniques and compares the submitted prompt via similarity search. If the prompt matches within a defined threshold, it will be flagged as potential prompt injection.

This scanner uses ChromaDB with cosine distance as the back-end database. **A lower distance score indicates higher similarity.**

All embeddings are available on HuggingFace and listed in the [`Datasets` ](/overview/use-vigil/load-datasets.md)section.
