News for hackers. Stuff that matters.
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by TheCaptain4815 on Wednesday November 30, 2022 @02:49PM (#33806580)
There are numerous other open source embedding models that are just as powerful (if not more powerful) while 90%+ cheaper.
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by fareesh on Wednesday November 30, 2022 @03:05PM (#33806848)
Can you list a few I'm interested in checking them out
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by TheCaptain4815 on Wednesday November 30, 2022 @03:13PM (#33806966)
Slightly outdated article, but still relevant imo to show the different types.

https://medium.com/@nils_reimers/openai-gpt-3-text-embedding...

I've also used https://huggingface.co/flax-sentence-embeddings/all_datasets...

Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by jimhi on Wednesday November 30, 2022 @03:32PM (#33807219)
I am a fairly technical guy (check out my submissions) and I read your links and have no idea how to use these to make responses the way I can with OpenAI.

It says I can input a Source Sentence and compare it to other sentences. For example, how do I get it to reply to a question as if I am George from Seinfeld?

Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by gamegoblin on Wednesday November 30, 2022 @03:38PM (#33807301)
Embeddings are not for that. Embeddings take text and encode it into a high dimensional vector space. Similar texts will be closer together in the vector space.

The idea I was proposing was to use embeddings as a way to store and retrieve relevant "memories" so the AI could maintain coherence across time. I.e. whenever the user sends a message, we pull up the N most relevant memories (where relevance == closeness in the vector space) and include those in the prompt, so GPT3 can use the information when it forms its response.

Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by visarga on Thursday December 01, 2022 @04:32AM (#33814161)
I just implemented exactly this. In the corpus I put a few hundred papers I am interested in. Now I can ask a question, the search engine will find a few snippets and put them in the GPT-3 prompt.
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by samching on Thursday December 01, 2022 @01:28PM (#33820389)
Any good guides for embedding generation?
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by fareesh on Saturday December 03, 2022 @07:31AM (#33842982)
Yes this would be useful - does anyone have a crash course or something similar?
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by jimhi on Wednesday November 30, 2022 @03:43PM (#33807379)
As I can't reply to the child - that makes sense it is for embeddings. So would GPT3 still need to be used combined with this then?
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by gamegoblin on Wednesday November 30, 2022 @04:15PM (#33807819)
HN prevents users from responding to responses to their own comments without some delay to prevent flame wars -- just wait a few minutes next time, or click on the link to the comment directly and you'll be able to reply.

Yes you would still need GPT3 in this system. Right now, the incredibly simple system just wires gives GPT3 a window of the last 100 messages and has it output the next message to send.

    The following is an excerpt SMS conversation between two friends:

    Transcript:
    <splice in the last 100 messages here>
Then you can have GPT3 output what it believes the most likely next message is, and you send it. But this system means it loses context if a message is outside the window. So you can augment this system by creating an embedding of the last few messages of the conversation, and creating a prompt like:

    The following is an excerpt SMS conversation between two friends, and relevant past memories that are related to the current conversation:

    Relevant past memories:
    <splice in the N past messages with the most similar embedding to the most recent messages>

    Transcript:
    <splice in the last 100 messages>
So this gets you a kind of short term memory (the last 100 messages) and a long term memory (the embeddings).
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by nl on Wednesday November 30, 2022 @07:31PM (#33810420)
> Relevant past memories: > <splice in the N past messages with the most similar embedding to the most recent messages>

This is a really good idea. Presumably you'd keep the memory per-person.

Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by abraxas on Wednesday November 30, 2022 @09:09PM (#33811350)
Oh, that makes a ton of sense. Thank you!
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by gamegoblin on Wednesday November 30, 2022 @03:35PM (#33807255)
Thanks for the links, will check this out. It does seem compelling.
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by macrolime on Wednesday November 30, 2022 @04:18PM (#33807853)
Here's a bunch being benchmarked

https://huggingface.co/spaces/mteb/leaderboard

Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by cpdomina on Wednesday November 30, 2022 @04:57PM (#33808409)
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by visarga on Thursday December 01, 2022 @04:28AM (#33814128)
I wouldn't have suggested those models. Just use a semantically fine-tuned BERT.

> GPT-3 Embeddings by @OpenAI was announced this week. I was excited and tested them on 20 datasets. Sadly they are worse than open models that are 1000 x smaller

https://twitter.com/Nils_Reimers/status/1487014195568775173

Get models here: https://sbert.net/docs/pretrained_models.html

Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by tomschwiha on Wednesday November 30, 2022 @03:05PM (#33806838)
Could you name some you have in mind?
Re:OpenAI ChatGPT: Optimizing Language Models for Dialogue by femboy on Thursday December 01, 2022 @07:54AM (#33815627)
I wonder if there are any that can be used as a general chatbot way easily.