News for hackers. Stuff that matters.
Re:ChatGPT's API Is So Good and Cheap, It Makes Most Text Ge... by vorticalbox on Saturday March 11, 2023 @02:28PM (#35111740)
In this case you can feed it bits of code you're interested in and ask it to explain, the API has a limit of 4096 tokens (which is a good chunk of text).

I actually built a slack bot for work and daily ask it to refactor code or "write jsdocs for this function"

Re:ChatGPT's API Is So Good and Cheap, It Makes Most Text Ge... by zibzob on Saturday March 11, 2023 @02:35PM (#35111819)
Yeah, and this is pretty useful for small bits of code, but what I want is a way to ask questions about large projects. It would be nice to ask something like "which classes are responsible for doing X", or "describe on a high level how Y works in this code". But I'm not sure if that is actually possible with the current technology.
Re:ChatGPT's API Is So Good and Cheap, It Makes Most Text Ge... by roseway4 on Saturday March 11, 2023 @03:56PM (#35112618)
It’s possible to do this either by fine-tuning an existing model or using an existing chat model prompts enriched by a vector search for relevant code. See my comment elsewhere.