News for hackers. Stuff that matters.
Re:CustomGPT by gecersiznick on Monday February 13, 2023 @03:43PM (#34780119)
Does anyone have any pointers as to how I can train ChatGPT on my personal corpus and create my own personal assistant?
Re:CustomGPT by elicash on Monday February 13, 2023 @03:56PM (#34780321)
It's insanely easy to use RelevanceAI to upload a 1-column spreadsheet, click the "vectorize" button, and then have something working. The problem is putting the data into that spreadsheet.

https://relevanceai.com/blog/use-all-of-your-blog-posts-and-...

As far as the next step...

Google allows you to export your email data. Ideally, you could download that data and upload it to a service that looked at original messages and your replies (and replies to replies) and trained on that file without having to make sense of what Google gives you.

If that was working, then you could have it reply to emails for you.

Re:CustomGPT by mmaia on Monday February 13, 2023 @03:49PM (#34780229)
Check OpeanAI's tutorials [1] and cookbook [2]. Or try LangChain [3], which abstracts a lot of the work.

[1] - https://platform.openai.com/docs/tutorials [2] - https://github.com/openai/openai-cookbook [3] - https://github.com/hwchase17/langchain

Re:CustomGPT by gecersiznick on Monday February 13, 2023 @03:57PM (#34780336)
This is great. Thanks!
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/