Skip to content

Latest commit

 

History

History
82 lines (73 loc) · 2.57 KB

Vertex AI使用指南.md

File metadata and controls

82 lines (73 loc) · 2.57 KB

文本数据

提示词设计

Overview of text prompt design,示例:

Text:
Question:
Answer:
Categories:
Options:

示例2(关联一致性):

Classify the sentiment of the following text as positive or negative.
Text: I love chocolate.
Sentiment:

分类

总结

总结文本

Provide a summary for the following article:
...
Write an abstract of this article:
...
Write a creative title for the text.
...

总结对话

Summarize the following conversation.
A: ...
B: ...

提取

使用场景

The following are common use cases for extraction:

  • Named entity recognition (NER): Extract named entities from text, including people, places, organizations, and dates.
  • Relation extraction: Extract the relationships between entities in text, such as family relationships between people.
  • Event extraction: Extract events from text, such as project milestones and product launches.
  • Question answering: Extract information from text to answer a question.

模型

text-bison

示例

Prompt:

Extract the technical specifications from the text below in a JSON format. Valid fields are name, network, ram, processor, storage, and color.
Text: Google Pixel 7, 5G network, 8GB RAM, Tensor G2 processor, 128GB of storage, Lemongrass
JSON:

Response:

{
  "name": "Google Pixel 7",
  "network": "5G",
  "ram": "8GB",
  "processor": "Tensor G2",
  "storage": "128GB",
  "color": "Lemongrass"
}

Vertex AI API

价格