VectorDB's Core Learning: Semantic Similarity Search

Vector databases learn and detect prompt injection attacks by converting prompts into high-dimensional embeddings and then employing semantic similarity search, typically using cosine similarity, to match new inputs against stored malicious patterns, even if obfuscated.

Sources

Open the full topic