File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1+ """
2+ ## Ask questions to Star Trek captains using OpenAI's LLMs, embed and visualize the results
3+
4+ This DAG shows how to use the OpenAI Airflow provider to interact with the OpenAI API.
5+ The DAG asks a question to a list of Star Trek captains given using Airflow params,
6+ embeds the responses using the OpenAI text-embedding-ada-002 model, and visualizes the
7+ embeddings in 2 dimensions using PCA, matplotlib and seaborn.
8+ """
9+
110from airflow .decorators import dag , task
211from airflow .models .param import Param
312from airflow .models .baseoperator import chain
3847 "Which is your favorite ship?" ,
3948 type = "string" ,
4049 title = "Question to ask the captains" ,
41- description = "Enter what you would like to ask the captain ." ,
50+ description = "Enter what you would like to ask the captains ." ,
4251 min_length = 1 ,
4352 max_length = 500 ,
4453 ),
You can’t perform that action at this time.
0 commit comments