Generating Embeddings
Last updated
Last updated
Phoenix supports any type of dense embedding generated for almost any type of data.
But what if I don't have embeddings handy? Well, that is not a problem. The model data can be analyzed by the embeddings Auto-Generated for Phoenix.
Generating embeddings is likely another problem to solve, on top of ensuring your model is performing properly. With our Python , you can offload that task to the SDK and we will generate the embeddings for you. We use large, pre-trained that will capture information from your inputs and encode it into embedding vectors.
We support generating embeddings for you for the following types of data:
CV - Computer Vision
NLP - Natural Language
Tabular Data - Pandas Dataframes
We extract the embeddings in the appropriate way depending on your use case, and we return it to you to include in your pandas dataframe, which you can then analyze using Phoenix.
Auto-Embeddings works end-to-end, you don't have to worry about formatting your inputs for the correct model. By simply passing your input, an embedding will come out as a result. We take care of everything in between.
If you want to use this functionality as part of our Python SDK, you need to install it with the extra dependencies using pip install arize[AutoEmbeddings]
.
You can get an updated table listing of supported models by running the line below.
We are constantly innovating, so if you want other models included, reach out to us at support@arize.com or in our community Slack!
Auto-Embeddings is designed to require minimal code from the user. We only require two steps:
Create the generator: you simply instantiate the generator using EmbeddingGenerator.from_use_case()
and passing information about your use case, the model to use, and more options depending on the use case; see examples below.
Let Arize generate your embeddings: obtain your embeddings column by calling generator.generate_embedding()
and passing the column containing your inputs; see examples below.
Arize expects the dataframe's index to be sorted and begin at 0. If you perform operations that might affect the index prior to generating embeddings, reset the index as follows: