https://promptfoo.dev/ logo
❗[Help Needed] RedTeam Plugin Error: config.intent...
# ❓|questions
k
Hey folks, I’m running into an issue with the RedTeam plugin and could use some help. I'm getting the following error:
Copy code
Error running redteam: Error: Validation failed for plugin intent: Error: Invariant failed: Intent plugin requires `config.intent` to be set
Has anyone faced this before? Any idea what config.intent needs to be set to, or where exactly this should be configured? 🤔 Appreciate any guidance 🙏
i
hi kira, are you configuring via yaml or through the ui?
k
Via the UI
i
Got it, ok. The "intents" plugin refers to "Custom Prompts" in the UI. Is it possible you have an empty custom prompt? If so, recommend just deleting all the custom prompts and this error should go away.
k
Thanks, will check!
I am getting a new error now:
Error running redteam: TypeError: Cannot read properties of undefined (reading 'map')
i
hmm can you try removing rag-poisoning?
I think that should do it
k
Can you please let me know under which category RAG poisoning option comes? Most probably I have removed it, but if you can let me know the exact category name, I can double check.
i
I believe it's under the Security category