vec2text icon indicating copy to clipboard operation
vec2text copied to clipboard

What's happening in the example?

Open startakovsky opened this issue 1 year ago • 3 comments

I didn't find the example that clear but I have a guess at what's happening. Might be worth spelling out something to the effect of trying to map text to an embedding and then right back to the original text, or perhaps a smattering of points in the pre-image of the embedding, not really sure because it's not clear from what's written.

My two cents.

startakovsky avatar Feb 17 '24 01:02 startakovsky

@startakovsky can you be more specific? which example, and what did you think is confusing

jxmorris12 avatar Feb 17 '24 16:02 jxmorris12

Looks like the example takes in text and outputs text. What's happening?

vec2text has a function invert_strings which takes a list of strings and produces a list of strings.

The name of the function was confusing to me.

In my mind it's a misnomer if what is actually happening is:

  1. Input List of strings
  2. Produce embeddings associated to those strings
  3. Then run invert_embeddings under the hood

Maybe this is because this whole thing seems to be about:

$\mathcal{E}(strings) = embeddings

$\mathcal{E}^{-1}(embeddings) = strings

And so maybe what would be helpful is thinking about this like:

The goal of invert_strings is to find similar strings. The way we do that is we embed each input, the running our algorithm to find the inverse of the embedding, landing on a semantically similar list of strings

The goal of inverse embedding is to find strings, when embedded that produce the embeddings.

startakovsky avatar Feb 25 '24 15:02 startakovsky

@jxmorris12 does that help?

startakovsky avatar Mar 05 '24 05:03 startakovsky