แชร์ผ่าน


FabricAI.พรอมต์

วากยสัมพันธ์

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

เกี่ยวกับ

ส่งคืนผลลัพธ์ของการส่งผ่านที่ระบุ input ไปยังโมเดล AI สามารถระบุค่าเพิ่มเติม context เพื่อระบุข้อมูลเพิ่มเติมที่เกี่ยวข้องกับคําขอ

ตัวอย่าง 1

ใช้โมเดล AI เพื่อจัดหมวดหมู่บทวิจารณ์ผลิตภัณฑ์

การใช้งาน

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!"]
)

ผลลัพธ์ของ

"Negative (broke)"