Skip to content

Quickstart sample for using the Azure AI Studio with the SDK or CLI options - and the LangChain framework.

License

Notifications You must be signed in to change notification settings

john-rice/aistudio-python-langchain-sample

 
 

Repository files navigation

⚠️ WARNING: This repository is deprecated and no longer maintained ⚠️

There is a new repository that covers the latest Azure AI code-first experiences. Navigate to and star this one instead: https://github.com/Azure-Samples/rag-data-openai-python-promptflow/tree/main

Azure AI Studio: LangChain Quickstart Sample

This project use the AI Search service to create a vector store for a custom department store data. We will be using Azure Open AI's text-embedding-ada-002 deployment for embedding the data in vectors. The vector representation of your data is stored in Azure AI Search (formerly known as "Azure Cognitive Search").
To enable the user to ask questions our data in a conversational format, we'll using Langchain to connect our prompt template with our Azure Open AI LLM.

We'll use Retrieval Augmented Generation (RAG), a pattern used in AI which uses an LLM to generate answers with your own data. In addition, we'll construct prompt template to provide the scope of our dataset, as well as the context to the submit questions. Lastly, we'll maintain the state of the conversation by store the chat history in the prompt.

Custom Data: The sample data that we'll be using in this project is a department store dataset. The dataset contains a list of customers, orders, products and their descriptions, and their prices. We'll be using this dataset to create a copilot that can answer questions about the products in the dataset.

This is the basic quickstart tutorial for the Azure AI Studio using Langchain. Find other framework-specific tutorial here:

🧰 | Explore features of Azure AI Studio

The sample showcases features from the Azure AI Studio preview:

  • Azure AI Studio - build, evaluate, deploy, your AI solution from one UI.
  • Azure AI Services - core AI Service APIs & Models usable in Azure AI Studio
  • Azure AI SDK - for programmatic access to Azure AI Services.
  • Azure AI CLI - for command-line access to Azure AI Services.

Warning

Features contained in this repository are in private preview. Preview versions are provided without a service level agreement, and they are not recommended for production workloads. Certain features might not be supported or mvght have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

👩🏽‍💻 | Build a copilot with your own data

Learn to build your own copilot using the Azure AI Studio with core resources (Azure AI Services) and tools (Azure AI SDK, Azure AI CLI). The tutorial guides you through the following steps:

  1. Setup and validate your development environment.
  2. Create an Azure AI project and AI resources for your copilot.
  3. Create an Azure AI search index for your custom data.
  4. Validate copilot by asking a question about your custom data.
  5. Evaluate the performance of your copilot implementation.
  6. (Optional) Deploy the copilot to Azure and invoke it.

🏁 | Let's Get Started!

Ready to get started building a copilot with your own custom data?

  • Start here to setup your development environment, then work through the remaining steps.
  • Run local via CLI if you want to get started in your local environment.

📚 | Relevant Resources

  1. Azure AI Studio - UI to explore, build & manage AI solutions.
  2. Azure AI Studio Docs - Azure AI Studio documentation.
  3. Azure AI Services - Azure AI Services documentation.
  4. Training: Using vector search in Azure Cognitive Search
  5. Tutorial: Deploy a web app for chat on your data

About

Quickstart sample for using the Azure AI Studio with the SDK or CLI options - and the LangChain framework.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.9%
  • Jupyter Notebook 18.5%
  • Dockerfile 1.6%