Freigeben über


FabricAI.Prompt

Syntax

FabricAI.Prompt(input as text, optional context as any) as text

About

Gibt das Ergebnis der Übergabe von input an ein angegebenes KI-Modell zurück. Ein optionaler context Wert kann bereitgestellt werden, um zusätzliche Daten anzugeben, die für die Anforderung relevant sind.

Beispiel 1

Verwenden Sie ein KI-Modell, um eine Produktüberprüfung zu kategorisieren.

Verwendung

FabricAI.Prompt(
    "Categorize the review as positive, negative, or neutral, and extract a single key word in parentheses.",
    [Review = "This is a great product. It only broke four times before we had to return it!"]
)

Output

"Negative (broke)"