Skip to content

Updates associated with changes to the Azure SQL Database Dev Guide #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
1e41996
Updates for models
kylebunting Apr 8, 2025
42786a9
Fixing formatting
kylebunting Apr 8, 2025
a4479bd
Wording update
kylebunting Apr 8, 2025
ef4908b
Adding dev container for codespaces
kylebunting Apr 8, 2025
6528e48
Cleaning up whitespace in requirement txt file
kylebunting Apr 8, 2025
a6f5704
Updating readme and devcontainer
kylebunting Apr 9, 2025
9352335
Adding comments and making script idempotent
kylebunting Apr 9, 2025
a05533b
Removing reduntant forward slash in Azure OpenAI url
kylebunting Apr 9, 2025
42b1bf4
Adding comments and cleaning up data insertion process
kylebunting Apr 9, 2025
53bdfa4
Removing whitespace
kylebunting Apr 9, 2025
0a9e6c7
Adding bicep and azd up for resource deployment
kylebunting Apr 11, 2025
980b4c4
Updates to devcontainer
kylebunting Apr 11, 2025
18cc204
Updating dev container to include powershell
kylebunting Apr 11, 2025
b46c362
Updates preprovision script to run on windows or posix
kylebunting Apr 11, 2025
766482f
Adding command to allow preprovision script to run from codespaces te…
kylebunting Apr 14, 2025
ed3dc2b
Readme updates
kylebunting Apr 14, 2025
2d4f5d3
Adding chainlit md file
kylebunting Apr 14, 2025
bfaf46f
Including debugger launch config for chainlit on windows
kylebunting Apr 14, 2025
d9b51a6
Adding installation of Azure Function Core Tools to dev container
kylebunting Apr 14, 2025
79e18b2
Updating embedding model reference
kylebunting Apr 14, 2025
5f80e18
Adding cleanup section at end of readme
kylebunting Apr 14, 2025
94a3604
Updating VS Code extensions for codespaces
kylebunting Apr 14, 2025
4241d1a
Alphabetizing vscode extensions
kylebunting Apr 14, 2025
829d894
Adding trailing slash to openai url
kylebunting Apr 14, 2025
3d225ea
Updating VS Code extensions
kylebunting Apr 14, 2025
3fb2ce2
Moving some scripts to postCreate from postStart
kylebunting Apr 14, 2025
29244e0
Fixing typo
kylebunting Apr 14, 2025
58f4185
Fixing model deployment names
kylebunting Apr 14, 2025
28a29bc
Fixing vs code extensions
kylebunting Apr 14, 2025
e148a91
Moving azure functions core tools install
kylebunting Apr 14, 2025
28f1372
Adding a delay to poststart command to try to avoid func error
kylebunting Apr 14, 2025
eaebe20
Fixing poststart command
kylebunting Apr 14, 2025
188d2a7
Updating postStartCommand
kylebunting Apr 14, 2025
eb407f9
Adding task to install azure functions core tools
kylebunting Apr 14, 2025
dfb22a4
Moving python env setup out of dev container setup
kylebunting Apr 15, 2025
4360c5b
Removing azure functions tool install from tasks file
kylebunting Apr 15, 2025
84cb49b
Updating check for SQL auth
kylebunting Apr 15, 2025
24a31b0
Adding default database name
kylebunting Apr 15, 2025
51402a5
Readme updates
kylebunting Apr 15, 2025
f04bd0f
Readme updates
kylebunting Apr 15, 2025
21cd6a5
Adding ODBC install to devcontainer
kylebunting Apr 15, 2025
c77e428
Adding Azure login before running chainlit app
kylebunting Apr 15, 2025
0b53430
Removing odbc install from dev container
kylebunting Apr 15, 2025
76f6e23
Fixing indentation issues
kylebunting Apr 15, 2025
5dd401b
Adding code walkthrough
kylebunting Apr 15, 2025
0052236
Cleaning up whitespace at ends of lines
kylebunting Apr 15, 2025
774ad4d
Fixing typo
kylebunting Apr 15, 2025
1e112b9
Fixing typo
kylebunting Apr 15, 2025
c4091a3
Updating app.py function example
kylebunting Apr 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "RAG with Azure SQL Database, LangChain, LangGraph, and Chainlit",
"image": "mcr.microsoft.com/devcontainers/python:0-3.11-bullseye",
"features": {
"ghcr.io/azure/azure-dev/azd:latest": {},
"ghcr.io/devcontainers/features/azure-cli:1": {
"installBicep": true
},
"ghcr.io/devcontainers/features/common-utils": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "8.0"
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
},
"ghcr.io/devcontainers/features/powershell:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-azurefunctions",
"ms-azuretools.vscode-azureresourcegroups",
"ms-azuretools.vscode-bicep",
"ms-azuretools.vscode-docker",
"ms-dotnettools.csdevkit",
"ms-dotnettools.csharp",
"ms-dotnettools.vscode-dotnet-runtime",
"ms-python.python",
"ms-python.debugpy",
"ms-mssql.mssql"
],
"settings": {
"python.defaultInterpreterPath": "./chainlit/.venv/bin/python"
}
}
},
"postCreateCommand": "npm install -g azure-functions-core-tools@4 --unsafe-perm true && chmod +x ./infra/azd-hooks/preprovision.sh",
"remoteUser": "vscode",
"forwardPorts": [
7071,
8000
]
}
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@
"type": "coreclr",
"request": "attach",
"processId": "${command:azureFunctions.pickProcess}"
},
{
"name": "Chainlit Debugger (Windows)",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/chainlit/.venv/Scripts/chainlit.exe",
"args": [
"run",
"${workspaceFolder}/chainlit/app.py"
],
"jinja": true,
"env": {
"PYTHONPATH": "${workspaceFolder}/chainlit"
},
"python": "${workspaceFolder}/chainlit/.venv/Scripts/python.exe",
}
]
}
81 changes: 81 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Contributing to [project-title]

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

- [Code of Conduct](#coc)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Submission Guidelines](#submit)

## <a name="coc"></a> Code of Conduct

Help us keep this project open and inclusive. Please read and follow our [Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

## <a name="issue"></a> Found an Issue?

If you find a bug in the source code or a mistake in the documentation, you can help us by
[submitting an issue](#submit-issue) to the GitHub Repository. Even better, you can
[submit a Pull Request](#submit-pr) with a fix.

## <a name="feature"></a> Want a Feature?

You can *request* a new feature by [submitting an issue](#submit-issue) to the GitHub
Repository. If you would like to *implement* a new feature, please submit an issue with
a proposal for your work first, to be sure that we can use it.

* **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).

## <a name="submit"></a> Submission Guidelines

### <a name="submit-issue"></a> Submitting an Issue

Before you submit an issue, search the archive, maybe your question was already answered.

If your issue appears to be a bug, and hasn't been reported, open a new issue.
Help us to maximize the effort we can spend fixing issues and adding new
features, by not reporting duplicate issues. Providing the following information will increase the
chances of your issue being dealt with quickly:

* **Overview of the Issue** - if an error is being thrown a non-minified stack trace helps
* **Version** - what version is affected (e.g. 0.1.2)
* **Motivation for or Use Case** - explain what are you trying to do and why the current behavior is a bug for you
* **Browsers and Operating System** - is this a problem with all browsers?
* **Reproduce the Error** - provide a live example or a unambiguous set of steps
* **Related Issues** - has a similar issue been reported before?
* **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
causing the problem (line of code or commit)

You can file new issues by providing the above information at the corresponding repository's issues link: https://github.com/[organization-name]/[repository-name]/issues/new].

### <a name="submit-pr"></a> Submitting a Pull Request (PR)

Before you submit your Pull Request (PR) consider the following guidelines:

* Search the repository (https://github.com/[organization-name]/[repository-name]/pulls) for an open or closed PR
that relates to your submission. You don't want to duplicate effort.

* Make your changes in a new git fork:

* Commit your changes using a descriptive commit message
* Push your fork to GitHub:
* In GitHub, create a pull request
* If we suggest changes then:
* Make the required updates.
* Rebase your fork and force push to your GitHub repository (this will update your Pull Request):

```shell
git rebase master -i
git push -f
```

That's it! Thank you for your contribution!
Loading