Skip to content

Prebuilt Policies

Coralogix provides prebuilt policies that you can apply to any AI application. Each evaluation includes configuration options, such as where to apply it (user prompt, LLM response, or both) and which categories to include or restrict.

This guide presents:

Select a policy

Select one or more of the following policies.

Security

TopicDescription
Prompt injectionDetects any user attempt of prompt injection or jailbreak.
SQL (read-only access)Detects any attempt to use SQL operations which requires more than read-only access.
SQL (load limit)Detects SQL statements that are likely to cause significant system load and affect performance.
SQL (restricted tables)Detects the generation of SQL statements that access specific tables considered sensitive.
SQL (allowed tables)Detects SQL operations on tables that are not configured in the eval.
PIIDetects the existence of PII (Personally Identifiable Information) in the user message or the LLM response based on the configured sensitive data types.

Hallucinations

TopicDescription
Context adherenceMeasures whether the model's response strictly follows the provided context without introducing new information.
Context relevanceAssesses how relevant and similar the provided context is to the user query, ensuring it contains the necessary information for an accurate response.
CompletenessEvaluates how well the model’s response includes all relevant information from the context.
CorrectnessDetermines if a model's response is factually accurate.
SQL hallucinationDetects hallucinations in LLM-generated SQL queries.
Tool parameter correctnessEnsures the correct tools are selected and invoked with accurately derived parameters based on chat history.
Task adherenceDetects whether the LLM's answer aligns with the given system prompt.

Toxicity

TopicDescription
SexismDetects whether an LLM response or user prompt contains sexist content.
ToxicityDetects any user message or LLM response containing toxicity.

Topics

TopicDescription
Restricted topicsDetects any user or LLM attempt to initiate a discussion on the topics mentioned in the eval.
Allowed topicsEnsures the conversation adheres to specific and well-defined topics.
Competition discussionDetects whether any prompt or response includes references to competitors mentioned in the eval.

User experience

TopicDescription
Language mismatchDetects when an LLM is answering a user question in a different language.

Compliance

TopicDescription
Restricted phrasesEnsures the LLM does not use specified prohibited terms and phrases by blocking or replacing them based on regex patterns.

Create evals for prebuilt policies

Use the Policy Catalog to add an evaluation to a policy.

  1. Browse the Policy Catalog tiles to find the policy you want.
  2. If the policy is not visible, use the Search field to locate it.
  3. To narrow the policy list, do one or more of the following:
    • Select a category.
    • Filter by Evaluations.
  4. On the policy card, select Add eval.
  5. Configure the evaluation:
    • If no configuration is required, Coralogix adds the evaluation to the application immediately.
    • If configuration is required, set the relevant options:
      • Select whether to run the evaluation on the user prompt, the LLM response, or both.
      • Select categories (for example, self-harm or violence for the Toxicity evaluation), values (for example, topics for the Restricted topics evaluation), or other attributes available for the policy type.
  6. Select Next.
  7. In the Add eval to application dialog box, select the application or applications you want to apply the evaluation to.
    • Applications that already use this evaluation are unavailable.
  8. Select Done.

Coralogix shows an indicator for evaluation usage in the catalog card, including the number of applications the evaluation applies to.

Manage evals

To manage an eval for a prebuilt policy, open the policy card and select the More actions menu.

Edit

Select Edit to open the policy page and update the policy. For predefined policies, you may edit the policy configuration.

Delete

Select Delete to remove the policy from a specific application.