n-357886072/n-357886072-first-assistant icon
public
Published on 5/6/2025
My First Assistant

This is an example custom assistant that will help you complete the Python onboarding in VS Code. After trying it out, feel free to experiment with other blocks or create your own custom assistant.

Prompts
Models
Context
anthropic Claude 3.7 Sonnet model icon

Claude 3.7 Sonnet

anthropic

200kinput·8.192koutput
anthropic Claude 3.5 Haiku model icon

Claude 3.5 Haiku

anthropic

200kinput·8.192koutput
mistral Codestral model icon

Codestral

mistral

voyage Voyage AI rerank-2 model icon

Voyage AI rerank-2

voyage

voyage voyage-code-3 model icon

voyage-code-3

voyage

ollama deepseek r1:1.5b model icon

deepseek r1:1.5b

ollama

No Rules configured

No Docs configured

Prompts

Learn more
Write Cargo test
Write unit test with Cargo
Use Cargo to write a comprehensive suite of unit tests for this function
实体提取
提取时间和地点
### 角色设定
你是一个信息提取专家,能够从文本中准确提取关键信息。

### 任务描述
从给定的文本中提取出具体的时间和地点信息。

### 输出要求
输出格式为JSON,包含两个键值对:'time' 和 'location',每个键对应提取到的具体信息。输出内容应简洁明了,长度适中,确保信息准确无误。
--- 请从以下文本中提取所有人名、地点和组织名称: 端午节在大运体育馆五月天将举行演唱会,请做好保障
DSPy实体提取
提取时间和地点
从给定的文本中识别并提取出明确的时间表达和地点名称,以确保任务的准确性和及时性。

---

按照以下格式和示例直接输出内容

用户输入的任务描述: 描述用户需要从文本中提取的时间和地点信息
{"时间": "", "地点": ""} 根据输入的文本,提取其中的时间和地点,并以字典形式返回。不要使用三重反引号```包裹,直接输出如:{"时间": "昨天", "地点": "云南丽江"},请严格按照输出示例给出结果,不要增加其他内容

---

用户输入的任务描述: 2023年11月7日,成都市大熊猫繁育研究基地有一场直播,请求视频保障。
{"时间": "", "地点": ""} {"时间": "2023年11月7日", "地点": "成都市大熊猫繁育研究基地"}

---

用户输入的任务描述: 9月下旬,在黄山举办黄山旅游节,吸引游客前来
{"时间": "", "地点": ""} {"时间": "9月下旬", "地点": "黄山"}

---

用户输入的任务描述: 明天对张江高科进行潮汐监控
{"时间": "", "地点": ""} {"时间": "明天", "地点": "张江高科"}

---

用户输入的任务描述: 2023第30届中国(杭州)纺织服装供应链博览会于明天在杭博举行,请保障。
{"时间": "", "地点": ""} {"时间": "明天", "地点": "杭博"}

---

用户输入的任务描述: 7月10号山东淄博发生林火,做好通信保障
{"时间": "", "地点": ""} {"时间": "7月10号", "地点": "山东淄博"}

---

用户输入的任务描述: 3 天后,在北京鸟巢举办国际奥林匹克音乐节,请做好视频保障
{"时间": "", "地点": ""} {"时间": "3 天后", "地点": "北京鸟巢"}

---

用户输入的任务描述: 昨天云南丽江发生地质灾害,做好通信保障
{"时间": "", "地点": ""} {"时间": "昨天", "地点": "云南丽江"}

---

用户输入的任务描述: 2023年4月15日亚洲博鳌论坛将在海南博鳌举行
{"时间": "", "地点": ""} {"时间": "2023年4月15日", "地点": "海南博鳌"}

---

用户输入的任务描述: 端午节在大运体育馆五月天将举行演唱会,请做好保障
{"时间": "", "地点": ""} {"时间": "端午节", "地点": "大运体育馆"}

---

用户输入的任务描述: 本月25日中国国际农产品交易会将在南昌举办
{"时间": "", "地点": ""} {"时间": "本月25日", "地点": "南昌"}

---

用户输入的任务描述: {input}
{"时间": "", "地点": ""} 
实体提取-test
实体提取-test
### 角色设定
你是一个信息提取专家,能够从文本中准确提取关键信息。

### 任务描述
从给定的文本中提取出具体的时间和地点信息。

### 输出要求
输出格式为JSON,包含两个键值对:'time' 和 'location',每个键对应提取到的具体信息。输出内容应简洁明了,长度适中,确保信息准确无误。
--- 请从以下文本中提取所有人名、地点和组织名称: 端午节在大运体育馆五月天将举行演唱会,请做好保障

Context

Learn more
@code
Reference specific functions or classes from throughout your project
@docs
Reference the contents from any documentation site
@diff
Reference all of the changes you've made to your current branch
@terminal
Reference the last command you ran in your IDE's terminal and its output
@problems
Get Problems from the current file
@folder
Uses the same retrieval mechanism as @Codebase, but only on a single folder
@codebase
Reference the most relevant snippets from your codebase

No Data configured

MCP Servers

Learn more

No MCP Servers configured