Giter Site home page Giter Site logo

nitya / aistudio-python-langchain-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/aistudio-python-langchain-sample

1.0 1.0 0.0 1.56 MB

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

License: MIT License

Python 79.86% Jupyter Notebook 18.50% Dockerfile 1.65%

aistudio-python-langchain-sample's Introduction

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

aistudio-python-langchain-sample's People

Contributors

ruyakubu avatar microsoftopensource avatar microsoft-github-operations[bot] avatar

Stargazers

Rijan Ghimire avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.