Skip to content

搞英语 → 看世界

翻译英文优质信息和名人推特

Menu
  • 首页
  • 作者列表
  • 独立博客
  • 专业媒体
  • 名人推特
  • 邮件列表
  • 关于本站
Menu

LLM 查询理解服务

Posted on 2025-04-10

LLM 查询理解服务

Doug Turnbull 最近写了一篇关于现在所有搜索的结构的文章:

很多时候,即使是小型开源法学硕士也能够以相对较低的成本将搜索查询转变为合理的结构。

在本后续教程中,他演示了在支持 GPU 的 Google Kubernetes Engine 容器中运行的 Qwen 2-7B,将用户搜索查询(如“redloveseat”)转换为结构化过滤器(如{"item_type": "loveseat", "color": "red"} 。

这是他使用的提示。

 Respond with a single line of JSON: {"item_type": "sofa", "material": "wood", "color": "red"} Omit any other information. Do not include any other text in your response. Omit a value if the user did not specify it. For example, if the user said "red sofa", you would respond with: {"item_type": "sofa", "color": "red"} Here is the search query: blue armchair

出于好奇,我尝试使用LLM对其他一些模型运行他的提示:

  • gemini-1.5-flash-8b是 Gemini 型号中最便宜的,处理得很好,成本为 0.000011 美元 – 或 0.0011 美分。
  • llama3.2:3b也可以工作– 这是一个非常小的 2GB 模型,我使用 Ollama 运行。
  • deepseek-r1:1.5b – 一个微小的 1.1GB 模型,再次通过 Ollama,在认真思考问题后,将“红色双人沙发”解释为{"item_type": "sofa", "material": null, "color": "red"}有趣地失败了!

通过lobster.rs

标签:提示工程, llm ,生成人工智能,搜索, ai , llms ,双子座, ollama

原文: https://simonwillison.net/2025/Apr/9/an-llm-query-understanding-service/#atom-everything

本站文章系自动翻译,站长会周期检查,如果有不当内容,请点此留言,非常感谢。
  • Abhinav
  • Abigail Pain
  • Adam Fortuna
  • Alberto Gallego
  • Alex Wlchan
  • Answer.AI
  • Arne Bahlo
  • Ben Carlson
  • Ben Kuhn
  • Bert Hubert
  • Bits about Money
  • Brian Krebs
  • ByteByteGo
  • Chip Huyen
  • Chips and Cheese
  • Christopher Butler
  • Colin Percival
  • Cool Infographics
  • Dan Sinker
  • David Walsh
  • Dmitry Dolzhenko
  • Dustin Curtis
  • eighty twenty
  • Elad Gil
  • Ellie Huxtable
  • Ethan Dalool
  • Ethan Marcotte
  • Exponential View
  • FAIL Blog
  • Founder Weekly
  • Geoffrey Huntley
  • Geoffrey Litt
  • Greg Mankiw
  • Henrique Dias
  • Hypercritical
  • IEEE Spectrum
  • Investment Talk
  • Jaz
  • Jeff Geerling
  • Jonas Hietala
  • Josh Comeau
  • Lenny Rachitsky
  • Liz Danzico
  • Lou Plummer
  • Luke Wroblewski
  • Matt Baer
  • Matt Stoller
  • Matthias Endler
  • Mert Bulan
  • Mostly metrics
  • News Letter
  • NextDraft
  • Non_Interactive
  • Not Boring
  • One Useful Thing
  • Phil Eaton
  • Product Market Fit
  • Readwise
  • ReedyBear
  • Robert Heaton
  • Rohit Patel
  • Ruben Schade
  • Sage Economics
  • Sam Altman
  • Sam Rose
  • selfh.st
  • Shtetl-Optimized
  • Simon schreibt
  • Slashdot
  • Small Good Things
  • Steve Blank
  • Taylor Troesh
  • Telegram Blog
  • The Macro Compass
  • The Pomp Letter
  • thesephist
  • Thinking Deep & Wide
  • Tim Kellogg
  • Understanding AI
  • Wes Kao
  • 英文媒体
  • 英文推特
  • 英文独立博客
©2025 搞英语 → 看世界 | Design: Newspaperly WordPress Theme