Ask HN: 应用请求文本补全服务,有哪些标准方法?
1 分•作者: nvader•6 个月前
如果我正在编写一个需要基于 LLM 的文本补全来驱动某个功能的新型轻量级应用程序,是否有标准方法可以请求用户的操作系统提供补全?
例如,假设我正在编写一个小的 TUI,允许你浏览 jsonl 文件,并希望创建一个启用自然语言解析的功能。 是否存在一种与实现无关的、新兴的标准,例如“将此自然查询翻译成 jq {natlang-query}: 响应在这里: ”?
如果目前还没有这样的标准,那么要构建并广泛应用它需要什么?
查看原文
If I'm writing a new lightweight application that requires LLM-based text completion to power a feature, is there a standard way to request the user's operating system to provide a completion?<p>For instance, imagine I'm writing a small TUI that allows you to browse jsonl files, and want to create a feature to enable natural language parsing. Is there an emerging standard for an implementation agnostic, "Translate this natural query to jq {natlang-query}: response here: "?<p>If we don't have this yet, what would it take to get this built and broadly available?