News for hackers. Stuff that matters.
Re:CustomGPT by LeoPanthera on Monday February 13, 2023 @03:45PM (#34780163)
Just shove all your information in the prompt. I assume that's what these guys are doing anyway. ChatGPT doesn't yet have any API, but you can use text-davinci-003, which does have an API and is functionally identical.

The API costs for a large prompt are quite high, and since you have to repeat it with every single query, your costs can go up very quickly.

Re:CustomGPT by gecersiznick on Monday February 13, 2023 @03:48PM (#34780213)
Gotcha! Thanks for the response. So if I have, say, 10 PDF files which I plan to extract text from and use to fine-tune davinci, I would have to supply the entire textual information extracted from the PDF file each time?
Re:CustomGPT by geepytee on Monday February 13, 2023 @03:50PM (#34780244)
davinci-003 has a 4k tokens cap, you cannot just 'shove all your information in the prompt.' Can parallelize but then rate limits become a problem. Really curious to hear how these guys are handling it.
Re:CustomGPT by KidComputer on Monday February 13, 2023 @03:56PM (#34780317)
You shove the whole corpus in a vector db using embeddings, query the nearest neighbors to an input and inject those into a prompt to pass to GPT.

https://langchain.readthedocs.io/en/latest/modules/chains/co...

Re:CustomGPT by hackernudes on Monday February 13, 2023 @06:27PM (#34782529)
I thought fine-tuning allows you do "inject the prompt" only once. https://platform.openai.com/docs/guides/fine-tuning

Ah, the rub is that a fine-tuned Davinci costs 6x a standard Davinci. Interesting. https://openai.com/api/pricing/