News for hackers. Stuff that matters.
Re:Launch HN: Greptile (YC W24) - RAG on codebases that actu... by simonw on Tuesday March 05, 2024 @02:15PM (#39607940)
"We don't store any code on our servers after initial processing"

Are you storing the embedding vectors you've calculated from the code? If so, those are likely quite easily reversible - so I would still consider that source code stored on your servers from the point of view of a security audit.

As a result, I might actually prefer to have copies of my code stored on your servers if it resulted in faster performance.

Re:Launch HN: Greptile (YC W24) - RAG on codebases that actu... by soohoonchoi on Tuesday March 05, 2024 @02:40PM (#39608269)
For now we are storing the embeddings of the generated docstrings, the intuition behind this is kinda like how HyDE works. I don't think the actual code itself is reversible from the embeddings, but yes we do want to store the actual code at some point and we will need the proper security measures for that. We are also actively developing an self-hostable version for enterprise.
Re:Launch HN: Greptile (YC W24) - RAG on codebases that actu... by jaffee on Tuesday March 05, 2024 @02:30PM (#39608150)
> embedding vectors you've calculated from the code? If so, those are likely quite easily reversible

I don't think embeddings are generally reversible... you're usually projecting onto a lower dimensional space, and therefore losing information.

Re:Launch HN: Greptile (YC W24) - RAG on codebases that actu... by jncraton on Tuesday March 05, 2024 @02:43PM (#39608312)
You might be interested in "Text Embeddings Reveal (Almost) As Much As Text":

> We train our model to decode text embeddings from two state-of-the-art embedding models, and also show that our model can recover important personal information (full names) from a dataset of clinical notes.

https://arxiv.org/pdf/2310.06816.pdf

There's certainly information loss, but there is also a lot of information still present.

Re:Launch HN: Greptile (YC W24) - RAG on codebases that actu... by simonw on Tuesday March 05, 2024 @02:51PM (#39608377)
Yeah, that paper is what I was thinking about. https://simonwillison.net/2024/Jan/8/text-embeddings-reveal-...

“a multi-step method that iteratively corrects and re-embeds text is able to recover 92% of 32-token text inputs exactly”.

Re:Launch HN: Greptile (YC W24) - RAG on codebases that actu... by yunwal on Tuesday March 05, 2024 @02:39PM (#39608250)
"Quite easily" isn't true in most cases, but embeddings are sometimes reversible. We know this because programs like Stable Diffusion sometimes output near-perfect copies of training data when given the correct prompt, and generation of that image is based on word and image embeddings alone.
Re:Launch HN: Greptile (YC W24) - RAG on codebases that actu... by dartos on Tuesday March 05, 2024 @02:39PM (#39608259)
I’ve never heard of reversible embeddings in practice.

In theory if you know the model being used you could reverse them.