# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vigil.deadbits.ai/overview/use-vigil/scanners/vector-database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
