Better HN
topnewbestaskshowjobs
Log inSign up

zh2408

470 karma · joined Dec 8, 2023 (2y ago) · 87 submissions

Submissions

1.

Show HN: 100-Line LLM Framework(github.com ↗)

4 points · by zh2408 · 1y ago · discuss

comment 1y ago · link · parent

The 100 lines: https://github.com/The-Pocket/PocketFlow/blob/main/pocketflo... Video: https://www.youtube.com/watch?v=0Zr3NwcvpA0

3.

Your LLM Framework Only Needs 100 Lines(the-pocket.github.io ↗)

3 points · by zh2408 · 1y ago · 1 comment

4.

LLM Agents and Context: A Warrior's Guide to Navigating the Dungeon(pocketflow.substack.com ↗)

4 points · by zh2408 · 1y ago · discuss

5.

LLM Agent's Arsenal: A Beginner's Guide to the Action Space(pocketflow.substack.com ↗)

1 points · by zh2408 · 1y ago · discuss

6.

Show HN: I built an AI chatbot that learns from your website to answer questions(github.com ↗)

2 points · by zh2408 · 1y ago · discuss

7.

Structured Output for Beginners and 3 Prompting Tips(pocketflow.substack.com ↗)

2 points · by zh2408 · 1y ago · discuss

8.

Build AI Code Generator from Scratch(pocketflow.substack.com ↗)

1 points · by zh2408 · 1y ago · 1 comment

9.

Build Your Own Voice Chatbot from Scratch(pocketflow.substack.com ↗)

1 points · by zh2408 · 1y ago · discuss

10.

Show HN: LLM Agents Play Among Us-Like Game(github.com ↗)

2 points · by zh2408 · 1y ago · discuss

comment 1y ago · link · parent

Could you try to use gemini 2.5 pro? It's free every day for first 25 requests, and can handle 1M input tokens

comment 1y ago · link · parent

You can provide GitHub token

comment 1y ago · link · parent

This code creates an HTTP session, sets a cookie within that session, makes another request that automatically includes the cookie, and then prints the response showing the cookies that were sent.

I may miss the error, but could you elaborate where it is?

comment 1y ago · link · parent

Yeah, RAG is not the best option here. Check out the design doc: https://github.com/The-Pocket/Tutorial-Codebase-Knowledge/bl... I also have a YouTube Dev Tutorial. The link is on the repo.

comment 1y ago · link · parent

By default we use both based on regex:

DEFAULT_INCLUDE_PATTERNS = { ".py", ".js", ".jsx", ".ts", ".tsx", ".go", ".java", ".pyi", ".pyx", ".c", ".cc", ".cpp", ".h", ".md", ".rst", "Dockerfile", "Makefile", ".yaml", ".yml", } DEFAULT_EXCLUDE_PATTERNS = { "test", "tests/", "docs/", "examples/", "v1/", "dist/", "build/", "experimental/", "deprecated/", "legacy/", ".git/", ".github/", ".next/", ".vscode/", "obj/", "bin/", "node_modules/", ".log" }

comment 1y ago · link · parent

Thank you! And correct, I didn't modify the outputs. For small changes, you can just feed the commit history and ask an LLM to modify the docs. If there are lots of architecture-level changes, it would be easier to just feed the old docs and rewrite - it usually takes <10 minutes.

comment 1y ago · link · parent

Thanks—would really appreciate your PR!

comment 1y ago · link · parent

Their site seems to be down. I can't find their results.

comment 1y ago · link · parent

Haha. The project is fully open-sourced, so you can tune the prompt for the tone/style you prefer: https://github.com/The-Pocket/Tutorial-Codebase-Knowledge/bl...

comment 1y ago · link · parent

The Linux repository has ~50M tokens, which goes beyond the 1M token limit for Gemini 2.5 Pro. I think there are two paths forward: (1) decompose the repository into smaller parts (e.g., kernel, shell, file system, etc.), or (2) wait for larger-context models with a 50M+ input limit.

comment 1y ago · link · parent

Yeah, I'd recommend trying Gemini 2.5 Pro. I know early Gemini weren't great, but the recent one is really impressive in terms of coding ability. This project is kind of designed around the recent breakthrough.

comment 1y ago · link · parent

No, I haven't, but I will check it out!

One thing to note is that the tutorial generation depends largely on Gemini 2.5 Pro. Its code understanding ability is very good, combined with its large 1M context window for a holistic understanding of the code. This leads to very satisfactory tutorial results.

However, Gemini 2.5 Pro was released just late last month. Since Komment.ai launched earlier this year, I don't think models at that time could generate results of that quality.

comment 1y ago · link · parent

Yes! This is an initial prototype. Good to see the interest, and I'm considering digging deeper by creating more tailored tutorials for different types of projects. E.g., if we know it's web dev, we could generate tutorials based more on request flows, API endpoints, database interactions, etc. If we know it's a more long-term maintained projects, we can focus on identifying refactoring patterns.

24.

Show HN: I built an AI that turns GitHub codebases into easy tutorials(github.com ↗)

923 points · by zh2408 · 1y ago · 172 comments

25.

Build Chain-of-Thought from Scratch – Tutorial for Dummies(zacharyhuang.substack.com ↗)

2 points · by zh2408 · 1y ago · discuss

26.

A2A Protocol Simply Explained: Here are 3 key differences to MCP(zacharyhuang.substack.com ↗)

4 points · by zh2408 · 1y ago · 1 comment

27.

MCP Simply Explained: Function Calling Rebranded or Genuine Breakthrough?(zacharyhuang.substack.com ↗)

4 points · by zh2408 · 1y ago · discuss

28.

Show HN: AI Explains Complex Codebase in 5 Minutes (Open Sourced)(github.com ↗)

3 points · by zh2408 · 1y ago · discuss

29.

Build RAG from Scratch – Tutorial for Dummies(zacharyhuang.substack.com ↗)

2 points · by zh2408 · 1y ago · discuss

123