tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model¶
Example Airflow DAG for Google Vertex AI Generative Model prompting.
Attributes¶
Module Contents¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.DAG_ID = 'vertex_ai_generative_model_dag'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.REGION = 'us-central1'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.PROMPT = 'In 10 words or less, why is Apache Airflow amazing?'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.TEXT_EMBEDDING_MODEL = 'textembedding-gecko'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.MULTIMODAL_MODEL = 'gemini-pro'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.MULTIMODAL_VISION_MODEL = 'gemini-pro-vision'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.VISION_PROMPT = 'In 10 words or less, describe this content.'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.MEDIA_GCS_PATH = 'gs://download.tensorflow.org/example_images/320px-Felis_catus-cat_on_snow.jpg'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.MIME_TYPE = 'image/jpeg'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.EXPERIMENT_NAME = 'eval-experiment-airflow-operator'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.EXPERIMENT_RUN_NAME = 'eval-experiment-airflow-operator-run'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.PROMPT_TEMPLATE = '{instruction}. Article: {context}. Summary:'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.CACHED_MODEL = 'gemini-1.5-pro-002'[source]¶
- tests.system.google.cloud.vertex_ai.example_vertex_ai_generative_model.CACHED_SYSTEM_INSTRUCTION = Multiline-String[source]¶
Show Value
""" You are an expert researcher. You always stick to the facts in the sources provided, and never make up new facts. Now look at these research papers, and answer the following questions. """