Top Embedding Models for Prompt Attack Detection

Research indicates OpenAI's text-embedding-3-small, GTE-large, and MiniLM-L6-v2 are highly effective, with OpenAI embeddings combined with an XGBoost classifier achieving 97.7% accuracy for indirect prompt injection detection.

Sources

Open the full topic