<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: David Abadi</title>
    <description>The latest articles on DEV Community by David Abadi (@david0425).</description>
    <link>https://dev.to/david0425</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2239294%2Fb1bbea0b-f257-4281-9d8a-fe047ce37801.jpg</url>
      <title>DEV Community: David Abadi</title>
      <link>https://dev.to/david0425</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/david0425"/>
    <language>en</language>
    <item>
      <title>Why is it impossible to revert vector to text?</title>
      <dc:creator>David Abadi</dc:creator>
      <pubDate>Mon, 21 Oct 2024 01:28:27 +0000</pubDate>
      <link>https://dev.to/david0425/why-is-it-impossible-to-revert-vector-to-text-30bj</link>
      <guid>https://dev.to/david0425/why-is-it-impossible-to-revert-vector-to-text-30bj</guid>
      <description>&lt;p&gt;You often hear the term “embedding” when talking about RAG applications. No, always.&lt;br&gt;
Simply put, embedding means converting text into a vector.&lt;br&gt;
But do you know how to convert vectors back to text?&lt;br&gt;
Theoretically, it is impossible to convert vector to original text.&lt;br&gt;
As a first Medium article, I’m going to explain about this.&lt;br&gt;
It’s very simple once you know the embedding process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why is it impossible?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You are probably aware of several embedding models supported by NLP providers such as OpenAI or Hugging Face. Right?&lt;br&gt;
Their performance and output dimensions vary, but the embedding process is the same.&lt;br&gt;
Mainly, embedding consists of tokenization, lemmatization, stemming and stop words removal.&lt;br&gt;
Here, a stop word refers to a word that does not affect the meaning of the entire sentence.&lt;br&gt;
“a”, “the”, “that”, “which” and so on.&lt;br&gt;
Although the criteria for judging this vary depending on the embedding model, this process is essential.&lt;br&gt;
For example, let’s say “am”, “to” and “~ing” are stop words.&lt;br&gt;
And let’s focus on the next two sentences.&lt;br&gt;
“I am going to school.”&lt;br&gt;
“I go to school.”&lt;br&gt;
After stop word removal processing, the two sentences become identical.&lt;br&gt;
“I go school”.&lt;br&gt;
In other words, two vectors are the same, but original text are different.&lt;br&gt;
This is the reason why it is impossible to revert vector to text.&lt;/p&gt;

</description>
      <category>nlp</category>
      <category>vectordatabase</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
