Trying to create a visualization for embeddings

I’m trying to build a text classification model using the Openai API - but I don’t know how to make a JSONL file that could be read by it. unfortunately no JSONL file was provided so I can’t base my work off of one, If anyone could show me how to create a file that could be read by the embeddings endpoint and the visualization code, I would be incredibly appreciative. Thank you for your time!


I’m so excited to see what comes from this.

1 Like

Hi @curranjanssens

Here’s a great explainer on the JSONL files on the OpenAI docs.

Given this piece of code from the link: ( ), what part of the JSONL file would be where “category” would be

Thanks! that was my guess but I was a little lost, really appreciate your help


I stumbled upon the same problem and I was wondering if you managed to create something? I am trying to visualise the embeddings in 2D and 3D space in the browser by uploading a JSON file.

And also, do you think T-SNE is better for visualisation of the ada embeddings (without reducing the dimensions beforehand with something like PCA)?