genaiops-promptflow-template  by microsoft

LLMOps template for building LLM-infused apps using Prompt Flow

Created 2 years ago
352 stars

Top 79.2% on SourcePulse

GitHubView on GitHub
Project Summary

This template provides a comprehensive framework for managing the lifecycle of LLM-infused applications using Microsoft's Prompt Flow. It targets engineers, data scientists, and developers seeking to streamline prompt engineering, experimentation, evaluation, and deployment, offering a structured approach to LLMOps.

How It Works

The template centralizes code hosting for multiple Prompt Flow projects, enabling robust lifecycle management from local experimentation to production deployment. It supports variant and hyperparameter experimentation, A/B deployments, and detailed reporting for all runs. The system automatically detects and executes various flow types (Python class, function, YAML, DAG) and integrates with CI/CD pipelines (Azure DevOps, GitHub Actions, Jenkins).

Quick Start & Requirements

  • Install: pip install promptflow promptflow-tools promptflow-sdk jinja2 promptflow[azure] openai promptflow-sdk[builtins] python-dotenv
  • Prerequisites: Python environment, .env file for Azure OpenAI connection details (API key, base, type, version).
  • Setup: Requires cloning the repository and setting up environment variables.
  • Docs: Full documentation

Highlighted Details

  • Supports both Azure AI Studio and Azure Machine Learning.
  • Enables local and cloud-based execution and deployment to Kubernetes, Azure Web Apps, and AML/AI Studio managed compute.
  • Facilitates "bring-your-own-flows" (BYOF) and configuration-based development with minimal boilerplate code.
  • Includes comprehensive reporting for experiments and metrics, with examples for various use cases like Web Classification, NER, Chat with PDF, and Code Generation.

Maintenance & Community

This is a Microsoft-maintained project. Contributions are welcome, subject to a Contributor License Agreement (CLA). The project adheres to the Microsoft Open Source Code of Conduct.

Licensing & Compatibility

  • License: MIT License
  • Compatibility: Permissive MIT license allows for commercial use and integration with closed-source applications.

Limitations & Caveats

Currently, only Azure OpenAI is supported as a provider for connections. The template's CI/CD configurations in .azure-pipelines are specific to Azure DevOps and may require adaptation for other CI/CD systems beyond the provided GitHub Actions and Jenkins examples.

Health Check
Last Commit

8 months ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 30 days

Explore Similar Projects

Starred by Patrick von Platen Patrick von Platen(Author of Hugging Face Diffusers; Research Engineer at Mistral), Simon Willison Simon Willison(Coauthor of Django), and
1 more.

mistral-vibe by mistralai

4.1%
3k
Conversational CLI coding agent for project interaction
Created 1 month ago
Updated 3 days ago
Starred by Matt Schrage Matt Schrage(Cofounder of Fig), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
2 more.

amazon-q-developer-cli by aws

0.5%
2k
CLI tool for agentic terminal interactions using natural language
Created 1 year ago
Updated 2 days ago
Feedback? Help us improve.