Skip to content

搞英语 → 看世界

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

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

提示文件 0.5

Posted on 2025-02-14

提示文件 0.5

我的files-to-prompt工具(最初是在 4 月份使用 Claude 3 Opus 构建的)已经积累了一堆问题和 PR – 我终于花一些时间使用它并推出了一个新版本:

  • 新的-n/--line-numbers标志用于在输出中包含行号。谢谢,丹·克莱顿。 #38
  • 修复了 Windows 上的 utf-8 处理。谢谢,大卫·贾曼。 #36
  • --ignore模式现在与目录名和文件名匹配,除非您传递新的--ignore-files-only标志。谢谢,尼克·鲍威尔。 #30

我自己几乎每天都使用这个工具 – 它非常适合快速回答有关代码的问题。最近,我将其插入具有 200 万个令牌上下文长度的 Gemini 2.0,运行如下所示的配方:

 git clone https://github.com/bytecodealliance/componentize-py cd componentize-py files-to-prompt . -c | llm -m gemini-2.0-pro-exp-02-05 \ -s 'How does this work? Does it include a python compiler or AST trick of some sort?'

我针对bytecodealliance/componentize-py存储库(它提供了一个将 Python 代码转换为已编译的 WASM 的工具)运行了这个问题,并得到了这个非常有用的答案。

标签:项目、 LLMS 、 Gemini 、 LLM 、人工智能辅助编程、生成式人工智能、人工智能、 WebAssembly 、 Python

原文: https://simonwillison.net/2025/Feb/14/files-to-prompt/#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