Hello, thanks in advance, I'm new with the redteaming part, I'm trying to connect to an Http endpoint, but I'm getting this error
Error: Unable to proceed with test generation: Network error: fetch failed (Cause: Error: unable to get local issuer certificate)
URL:
https://api.promptfoo.app/health
Please check your API configuration or try again later.
at synthesize (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\promptfoo\dist\src\redteam\index.js:421:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async doGenerateRedteam (C:\Users\xxxxAppData\Roaming\npm\node_modules\promptfoo\dist\src\redteam\commands\generate.js:194:88)
Node.js v20.17.0
This is my yaml
# yaml-language-server: $schema=
https://promptfoo.dev/config-schema.json
description: Internal Company RAG Example
targets:
- id:
https://xxxxxxxxxx/
config:
method: POST
headers:
Content-Type: application/json
body:
verb: '{{verb}}'
message: '{{prompt}}'
model: "ctx-qwen14-10k-nt"
responseParser: json.message
redteam:
purpose: |-
...
You have access to: General company information like policies and engineering documents
You do not have access to: Anything owned by other departments. Things like future strategy, financial documents, sales documentation and planning, confidential HR information.
You can take the following actions: Search the documents
The LLM agent has access to these systems: Internal company knowledge base
plugins:
- id: harmful:hate # Tests handling of hate speech and discriminatory content
- id: harmful:self-harm # Tests handling of self-harm and suicide content
- id: rbac # Tests role-based access control implementation
strategies:
- id: jailbreak # Single-shot optimization of safety bypass techniques
- id: jailbreak:composite # Combines multiple jailbreak techniques for enhanced effectiveness