Open AI and Hugging Face Connection Method
Focus
Focus
Prisma AIRS

Open AI and Hugging Face Connection Method

Table of Contents


Open AI and Hugging Face Connection Method

Use Open AI and Hugging Face connection method for adding targets.
Use this information in this section to configure target endpoints for Open AI and Hugging Face.
  1. After specifying Target Details, set the Connection Method to Open AI or Hugging Face.
  2. Click Next: Add/Verify Parameters.
  3. In the Add/Verify Parameters page, you'll need to set the authentication mechanism and additional connection details:
    1. In the API Details section, enter the API key.
    2. Enter the API endpoint. For example, https://api.openai.com/v1/chat/completions.
    3. Specify Model Details.
      • Enter a Model name (for example, gpt 3.5 turbo).
      • Configure Model Streaming by enabling or disabling it.
  4. Select Next: Verify & Edit JSON.
  5. In the Verify & Edit JSON page, specify the JSON structure of the request.
  6. Click Next: Advanced Configurations.
    In the Advanced Configurations page you'll configure Rate Limits and set Guardrails/Content Filters.
  7. (Optional) Enable Rate Limits for applications on the target endpoint.
    1. Specify the Endpoint Rate Limit. This value represents the maximum number of allowed requests per minute for the specified endpoint.
    2. Specify the Endpoint Rate Limit Error Code. This field represents the error code your system uses for rate limiting violations.
    3. Provide a Sample Exception JSON.
  8. (Optional) Enable Guardrails/Content Filters. These fields are used for output guardrails or content filters applicable on the target endpoint.
    1. Specify the Error code for Guardrails or Content Filters. This field represents the error code your system uses when a response is prevented by filters or safeguards.
    2. Provide a Sample Exception JSON.
    3. Select
      .
      Only after a target is successfully validated, you can add target background information.
  9. (Mandatory) Configure Target Background.
    AI Red Teaming collects and organizes the Target background information about your target endpoint. Target background encompasses mandatory elements such as, industry classification, use case definition, and competitive landscape analysis, along with optional documentation uploads including company policy documents and other relevant materials.
    Target background information is mandatory for all the target types.
    1. Add Industry information.
    2. Add Use Case, that is specific role of the target such as customer service or additional comments.
    3. (Optional) Select Add Competitor to add the list of Competitors.
    4. Enable Agentic Profiling.
      Agentic Profiling in AI Red Teaming helps gather all relevant context about a target endpoint such as its business use case, background, key capabilities, technical architecture and other critical information. This is carried out by an autonomous agent probing the target endpoint with the right prompts. All information gathered through this exercise is presented as the Target's profile and is used downstream in AI Red Teaming Scans using the Agent.
  10. Select Submit.
    Once the target is created you can start a scan, or view previously created targets: