Wpis z mikrobloga

#it #programowanie #programista15k #sztucznainteligencja

Fajne narzędzie. Code2prompt. Generuje ono prompty LLM z Twojej bazy kodu, w tym drzewo źródłowe, zawartość plików i liczbę tokenów, z konfigurowalnymi szablonami Handlebars i filtrowaniem plików.

https://github.com/mufeedvh/code2prompt

Krótki opis:

ou can run this tool on the entire directory and it would generate a well-formatted Markdown prompt detailing the source tree structure, and all the code. You can then upload this document to either GPT or Claude models with higher context windows and ask it to:

Quickly generate LLM prompts from codebases of any size.
Customize prompt generation with Handlebars templates. (See the default template)
Respects .gitignore.
Filter and exclude files using glob patterns.
Display the token count of the generated prompt. (See Tokenizers for more details)
Optionally include Git diff output (staged files) in the generated prompt.
Automatically copy the generated prompt to the clipboard.
Save the generated prompt to an output file.
Exclude files and folders by name or path.
Add line numbers to source code blocks.
JamesJoyce - #it #programowanie #programista15k #sztucznainteligencja

Fajne narzędzi...

źródło: image

Pobierz
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach