Lurker News

Comments (172) 64 threads

Earlier comments
TheTaytay1 reply#
Woah, this is really neat. My first step for many new libraries is to clone the repo, launch Claude code, and ask it to write good documentation for me. This would save a lot of steps for me!
randomcatuser#
Exactly what I did today! (for Codex!) The output here is actually slightly better!

I bet in the next few months we'll be getting dynamic, personalized documentation for every library!! Good times

fforflo1 reply#
If you want to use Ollama to run local models, here’s a simple example:

from ollama import chat, ChatResponse
def call_llm(prompt, use_cache: bool = True, model="phi4") -> str: response: ChatResponse = chat( model=model, messages=[{ 'role': 'user', 'content': prompt, }] ) return response.message.content

mooreds1 reply#
Is the output as good?

I'd love the ability to run the LLM locally, as that would make it easier to run on non public code.

fforflo#
It's decent enough. But you'd probably have to use a model like llama2, which may set your GPU on fire.
Too#
How well does this work on unknown code bases?

The tutorial on requests looks uncanny for being generated with no prior context. The use cases and examples it gives are too specific. It is making up terminology, for concepts that are not mentioned once in the repository, like "functional api" and "hooks checkpoints". There must be thousands of tutorials on requests online that every AI was already trained on. How do we know that it is not using them?

chairhairair2 replies#
A company (mutable ai) was acquired by Google last year for essentially doing this but outputting a wiki instead of a tutorial.
zh24081 reply#
Their site seems to be down. I can't find their results.
nxobject#
It sounds like it'd be perfect for Google's NotebookLM portfolio -- at least if they wanted to scale it up.
chairhairair#
I don’t know the details of the deal, but their YC profile indicates they were acquired.
cowsandmilk#
you're going to trust the person who started the thread with no idea what happened to the company and then jumped to conclusions based on LinkedIn?
kaycebasques#
I meant to write a blog post about mutable.ai but didn't get around to it before the product shut down.

I did however archive the wiki that it generated for the project I work on: https://web.archive.org/web/20240815184418/wiki.mutable.ai/g...
(The images aren't working. I believe those were auto-generated class inheritance or dependency diagrams.)
* The first paragraph is pretty good.
* The second paragraph is incorrect to call pw_rpc the "core" of Pigweed. That implies that you must always use pw_rpc and that all other modules depend on it, which is not true.
* The subsequent descriptions of modules all seemed decent, IIRC.
* The big issue is that the wiki is just a grab bag summary of different parts of the codebase. It doesn't feel coherent. And it doesn't mention the other 100+ modules that the Pigweed codebase contains.
When working on a big codebase, I imagine that tools like mutable.ai and Pocket Flow will need specific instruction on what aspects of the codebase to document.

Load more comments