brash-honey-82710
02/14/2024, 10:00 PMfaint-rocket-14513
02/14/2024, 10:01 PMCronSchedule
class from flytekit
. This class allows you to define a schedule using the standard cron syntax. Here's a step-by-step guide on how to achieve this: 1. Define Your Workflow: First, ensure you have a Flyte workflow defined using the @workflow
decorator. This is the workflow you want to run on a daily basis. 2. Create a Cron Schedule: Use the CronSchedule
class to define a daily schedule. The cron expression for running something daily is "0 0 * * *"
, which means the workflow will be triggered at midnight every day. 3. Create a Launch Plan: A launch plan in Flyte is a way to trigger workflows. You can create a launch plan for your workflow and attach the cron schedule to it. Use the LaunchPlan
class for this purpose. 4. Register the Launch Plan: Finally, you need to register the launch plan with your Flyte deployment. This step makes the scheduled execution active. Here's an example code snippet that demonstrates these steps: from flytekit import CronSchedule, LaunchPlan from flytekit.remote import FlyteRemote from flytekit.configuration import Config from your_workflow_file import your_workflow_function # Configure the FlyteRemote object remote = FlyteRemote( config=Config.auto(), default_project="your_project_name", default_domain="development", ) # Define a daily cron schedule daily_schedule = CronSchedule( schedule="0 0 * * *", # This cron expression means daily at midnight ) # Create a launch plan with the daily schedule daily_launch_plan = LaunchPlan.get_or_create( name="daily_workflow_launch_plan", workflow=your_workflow_function, schedule=daily_schedule, ) # Register the launch plan remote.register_launch_plan( launch_plan=daily_launch_plan, version="your_version_identifier", # Use a unique version identifier )
In this example, replace your_workflow_file
, your_workflow_function
, your_project_name
, and your_version_identifier
with the appropriate values for your workflow, project, and version. Remember, the cron expression "0 0 * * *"
is for daily execution at midnight UTC. You can adjust the cron expression based on your specific timing requirements.brash-honey-82710
02/14/2024, 10:05 PMfaint-rocket-14513
02/14/2024, 10:05 PM"0 * * * *"
. This expression means the workflow will be triggered at the beginning of every hour. Here's a brief overview of the steps and a code snippet to illustrate how to set up an hourly schedule: 1. Define Your Workflow: Ensure you have a Flyte workflow defined with the @workflow
decorator. 2. Create an Hourly Cron Schedule: Use the CronSchedule
class with the cron expression for hourly execution. 3. Create a Launch Plan: Attach the hourly cron schedule to a launch plan for your workflow using the LaunchPlan
class. 4. Register the Launch Plan: Register the launch plan with your Flyte deployment to activate the scheduled execution. Example code snippet: from flytekit import CronSchedule, LaunchPlan from flytekit.remote import FlyteRemote from flytekit.configuration import Config from your_workflow_file import your_workflow_function # Configure the FlyteRemote object remote = FlyteRemote( config=Config.auto(), default_project="your_project_name", default_domain="development", ) # Define an hourly cron schedule hourly_schedule = CronSchedule( schedule="0 * * * *", # This cron expression means every hour ) # Create a launch plan with the hourly schedule hourly_launch_plan = LaunchPlan.get_or_create( name="hourly_workflow_launch_plan", workflow=your_workflow_function, schedule=hourly_schedule, ) # Register the launch plan remote.register_launch_plan( launch_plan=hourly_launch_plan, version="your_version_identifier", # Use a unique version identifier )
In this code, replace your_workflow_file
, your_workflow_function
, your_project_name
, and your_version_identifier
with the appropriate values for your specific workflow, project, and version. This setup will ensure that your Flyte workflow is executed hourly. Remember to adjust the cron expression if you need a different scheduling frequency or specific timing within the hour.brash-honey-82710
02/14/2024, 10:08 PMfaint-rocket-14513
02/14/2024, 10:08 PMbrash-honey-82710
02/14/2024, 10:10 PMfaint-rocket-14513
02/14/2024, 10:11 PMpip install boto3
). Step 1: Create an EKS Cluster import boto3 # Create an EKS client eks_client = boto3.client('eks') # Specify the cluster configuration cluster_name = 'my-eks-cluster' role_arn = 'arn:aws:iam::YOUR_AWS_ACCOUNT_ID:role/EKS_CLUSTER_ROLE' # Update this with your role ARN # Create the cluster response = eks_client.create_cluster( name=cluster_name, version='1.21', # Specify the desired Kubernetes version roleArn=role_arn, resourcesVpcConfig={ 'subnetIds': ['subnet-XXXX', 'subnet-YYYY'], # Specify your VPC subnets 'securityGroupIds': ['sg-XXXX'], # Specify your VPC security groups } ) print(response)
Step 2: Create a Managed Node Group nodegroup_name = 'my-node-group' node_role_arn = 'arn:aws:iam::YOUR_AWS_ACCOUNT_ID:role/EKS_NODEGROUP_ROLE' # Update this with your node role ARN # Create the node group response = eks_client.create_nodegroup( clusterName=cluster_name, nodegroupName=nodegroup_name, scalingConfig={ 'minSize': 2, 'maxSize': 3, 'desiredSize': 2, }, diskSize=20, # Disk size in GiB subnets=['subnet-XXXX', 'subnet-YYYY'], # Subnets for the nodes instanceTypes=['t3.medium'], # Instance type for the nodes nodeRole=node_role_arn, ) print(response)
Remember to replace placeholders like YOUR_AWS_ACCOUNT_ID
, EKS_CLUSTER_ROLE
, EKS_NODEGROUP_ROLE
, subnet-XXXX
, subnet-YYYY
, and sg-XXXX
with your actual AWS account details and desired configuration. This example demonstrates the basic steps to create an EKS cluster and a managed node group using Boto3. Depending on your specific requirements, you might need to adjust the configurations, such as the Kubernetes version, instance types, and the number of nodes. For more detailed information and options, refer to the Boto3 EKS documentation and the Amazon EKS User Guide.brash-honey-82710
02/14/2024, 10:16 PMfaint-rocket-14513
02/14/2024, 10:17 PMfrom datetime import timedelta from flytekit import LaunchPlan, WorkflowExecutionPhase, Email, workflow, task # Define your task @task def double_int_and_print(a: int) -> str: return str(a * 2) # Define your workflow @workflow def int_doubler_wf(a: int) -> str: doubled = double_int_and_print(a=a) return doubled # Create a launch plan with email notifications for the 'SUCCEEDED' phase int_doubler_wf_lp = LaunchPlan.get_or_create( name="email_notifications_lp", workflow=int_doubler_wf, default_inputs={"a": 4}, notifications=[ Email( phases=[WorkflowExecutionPhase.SUCCEEDED], recipients_email=["<mailto:admin@example.com|admin@example.com>"], ) ], )
In this example, an email notification is configured to be sent to <mailto:admin@example.com|admin@example.com>
when the workflow execution phase reaches SUCCEEDED
. You can modify the phases
parameter to include other execution phases like FAILED
or TIMED_OUT
as needed, and use Slack
or PagerDuty
instead of Email
for notifications through those services. Remember to register the launch plan with your Flyte deployment to activate the notifications. For more detailed information on notifications, you can refer to the Flyte documentation on notifications: • Flyte Documentation on Notifications • Flyte Cookbook Example on Notifications These sources provide additional examples and explain how to use notifications with scheduled workflows and how to combine different types of notifications.brash-honey-82710
02/14/2024, 10:20 PMfaint-rocket-14513
02/14/2024, 10:21 PMbrash-honey-82710
02/14/2024, 10:24 PMfaint-rocket-14513
02/14/2024, 10:25 PMflytectl
). Here's how you can do it using both methods: Using Flyte Console (UI) 1. Navigate to the Flyte console for your Flyte deployment. 2. Find the project and domain where your workflow is registered. 3. Locate the workflow you want to execute. 4. Click on the workflow to view its details. 5. You should see an option to "Launch Execution" or a similar button. Click on it. 6. Fill in the required input parameters for your workflow (if any). 7. Submit the execution. This will trigger the workflow execution with the provided inputs. Using Flyte CLI (flytectl
) To trigger a workflow execution using flytectl
, you first need to have flytectl
installed and configured to communicate with your Flyte cluster. Here's a basic command to launch an execution: flytectl create execution --project <project-name> --domain <domain-name> --execFile <execution-spec.yaml>
• `<project-name>`: The name of the project in Flyte where your workflow is registered. • `<domain-name>`: The domain within the project. • `<execution-spec.yaml>`: A YAML file containing the execution specification, including the workflow name and inputs. Here's an example of what the execution-spec.yaml
might look like: version: v1 inputs: key: value workflowName: "my_workflow"
Replace key: value
with the actual inputs your workflow expects and my_workflow
with the name of your workflow. For more detailed instructions and options, you can refer to the flytectl
documentation or use flytectl create execution --help
to get more information on the command. Note The exact steps and commands might vary slightly based on the version of Flyte and flytectl
you are using, as well as the configuration of your Flyte deployment. Sources • Flyte documentation: https://docs.flyte.org • flytectl
documentation: https://docs.flyte.org/projects/flytectl/en/stable/brash-honey-82710
02/14/2024, 10:31 PMfaint-rocket-14513
02/14/2024, 10:31 PMfrom flytekit import LaunchPlan, workflow, task from flytekit.models.core.execution import WorkflowExecutionPhase from flytekit.models.common import Notification, EmailNotification @task def my_task() -> str: # Your task implementation return "Task completed" @workflow def my_workflow() -> str: return my_task() # Define a launch plan with notifications my_workflow_lp = LaunchPlan.create( "my_workflow_launch_plan", my_workflow, notifications=[ Notification( phases=[WorkflowExecutionPhase.SUCCEEDED], email=EmailNotification(recipients_email=["<mailto:your-email@example.com|your-email@example.com>"]) ) ] )
This example demonstrates setting up an email notification for the successful completion of a workflow. You would need to adjust the notification setup according to your requirements, such as for different execution phases or using other notification channels supported by Flyte. Please note, the exact syntax and classes used might vary depending on the version of Flytekit you are using. Always refer to the latest Flyte documentation for the most accurate and up-to-date information. For more specific or advanced notification configurations, including potentially setting up custom notifications or integrations with services not directly supported by Flyte (like Discord), you might need to implement a custom solution that listens for Flyte notifications and then forwards them to your desired service. Sources • Flyte documentation: https://docs.flyte.org • Flyte GitHub issues and discussions: Provided context URLsbrash-honey-82710
02/14/2024, 10:32 PMfaint-rocket-14513
02/14/2024, 10:32 PMFlyteRemote
functionality provided by flytekit
. The FlyteRemote
class allows you to interact with a Flyte deployment remotely, enabling operations such as fetching, executing, and monitoring the status of workflows and tasks programmatically. Here's a basic example of how you can use FlyteRemote
to trigger a workflow execution: from flytekit import FlyteRemote, LaunchPlan from flytekit.configuration import Config # Configuration for connecting to the Flyte backend config = Config.auto() # Initialize the FlyteRemote object with the given config remote = FlyteRemote(config=config) # Specify the project, domain, and name of the workflow you want to execute project = "your_project_name" domain = "your_domain_name" name = "your_workflow_name" # Fetch the launch plan for the workflow launch_plan = remote.fetch_launch_plan(name=name, project=project, domain=domain) # Define the inputs for the workflow execution inputs = { "input1": value1, "input2": value2, # Add more inputs as required } # Execute the workflow execution = remote.execute(launch_plan=launch_plan, inputs=inputs, project=project, domain=domain) # Optionally, monitor the execution status print(f"Execution {execution.id.name} in phase {execution.closure.phase}")
In this example, replace "your_project_name"
, "your_domain_name"
, and "your_workflow_name"
with the actual project, domain, and name of the workflow you wish to execute. Also, replace inputs
with the actual inputs required by your workflow. Please note that the FlyteRemote
functionality requires appropriate configuration to communicate with your Flyte deployment. The Config.auto()
method attempts to automatically determine the configuration from environment variables or a configuration file. You may need to provide specific configuration details depending on your Flyte deployment setup. This approach allows you to programmatically trigger workflow executions from within a Python script, which can be particularly useful for integrating Flyte workflows into CI/CD pipelines or other automated processes. Sources • Flyte documentation on FlyteRemote: https://docs.flyte.org/projects/flytekit/en/latest/design/control_plane.html#flyteremotebrash-honey-82710
02/14/2024, 10:36 PMfaint-rocket-14513
02/14/2024, 10:37 PMflytekit
Python package documentation helpful, as it includes details on how to interact with Flyte programmatically, including launching workflows. Sources • Flyte GitHub Repository: https://github.com/flyteorg/flyte • Flyte Documentation: https://docs.flyte.org I apologize for any confusion and hope this guidance is helpful.brash-honey-82710
02/14/2024, 10:38 PMfaint-rocket-14513
02/14/2024, 10:40 PMflytekit
Python package documentation helpful, as it includes details on how to interact with Flyte programmatically, including launching workflows. Sources • Flyte GitHub Repository: https://github.com/flyteorg/flyte • Flyte Documentation: https://docs.flyte.org I apologize for any confusion and hope this guidance is helpful.brash-honey-82710
02/14/2024, 10:41 PMfaint-rocket-14513
02/14/2024, 10:42 PMpyflyte
CLI, part of Flytekit, to package your workflows. 3. Deploy Your Workflow to Flyte: Use flytectl
, the command-line interface for Flyte, to register your packaged workflows with a Flyte deployment. This step involves uploading your Docker container to a container registry and using flytectl
to register your workflows with the Flyte backend. 4. Trigger Executions: Once your workflow is deployed, you can trigger executions through the Flyte console (UI), flytectl
, or programmatically using Flytekit. Please note that these steps are a high-level overview, and the actual process may vary based on your specific requirements, Flyte deployment configuration, and the complexity of your workflows. For detailed instructions, examples, and best practices, refer to the Flyte documentation and the Flyte GitHub repository. Sources • Official Flyte Documentation: https://docs.flyte.org • Flyte GitHub Repository: https://github.com/flyteorg/flyte These resources will provide you with step-by-step guides, examples, and additional context needed to deploy workflows effectively using Flyte.brash-honey-82710
02/14/2024, 10:47 PMfaint-rocket-14513
02/14/2024, 10:47 PMbrash-honey-82710
02/14/2024, 10:49 PMfaint-rocket-14513
02/14/2024, 10:52 PMbrash-honey-82710
02/14/2024, 10:53 PMfaint-rocket-14513
02/14/2024, 10:54 PMbrash-honey-82710
02/14/2024, 10:54 PMfaint-rocket-14513
02/14/2024, 10:55 PMbrash-honey-82710
02/14/2024, 10:55 PMfaint-rocket-14513
02/14/2024, 10:59 PMv1 0 0
with `flytek flyte-org #flytekit \nContent: shameless-promotion \n\nlinkedin-flyte \n\nrandom \n\ndeployment \n\nhacktoberfest-2023 \n\nflyte-github \n\nflyte-line \n\nfeature-discussions \n\nlinen-test \n\nflytelab \n\nflytekit-java \n\nintegrations \n\nray-on-flyte \n\nconference-talks \n\nrelease \n\nflyte-ui-ux \n\nworkflow-building-ui-proj \n\nwriting-w-sfloris "} * {"source": "https://discuss.flyte.org/t/10135179/how-does-flyte-identify-system-error-was-trying-shelltask-an", "content": "Title: How does flyte identify system error Was trying ShellTask an flyte-org #flytekit \nContent: shameless-promotion \n\nlinkedin-flyte \n\nrandom \n\ndeployment \n\nhacktoberfest-2023 \n\nflyte-github \n\nflyte-line \n\nfeature-discussions \n\nlinen-test \n\nflytelab \n\nflytekit-java \n\nintegrations \n\nray-on-flyte \n\nconference-talks \n\nrelease \n\nflyte-ui-ux \n\nworkflow-building-ui-proj \n\nwriting-w-sfloris "} * {"source": "https://discuss.flyte.org/t/7877/quick-question-about-flyte-remote-i-have-a-workflow-that-pro", "content": "Title: Quick question about flyte remote I have a workflow that pro flyte-org #announcements \nContent: y\n\nYee\n\n03/17/2022, 7:52 PM\n\nthere will be some yeah, but hopefully not too bad. The whole FlyteRemote\nexperience was never really dialed in we think. We recently revamped the\nconfiguration of flytekit as well which affects this as well.\n\ncc @Ketan (kumare3)\n\nt\n\nThomas Vetterli\n\n03/17/2022, 7:55 PM\n\nlooking fwd\n\n15 Views\n\nPowered by "} * {"source": "https://discuss.flyte.org/t/12325793/wave-had-a-quick-question-about-the-flyte-console-is-there-a", "content": "Title: wave had a quick question about the flyte console is there flyte-org #ask-the-community \nContent: shameless-promotion \n\nlinkedin-flyte \n\nrandom \n\ndeployment \n\nhacktoberfest-2023 \n\nflyte-github \n\nflyte-line \n\nfeature-discussions \n\nlinen-test \n\nflytelab \n\nflytekit-java \n\nintegrations \n\nray-on-flyte \n\nconference-talks \n\nrelease \n\nflyte-ui-ux \n\nworkflow-building-ui-proj \n\nwriting-w-sfloris "} * {"source": "https://discuss.flyte.org/t/9492345/this-is-a-very-specific-question-and-feel-free-to-tell-me-th", "content": "Title: This is a very specific question and feel free to tell me th flyte-org #ask-the-community \nContent: shameless-promotion \n\nlinkedin-flyte \n\nrandom \n\ndeployment \n\nhacktoberfest-2023 \n\nflyte-github \n\nflyte-line \n\nfeature-discussions \n\nlinen-test \n\nflytelab \n\nflytekit-java \n\nintegrations \n\nray-on-flyte \n\nconference-talks \n\nrelease \n\nflyte-ui-ux \n\nworkflow-building-ui-proj \n\nwriting-w-sfloris "} * {"source": "https://discuss.flyte.org/t/7877/quick-question-about-flyte-remote-i-have-a-workflow-that-pro", "content": "Title: Quick question about flyte remote I have a workflow that pro flyte-org #announcements \nContent: shameless-promotion \n\nlinkedin-flyte \n\nrandom \n\ndeployment \n\nhacktoberfest-2023 \n\nflyte-github \n\nflyte-line \n\nfeature-discussions \n\nlinen-test \n\nflytelab \n\nflytekit-java \n\nintegrations \n\nray-on-flyte \n\nconference-talks \n\nrelease \n\nflyte-ui-ux \n\nworkflow-building-ui-proj \n\nwriting-w-sfloris "} * {"source": "https://discuss.flyte.org/t/4742154/do-yall-have-an-flyteconsole-image-that-would-be-able-to-be-", "content": "Title: do yall have an flyteconsole
image that would be able to b flyte-org #ask-the-community \nContent: shameless-promotion \n\nlinkedin-flyte \n\nrandom \n\ndeployment \n\nhacktoberfest-2023 \n\nflyte-github \n\nflyte-line \n\nfeature-discussions \n\nlinen-test \n\nflytelab \n\nflytekit-java \n\nintegrations \n\nray-on-flyte \n\nconference-talks \n\nrelease \n\nflyte-ui-ux \n\nworkflow-building-ui-proj \n\nwriting-w-sfloris "} * {"source": "https://discuss.flyte.org/t/426657/have-a-flyte-question-want-to-chat-drop-in-to-our-weekly-on-", "content": "Title: Have a Flyte question Want to chat Drop in to our Weekly on flyte-org #announcements \nContent: shameless-promotion \n\nlinkedin-flyte \n\nrandom \n\ndeployment \n\nhacktoberfest-2023 \n\nflyte-github \n\nflyte-line \n\nfeature-discussions \n\nlinen-test \n\nflytelab \n\nflytekit-java \n\nintegrations \n\nray-on-flyte \n\nconference-talks \n\nrelease \n\nflyte-ui-ux \n\nworkflow-building-ui-proj \n\nwriting-w-sfloris "} * {"source": "https://discuss.flyte.org/t/2401612/hey-flyte-team-i-was-wondering-if-there-is-a-way-to-better-n", "content": "Title: Hey flyte team I was wondering if there is a way to better n flyte-org #announcements \nContent: shameless-promotion \n\nlinkedin-flyte \n\nrandom \n\ndeployment \n\nhacktoberfest-2023 \n\nflyte-github \n\nflyte-line \n\nfeature-discussions \n\nlinen-test \n\nflytelab \n\nflytekit-java \n\nintegrations \n\nray-on-flyte \n\nconference-talks \n\nrelease \n\nflyte-ui-ux \n\nworkflow-building-ui-proj \n\nwriting-w-sfloris "} * {"source": "https://discuss.flyte.org/t/9559505/am-i-correct-in-understanding-that-flyte-does-not-support-cu", "content": "Title: Am I correct in understanding that Flyte does not support cu flyte-org #ask-the-community \nContent: Thanks! let me know anything I can help\n\n12 Views\n\nPowered by "} * {"source": "https://discuss.flyte.org/t/10490680/brash-honey-82710
02/14/2024, 11:00 PMfaint-rocket-14513
02/14/2024, 11:01 PMbrash-honey-82710
02/14/2024, 11:02 PMfaint-rocket-14513
02/14/2024, 11:02 PMbrash-honey-82710
02/14/2024, 11:04 PMfaint-rocket-14513
02/14/2024, 11:05 PMbrash-honey-82710
02/14/2024, 11:17 PMfaint-rocket-14513
02/14/2024, 11:17 PMbrash-honey-82710
02/14/2024, 11:18 PMfaint-rocket-14513
02/14/2024, 11:18 PMCronSchedule
class from flytekit
to define the schedule, and then attach this schedule to a LaunchPlan
. A LaunchPlan
is a way to trigger workflows with a specific set of inputs and configurations, including scheduling. Here's a step-by-step guide on how to do it: 1. Define Your Workflow: First, ensure you have a Flyte workflow defined using the @workflow
decorator. 2. Import Required Modules: Import CronSchedule
and LaunchPlan
from flytekit
. 3. Define the Schedule: Create a CronSchedule
object with the schedule set to run daily. Cron expressions are used to specify the schedule. For a daily schedule, you can use "0 0 * * *"
which represents a trigger at midnight every day. 4. Create a LaunchPlan: Use the LaunchPlan
class to create a launch plan for your workflow. Attach the CronSchedule
to this launch plan. 5. Register the LaunchPlan: Register the launch plan with your Flyte deployment. This step typically involves using the pyflyte
CLI or the Flyte console. Here's an example code snippet that demonstrates these steps: from flytekit import task, workflow, LaunchPlan from flytekit import CronSchedule # Define your workflow @task def my_task() -> str: return "Hello, world!" @workflow def my_workflow() -> str: return my_task() # Define the schedule - daily at midnight cron_schedule = CronSchedule( schedule="0 0 * * *" ) # Create a launch plan with the daily schedule daily_launch_plan = LaunchPlan.create( "my_daily_workflow", my_workflow, schedule=cron_schedule ) # This launch plan then needs to be registered with your Flyte deployment # This is usually done outside of the script, using the Flyte CLI or the console
Note: The registration of the launch plan with the Flyte deployment is an administrative step that involves interaction with the Flyte backend. It's typically done using the flytectl
command-line tool or through the Flyte console. Make sure to replace "my_daily_workflow"
and the workflow definition in the example with your actual workflow name and definition. SOURCES https://docs.flyte.org/projects/cookbook/en/latest/auto_examples/development_lifecycle/remote_workflow.html, https://github.com/flyteorg/flyte/issues/4889brash-honey-82710
02/14/2024, 11:19 PMfaint-rocket-14513
02/14/2024, 11:19 PMbrash-honey-82710
02/14/2024, 11:20 PMfaint-rocket-14513
02/14/2024, 11:20 PMbrash-honey-82710
02/14/2024, 11:21 PMfaint-rocket-14513
02/14/2024, 11:25 PMcontexts
section and add a new context. Leave the user
as admin
and make sure that the cluster
field matches the name
field in the previous step\n``yaml\n- context:\n cluster: microk8s\n user: admin\n name: microk8s\n```\n- d. Scroll down to the users
section and add a new entry:"} * {"source": "https://flyte.org/blog/getting-started-with-large-language-models-key-things-to-know", "content": "Title: Getting Started with Large Language Models: Key Things to Know \nContent: Copied to clipboard! \nClassify the text into positive, negative or neutral.\n\nText: The movie isn\u2019t that great.\nSentiment: \n This is a prompt that can be provided to an LLM to guide it. An LLM typically responds with 'positive,' 'negative' or 'neutral'. Response generated by ChatGPT Response generated by Llama 2 7B Chat model From the examples above, you can see that different LLMs create different results. This happens because of how they were trained, similar to how each of us has different opinions \ud83e\udde0 about the sentiment that exact piece of text conveys. Prompt format A straightforward way to interact with an LLM is by offering an incomplete sentence and allowing the model to complete it. This approach aligns with the nature of pre-trained LLMs, which excel at text completion. \n\nCopied to clipboard! \nFlamingos are \n When presented with this prompt, an LLM provides information about what flamingos are. Google Bard not only provided a definition of flamingos but also included a citation. LLMs can do more than just complete text; they can summarize, generate code, solve math problems and more."} * {"source": "https://discuss.flyte.org/t/11965391/beautify-deviceflow-prompt-https-github-com-flyteorg-flyteki", "content": "Title: Beautify deviceflow prompt <https github com flyteorg flytek flyte-org #contribute \nContent: or we just create a console in authenticator.py like\n\nCopy code\n\n \n \n from rich.console import Console\n from rich.text import Text\n from rich.style import Style\n \n # Create a console instance\n console = Console()\n \n # Create the text with formatted styles and colors\n text = Text.assemble(\n f"To Authenticate, navigate in a browser to the following URL: ",\n Text(resp.verification_uri, style=Style(color="blue", underline=True)),\n f" and enter code: ",\n Text(resp.user_code, style=Style(color="blue")),\n )\n \n # Print the text to the console\n console.print(text)\n\nk\n\nKetan (kumare3)\n\n05/10/2023, 1:42 PM\n\nFair use click but instead use rich_click\n\nb\n\nByron Hsu\n\n05/11/2023, 4:56 AM\n\n@Ketan (kumare3) https://github.com/flyteorg/flytekit/pull/1625 can you ship\n\n12 Views\n\nPowered by "} * {"source": "https://flyte.org/blog/getting-started-with-large-language-models-key-things-to-know", "content": "Title: Getting Started with Large Language Models: Key Things to Know \nContent: hallucinate? LLMs tend to hallucinate when they have an incomplete understanding of the prompt's context. In such cases, they may make educated guesses based on learned patterns. Hallucinations can also be a result of incomplete or incorrect training data. Since LLMs rely on their training data rather than real-world information, their outputs may sometimes be irrelevant. However, techniques like Retrieval Augmented Generation (RAG) can be employed to incorporate real-time information and mitigate this issue. How can you reduce hallucinations? Hallucination can be desirable in certain scenarios, such as when creative responses are needed, like in story writing or marketing content creation. However, when accuracy and factual information are required, hallucination becomes undesirable. Here are ways to mitigate hallucinations: Prompt engineering: By including more contextual information in the prompt, the language model gains a better understanding of the context and can generate more appropriate responses. In-context learning: When the model receives contextual information as part of the prompt, it has access to additional data that"} * {"source": "https://github.com/davidmirror-ops/flyte-the-hard-way/blob/main/docs/on-premises/single-node/001-configure-single-node-k8s.md", "content": "Title: \nContent: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJkakNDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUyT1RJd05EUTVNRFV3SGhjTk1qTXdPREUwTWpBeU9ESTFXaGNOTXpNd09ERXhNakF5T0RJMQpXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUyT1RJd05EUTVNRFV3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFUMi9hbmdvQU1lc3lMS2Nlc0hkTGovQThkTXB5Sm9pRmtJM0VQcDFRaXYKdDltd1IzMDh4anNM"} * {"source": "https://github.com/davidmirror-ops/flyte-the-hard-way/blob/main/docs/on-premises/single-node/001-configure-single-node-k8s.md", "content": "Title: \nContent: OS95RHp5Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0KLS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlRENDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdFkyeHAKWlc1MExXTmhRREUyT1RJd05EUTVNRFV3SGhjTk1qTXdPREUwTWpBeU9ESTFXaGNOTXpNd09ERXhNakF5T0RJMQpXakFqTVNFd0h3WURWUVFEREJock0zTXRZMnhwWlc1MExXTmhRREUyT1RJd05EUTVNRFV3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFTZXJ1M212bHlqY3lvV2NCWHVmOWpX"} * {"source": "https://github.com/flyteorg/flyte/issues/4243", "content": "Title: \nContent: ### Additional context to reproduce\n\n_No response_\n\n### Screenshots\n\n_No response_\n\n### Are you sure this issue hasn't been raised already?\n\n- [X] Yes\n\n### Have you read the Code of Conduct?\n\n- [X] Yes\n\n###Comments###:\n\n @pingsutw we can close this issue."} * {"source": "https://github.com/flyteorg/flyte/issues/4440", "content": "Title: \nContent: ### Propose: Link/Inline OR Additional context \n\n_No response_\n\n### Are you sure this issue hasn't been raised already?\n\n- [X] Yes\n\n### Have you read the Code of Conduct?\n\n- [X] Yes\n\n###Comments###:"} * {"source": "https://github.com/flyteorg/flyte/issues/4542", "content": "Title: \nContent: ### Propose: Link/Inline OR Additional context \r\n\r\n_No response_\r\n\r\n### Are you sure this issue hasn't been raised already?\r\n\r\n- [X] Yes\r\n\r\n### Have you read the Code of Conduct?\r\n\r\n- [X] Yes"} * {"source": "https://github.com/flyteorg/flyte/issues/3990", "content": "Title: \nContent: ### Additional context to reproduce\n\n_No response_\n\n### Screenshots\n\n_No response_\n\n### Are you sure this issue hasn't been raised already?\n\n- [X] Yes\n\n### Have you read the Code of Conduct?\n\n- [X] Yes\n\n###Comments###:\n\n cc @kumare3 @wild-endeavor"} *freezing-airport-6809
brash-honey-82710
02/15/2024, 1:09 AMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
brash-honey-82710
02/15/2024, 1:12 AMbrash-honey-82710
02/15/2024, 1:12 AMfreezing-airport-6809