Better HN
topnewbestaskshowjobs
Log inSign up

letaem77

7 karma · joined Jun 26, 2020 (6y ago) · 8 submissions

https://atj.sh
Submissions

1.

Show HN: Browser-to-Browser File Sharing Using the Web Push API(baab.atj.sh ↗)

2 points · by letaem77 · 11mo ago · discuss

comment 1y ago · link · parent

This is my way to do it:

1. Archive whole repository into single text file with Repopack: https://github.com/yamadashy/repomix

2. To reduce token, compress the file with LLMLingua-2: https://github.com/microsoft/LLMLingua

(fewer token = more context can be given to LLM = LLM better understands your repository)

3. Copy & Paste the compressed archive text contents as a context, into ChatGPT’s input field as-is, or local LLMs.

4. Ask the LLM for documentation generation. Like, “this is a repository source code. given context, generate a ‘table-of-content’.” Then you will get a ToC. If it looks good, you can ask for generating first chapter. And keeps going until you finish whole documentation.

If you are trying to document Typescript/Javascript codebase, You may use bundlers like esbuild for step 2, which will beneficial for token reducing.

If you interested in step 2’s LLMLingua-2, check out my Typescript port that can be ran without no installation at: https://atjsh.github.io/llmlingua-2-js/

3.

Generating Swagger Documentation from Source Code with ChatGPT(gist.github.com ↗)

2 points · by letaem77 · 1y ago · discuss

4.

Show HN: In-browser Text compressor for LLM(atjsh.github.io ↗)

2 points · by letaem77 · 1y ago · discuss

5.

Show HN: Compress Long LLM Prompt, Right in your web browser(atjsh.github.io ↗)

5 points · by letaem77 · 1y ago · discuss

comment 2y ago · link · parent

What a name!

comment 3y ago · link · parent

Same from my country… I checked if it’s my iPhone’s iCloud Private Relay.

comment 4y ago · link · parent

12 & 6