TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Have you ever needed additional context for LLM?

1 点作者 pplonski86超过 1 年前
I asked ChatGPT-3.5 to write a Python code that will list the top 10 stories from Hacker News. In the response, I got code that used the BeautifulSoup4 package to scrape the Hacker News website. The code wasn&#x27;t working.<p>I want to use the HN REST API in the generated code (https:&#x2F;&#x2F;github.com&#x2F;HackerNews&#x2F;API). That&#x27;s why I sent a piece of documentation of HN REST API in the prompt and asked once again for the Python code. The returned code was working fine and was easier to understand (less lines than scraping with BeautifulSoup4).<p>I started to search the web and it looks like I have used a technique called in-context learning. I provided examples and ChatGPT learned about them on the fly, without updating the weights.<p>I&#x27;m thinking about writing a service for storing ChatGPT contexts. In the service, You will store predefined texts with examples (context) that can be sent to ChatGPT to get better responses. Have you ever needed such a service?<p>I&#x27;m aware that there is an option to provide Custom Instruction for ChatGPT. I&#x27;m thinking about something larger, some hierarchical structure of examples - that will be easy to search for LLM. I would be very grateful for any feedback!

1 comment

syndicatedjelly超过 1 年前
Honestly it sounds like a nuisance to keep this context tool up to date and troubleshoot if it&#x27;s actually picking up the context or not. I&#x27;d rather just copy paste into the prompt or use the built-in ChatGPT context storage thing you&#x27;re talking about. But maybe I&#x27;m missing some broader use case that you seem to be alluding to