Skip to content

Latest commit

 

History

History
67 lines (49 loc) · 4.28 KB

README.md

File metadata and controls

67 lines (49 loc) · 4.28 KB

Azure OpenAI On Your Data with Python Streamlit

Open in GitHub Codespaces

This repository leverages Azure OpenAI's native On Your Data feature and integrates it with Streamlit, a robust framework for developing web applications purely in Python. The goal is to create an MVP for RAG with the most streamlined architecture possible.

This template has now been successfully included in the azd-templates Gallery aka.ms/awesome-azd.
Thanks to the Microsoft azd team. ❤️

Chat

Features

Architecture Diagram

architecture

Getting Started

  1. This repository has been optimized for GitHub codespaces. Please use the following badge to open a web-based version of VS Code in your browser.

    Open in GitHub Codespaces

  2. Login to your Azure account:

    azd auth login --use-device-code
    
  3. Provision Azure resources and deploy the application code:

    azd up
    
    • Enter the environment name, Azure Subscription, and the location of the Azure resources one by one as instructed.
    • This process involves uploading the test document ./data/employee_handbook.pdf to an Azure Storage Account and triggering the Ingestion Jobs task within On Your Data.

    Deploy

  4. Setting Up a Python development environment and running web application:

    cd app
    . start.sh
    

    If you are in GitHub codespaces, you will see the automatically opened preview browser on the right-hand side.

  5. Redeploy the updated program:

    azd deploy
    

    Repeat steps 4 and 5 and enjoy your development process!

Resources

Here are some resources to learn more about the technologies used in this repository: