News for hackers. Stuff that matters.
Re:Show HN: A web-app to explore topics using LLM by pbronez on Wednesday December 27, 2023 @07:09AM (#38781213)
Interesting concept, can you share some more detail about the implementation? How are you generating the different portions of the interface? Seems like you have a couple canned prompts that trigger a few exploratory ideas in addition to a primary response.
Re:Show HN: A web-app to explore topics using LLM by pbronez on Wednesday December 27, 2023 @07:11AM (#38781236)
Re:Show HN: A web-app to explore topics using LLM by graphitout on Wednesday December 27, 2023 @10:05AM (#38782628)
You are right.

- llm_generate() - this is the core function which calls ollama API

- get_related() - this will give a sequence of related topics for a given topic and description

- llm_get_aspect_query() - this is tricky. The interface has a fixed set of aspects for every response. Like history, related ideas, people etc. I wanted a way to create new query based on an existing query and a given aspect. This func does the rephrasing of the query.

- App.vue: handle_related() - there is a tiny bit here. When going to another "suggested" topic, it seems we have to give it some context.