Retrieval augmented generation using Elasticsearch and OpenAI - Part 15
You'll need your OpenAI API key to generate the embeddings.

# Get OpenAI API key
OPENAI_API_KEY = getpass("Enter OpenAI API key")

# Set API key
openai.api_key = OPENAI_API_KEY

# Define model
EMBEDDING_MODEL = "text-embedding-ada-002"