diff --git a/e2e/projects.spec.ts b/e2e/projects.spec.ts index ef13735b..b46829d2 100644 --- a/e2e/projects.spec.ts +++ b/e2e/projects.spec.ts @@ -25,6 +25,6 @@ test("create new project, rename it and delete it", async ({ page }) => { await page.getByTestId("delete-project-button").click() await page.getByTestId("delete-project-popover-button").click() - // If the project was deleted successfully, it redirects to the analytics page + // // If the project was deleted successfully, it redirects to the analytics page await page.waitForURL("**/analytics") }) diff --git a/packages/backend/src/api/v1/radars.ts b/packages/backend/src/api/v1/radars.ts index 8ff2babf..f2e4d0b0 100644 --- a/packages/backend/src/api/v1/radars.ts +++ b/packages/backend/src/api/v1/radars.ts @@ -36,55 +36,55 @@ const DEFAULT_RADARS = [ }, ], }, - { - description: - "Answer potentially contains PII (Personal Identifiable Information)", - negative: true, - view: [ - "AND", - { - id: "type", - params: { - type: "llm", - }, - }, - ], - checks: [ - "AND", - { - id: "pii", - params: { - field: "input", - type: "contains", - entities: ["person", "location", "email", "cc", "phone", "ssn"], - }, - }, - ], - }, - { - description: "Prompt contains PII (Personal Identifiable Information)", - negative: true, - view: [ - "AND", - { - id: "type", - params: { - type: "llm", - }, - }, - ], - checks: [ - "AND", - { - id: "pii", - params: { - field: "input", - type: "contains", - entities: ["person", "location", "email", "cc", "phone", "ssn"], - }, - }, - ], - }, + // { + // description: + // "Answer potentially contains PII (Personal Identifiable Information)", + // negative: true, + // view: [ + // "AND", + // { + // id: "type", + // params: { + // type: "llm", + // }, + // }, + // ], + // checks: [ + // "AND", + // { + // id: "pii", + // params: { + // field: "input", + // type: "contains", + // entities: ["person", "location", "email", "cc", "phone", "ssn"], + // }, + // }, + // ], + // }, + // { + // description: "Prompt contains PII (Personal Identifiable Information)", + // negative: true, + // view: [ + // "AND", + // { + // id: "type", + // params: { + // type: "llm", + // }, + // }, + // ], + // checks: [ + // "AND", + // { + // id: "pii", + // params: { + // field: "input", + // type: "contains", + // entities: ["person", "location", "email", "cc", "phone", "ssn"], + // }, + // }, + // ], + // }, { description: "Contains profanity or toxic language", negative: true, diff --git a/packages/backend/src/utils/db.ts b/packages/backend/src/utils/db.ts index 79044525..bacff10a 100644 --- a/packages/backend/src/utils/db.ts +++ b/packages/backend/src/utils/db.ts @@ -14,8 +14,8 @@ const sql = postgres(process.env.DATABASE_URL!, { connection: { application_name: `backend-${isProduction ? "production" : "development"}-${new Date().getTime()}`, }, - debug: process.env.DEBUG ? debugFn : () => {}, - onnotice: process.env.DEUG ? console.log : () => {},// TODO: replace `() => {}` by false when porsager/postgres PR is merged + // debug: process.env.DEBUG ? debugFn : () => {}, + // onnotice: process.env.DEUG ? console.log : () => {},// TODO: replace `() => {}` by false when porsager/postgres PR is merged }) function debugFn( diff --git a/packages/shared/checks/index.ts b/packages/shared/checks/index.ts index cae2e0db..737c81e2 100644 --- a/packages/shared/checks/index.ts +++ b/packages/shared/checks/index.ts @@ -582,6 +582,7 @@ export const CHECKS: Check[] = [ }, { id: "pii", + soon: true, name: "PII", uiType: "ai", @@ -701,7 +702,6 @@ export const CHECKS: Check[] = [ id: "sentiment", name: "Sentiment", uiType: "ai", - soon: true, description: "Uses AI to detect the sentiment of the given field.", params: [ FIELD_PARAM,