def METHOD_NAME(self, text):
    embedding = openai.Embedding.create(
        model="text-embedding-ada-002",
        input=text,
        api_key=self.api_key
    )['data'][0]['embedding']
    return embedding