News for hackers. Stuff that matters.
Re:Build Personal ChatGPT Using Your Data by ben_w on Saturday July 08, 2023 @06:38PM (#36649480)
The only embeddings I currently see listed on https://openai.com/pricing are Ada v2, at $0.1/million tokens.

Even if the alternative is free, how much do you value your time, how long will it take to set up an alternative, and how much use will you get out of it? This is also why it's never been the year of linux on the desktop, and why most businesses still don't use Libre Office and GIMP.

I can't speak for quality; even if I used that API directly, this whole area is changing too fast to really keep up.

Re:Build Personal ChatGPT Using Your Data by akiselev on Saturday July 08, 2023 @07:11PM (#36649686)
If you look at a embeddings leaderboard [1], one of the top competitors called InstructorXL [2] is just a pip install away. It's neck and neck with Ada v2 except for a shorter input length and half the dimensions, with the added benefit that you'll always have the model available.

Most of the other options just work with the transformers library.

[1] https://huggingface.co/spaces/mteb/leaderboard

[2] https://github.com/HKUNLP/instructor-embedding

Re:Build Personal ChatGPT Using Your Data by arrowsmith on Saturday July 08, 2023 @08:28PM (#36650144)
Running models on your own hardware isn't just about cost, there are privacy concerns too.
Re:Build Personal ChatGPT Using Your Data by rolisz on Sunday July 09, 2023 @12:21AM (#36651473)
If you've never coded or used Python before, yeah, go with OpenAI. Otherwise, generating embeddings with SentenceBERT takes 5 minutes.

And from my personal experience Ada embeddings are not the best. They are large (makes aproximate searching harder), are distributed weirdly, and zimply put, other embeddings give better results for retrieval.

Another advantage is that you are not an OA's whim: they just announced the deprecation of some previous model. What are you going to do when they will deprecate Ada v2 and you've built a huge system on top of it? You'll have to regenerate embeddings and hope everything still works just as well.

Re:Build Personal ChatGPT Using Your Data by space_fountain on Sunday July 09, 2023 @01:19AM (#36651764)
Yes, exactly this, I also want to say I'm not someone who generally thinks open models are better. I think embeddings just haven't been a focus for OpenAI and it shows. Maybe in the future they will focus on it
Re:Build Personal ChatGPT Using Your Data by trolan on Sunday July 09, 2023 @09:22PM (#36660914)
Yes, when new technology comes you may need to upgrade. OpenAI aren't hero's but they are covering the cost to move people from old to new embedding models
Re:Build Personal ChatGPT Using Your Data by avereveard on Sunday July 09, 2023 @01:40AM (#36651885)
Setting up an embedding alternative out of huggingface sentence transformers is fairly easy, the magical thing openai does is that they will create embedding of 8192 characters at a time while most other emerging will force you to chunk your documents in 512 characters long sequences, losing lot of context, multiplying your queries result, search times etc