用llama3.2提取信息
欢迎转载,请支持原创,保留原文链接:blog.ilibrary.me
- 下载并安装Ollama, https://ollama.com/download
- 启动ollama
- 运行llama 3.2 3B,
ollama run llama3.2:3b
- 输入下面的prompt:
下面是学生留学申请的结果,请抽取学校,学位,专业信息以json格式返回, 每条申请对应一条json: Yale/BME/offer UCSD PhD ECE
llama 3.2的输出:
[
{
"school": "Yale",
"degree": "BME",
"admission_status": "offer"
},
{
"school": "UCSD",
"degree": "PhD",
"major": "ECE"
}
]
效果不错,就是波动性比较大,不稳定。
下面是doubao提取的结果:
[
{
"学校": "Yale",
"学位": "",
"专业": "BME"
},
{
"学校": "UCSD",
"学位": "PhD",
"专业": "ECE"
}
]