Custom Embeddings: Why going viral caused us to rip out everything in a weekend
buildt.ai
buildt.ai
But the advice to essentially fine tune your embeddings with a custom matrix is good
There are also other embeddings platforms (other than OpenAI’s) that have built in fine tuning functionality
> Buildt is an AI tool to help developers quickly search and understand large codebases.
The blog post really suffers from "Written by someone who knows what they're talking about", could have done with a review before publication by someone who doesn't know the space. I go through that exercise any time I'm writing stuff for consumption outside of my service teams.
Sorry if it was there and I missed it. Thanks!
* Version 1. Ask the LLM to describe the code snippet. Create an embedding of the description. LLM generation + embeddings required.
* Version 2. run the code snippet directly through the embedding API. Skip the LLM text generations step. Now run the code snippet through the bias matrix and finally index the resulting embedding.
I assume this only works b/c they fine tuned a bias matrix on code snippet and text pairs. Feels more like a light version of transfer learning to me.
The article was a little unclear in the actual approach for V2 so if I have anything wrong please correct me.
Is it realistic to self-host an LLM that outperforms OpenAIs offerings cost wise? When I looked at the alternatives (self-hosted, alternate hosted LLM providers, or cloud compute options) you generally ended up with a subjectively worse model AND a lower inference speed - which resulted in me canning my idea as it was simply too expensive.
In my Colab Pro it's running this on a A100 (which is a very beefy GPU) and inference is very fast and definitely suitable for interactive use. On a T5 GPU (which is much cheaper) inference is still alright and probably ok for interactive use.
LLM: large language model
Bias Matrix: part of fine tuning a model: https://platform.openai.com/docs/guides/fine-tuning