You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on May 16, 2025. It is now read-only.
According to the script detect_pi_vectorbase.py in python-sdk/rebuff/, the below code snippet assumes higher similarity score implies prompt injection, whereas it seems it should be the opposite i.e. a lower similarity score should mean prompt injection? The same logic is then used in detect_injection method in sdk.py to declare if injection exists.
Also the first if condition equates score and top_score and therefore second if condition would never run?
Activity
Osherz5 commentedon Jan 22, 2025
I have noticed the same thing, it really looks like the vector db search will always return count_over_max_vector_score=0 rendering it ineffective