GithubHelp home page GithubHelp logo

azure / intro-to-intelligent-apps Goto Github PK

View Code? Open in Web Editor NEW
167.0 17.0 249.0 9.28 MB

This repository introduces and helps organizations get started with building Intelligent Apps and incorporating Large Language Models (LLMs) via AI Orchestration into them.

License: MIT License

Dockerfile 1.90% Jupyter Notebook 90.26% Python 4.53% C# 3.31%

intro-to-intelligent-apps's Issues

Review devcontainer setup

In most cases, this lab is run using Codespaces and appears to work well. Some users trying to run the labs using a local instance of Visual Studio code with the devcontainer have experienced some issues. Check the devcontainer setup to make sure it works well for both Codespaces and local VS Code. The experience should be the same.

Azure AD authentication in labs

We looked at adding Azure AD support to the labs for customers that wish to secure access to Azure OpenAI using that method. Whilst possible, it did add a degree of extra unnecessary complexity to the labs. There were also potential issues when using Codespaces with getting AAD auth to work.

To simplify things, this workshop will expect API keys to be used to provide access to the Azure OpenAI service. However, it would be good to add an optional lab which shows how to use Azure AD based authentication, so that participants interested in this method of access control can see how it works.

.NET interactive notebooks need .NET 7.0

Python notebooks work. But .NET ones now require .NET 7, when only .NET 6 is in the dev container.

I have suggested to change:

  1. In docker-compose.yml line 13 to "VARIANT: 7.0.jammy"
  2. In Dockerfile line 3 tp ARG VARIANT="7.0.jammy"

Works for me.

Would do a pull request if I knew how :-)

improvement excercises in single jupyter notebook

Improvement:
Put the excercises into 1 jupyther notebook.
Removes repetitive starting of codespaces python kernels
In case of errors in the .env file you can restart the code in one jupyter file

Prep guide

All required resources described:

  • OpenAI (with the right model version)
  • Codespaces or Local dev container
  • AI Search (with admin key)
  • MongoDB on CosmosDB

Devcontainer on Mac with Apple Silicon fails due to no AARCH64 support in Azure Functions Core Tools

Running the dev container locally on a Mac with Apple Silicon will fail during the build of the container. The error will be similar to the following:

6.133 E: Unable to locate package azure-functions-core-tools
6.135 ERROR: Feature "Azure Functions Core Tools" (ghcr.io/
[2023-08-15T11:13:12.890Z] jlaundry/devcontainer-features/azure-functions-core-tools) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/azure-functions-core-tools for help troubleshooting this error.

This is because there is currently no official release of Azure Functions Core Tools that supports installation inside of a container when running on Apple Silicon:

jlaundry/devcontainer-features#7

Azure/azure-functions-core-tools#3112

Make crear, that you can theoretically train your own LLM models

The text says, I can't bring my own data into an LLM because the models are pre-trained, so the only way to get more information in is to retrain the model, which is an expensive and time consuming process.

"The thing is, you can't actually do that. The models are pre-trained, so the only way to get more information in is to retrain the model, which is an expensive and time consuming process.\n",

So this statement is contradictory. I can do it, it's just very expensive and resource intensive and time consuming. I suggest to adjust that to avoid confusion.

Add details on preparing a .env file as a pre-requisite

For most deliveries of this workshop, customers will likely use a single instance of the Azure OpenAI service for all participants. The .env file should be preconfigured with the correct API key, endpoint etc. values prior to the event. It can then be distributed to participants, which will simplify the setup process and reduce the likelihood of participants not being able to connect to Azure OpenAI to run the labs.

Pre-requisites for local execution of labs

The codespaces / devcontainer setup should allow participants using that method to have a trouble-free experience. For those who wish to fork / clone the repo and run locally, need to provide a detailed list of pre-requisite components that need to be installed.

Clean up vector store lab

Merge 03 and 04
Clean up duplicates in Qdrant, Mongo and AI
Move up 05
Delete 06 lab

Tasks

Codespaces setup video

Create a short video to help participants get up and running with Codespaces prior to the event. This can be distributed a few days before the event to allow people to get Codespaces ready to go.

Wrong env variable name from the template

image

The env variable name in "labs/03-orchestration/01-Tokens/tokens.ipynb" is called as "AZURE_OPENAI_API_ENDPOINT" but in the .env template it is "AZURE_OPENAI_ENDPOINT".
image

I think this issue is also present in subsequent files under section 03.

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.