SELECT r.id FROM reviews r
WHERE AI.IF(PROMPT(
  'Does the review discuss the ending? {0}',
  r.body))

| id | body | AI.IF | |---|---|---| | r1 | The ending was perfect and the cast was great. | true | | r2 | Too long, and the ending made no sense. | true | | r3 | Great music, but I want my money back. | false |

AI functions

Each AI function returns one answer per row. SQL uses the answer like any other value.

Install

Quail needs Python 3.12 and a supported CUDA GPU.

The package is quail-engine, and you import it as quail. With no local GPU, run Quail on Modal or connect to Quail Server.

原文来源:fsdatalab.github.io