Back to front pageView on Hacker News (opens in a new tab)Show HN: I built an AI that turns GitHub codebases into easy tutorials (opens in a new tab)github.com923 pointsby zh2408 (on Hacker News)last yearhttps://the-pocket.github.io/Tutorial-Codebase-Knowledge/github.com (opens in a new tab)GitHub - The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge: Pocket Flow: Codebase to TutorialPocket Flow: Codebase to Tutorial. Contribute to The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge development by creating an account on GitHub.Comments (172) 64 threadsShow all commentsShowing thread 6 of 64[-]fforflolast year1 reply#If you want to use Ollama to run local models, here’s a simple example:from ollama import chat, ChatResponsedef call_llm(prompt, use_cache: bool = True, model="phi4") -> str: response: ChatResponse = chat( model=model, messages=[{ 'role': 'user', 'content': prompt, }] ) return response.message.content[-]mooredslast year1 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.fforflolast year#It's decent enough. But you'd probably have to use a model like llama2, which may set your GPU on fire.
Show HN: I built an AI that turns GitHub codebases into easy tutorials (opens in a new tab)github.com923 pointsby zh2408 (on Hacker News)last year
fforflolast year1 reply#If you want to use Ollama to run local models, here’s a simple example:from ollama import chat, ChatResponsedef call_llm(prompt, use_cache: bool = True, model="phi4") -> str: response: ChatResponse = chat( model=model, messages=[{ 'role': 'user', 'content': prompt, }] ) return response.message.content
mooredslast year1 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.
fforflolast year#It's decent enough. But you'd probably have to use a model like llama2, which may set your GPU on fire.
Comments (172) 64 threads
Show all comments
Showing thread 6 of 64
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
I'd love the ability to run the LLM locally, as that would make it easier to run on non public code.