genaiops-promptflow-template  by microsoft

LLMOps template for building LLM-infused apps using Prompt Flow

Created 1 year ago
342 stars

Top 80.8% 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

4 months ago

Responsiveness

1 week

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

Explore Similar Projects

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

2.4%
2k
CLI tool for agentic terminal interactions using natural language
Created 1 year ago
Updated 20 hours ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Travis Fischer Travis Fischer(Founder of Agentic), and
6 more.

AlphaCodium by Codium-ai

0.1%
4k
Code generation research paper implementation
Created 1 year ago
Updated 9 months ago
Starred by Wei-Lin Chiang Wei-Lin Chiang(Cofounder of LMArena), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
4 more.

qwen-code by QwenLM

3.4%
13k
AI coding agent for complex codebases
Created 2 months ago
Updated 18 hours ago
Feedback? Help us improve.