Text completion API receiving embeddings from Embeddings API

Is this possible ?
I want to perform text operations based on a vector created by embeddings API

something like:
consider this vector XXX a company, based on it, the best way to compare the metrics of this sector would be…

The completion API is text based so the embeddings won’t have any effect. You will probably need to get the source of the embedding in text before sending it to the completion API

2 Likes

@nelson thanks a lot for the clarification

This might help you out.
I created a GSheet template that allow you to manage the GPT API using Function.
It can help you turn your document into embedding, search on them and feed it to GPT for prompt.
Feel free to try it out.

1 Like

Thanks @nelson i appreciate

1 Like

Nelson, thank you SO MUCH for this. This is exactly what I was looking for.

2 Likes

You are welcome, my pleasure.

1 Like

Hi @nelson I began using your gsheet and openai sheet. Two questions: where / how did you bild the API into that?
How can we stop the Gsheet answearing all the questions from the previous sessions when I open the gsheet a next time? (otherwise it is a very huge data usage)

I created a custom function in the app script that calls the Open AI API.
Are you able to see it from the sheet?
The source code is included.