Giter VIP home page Giter VIP logo

azure-samples / azure-sql-db-session-recommender-v2 Goto Github PK

View Code? Open in Web Editor NEW
16.0 12.0 6.0 931 KB

Build a Retrieval Augmented Generation solution using OpenAI, Azure Functions, Azure Static Web Apps, Azure SQL DB, Data API builder and Text Embeddings

Home Page: https://ai.lasvegas.vslive.com/

License: MIT License

JavaScript 0.44% HTML 1.84% TypeScript 17.71% TSQL 7.81% PowerShell 0.91% C# 9.43% Bicep 60.58% Shell 1.28%
azure-functions azure-sql azure-sql-database data-api-builder open-ai retrieval-augmented-generation vectors

azure-sql-db-session-recommender-v2's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-sql-db-session-recommender-v2's Issues

using podman dev container fails with E: Unable to locate package azure-functions-core-tools-4

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Using podman rootful or rootless or docker with repo cloned on Windows 11

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 11 23H2 22631.3235
PODMAN

Versions

Mention any other details that might be useful

ERROR [dev_container_auto_added_stage_label 2/2] RUN curl https://packages.microsoft.com/keys/microsoft.a  35.5s
------
 > [dev_container_auto_added_stage_label 2/2] RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dear
mor > microsoft.gpg     && mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg     && sh -c 'echo "deb [arch=amd64]
 https://packages.microsoft.com/debian/$(lsb_release -rs | cut -d'.' -f 1)/prod $(lsb_release -cs) main" > /etc/apt/s
o`urces.list.d/dotnetdev.list'     && apt-get update && apt-get install -y azure-functions-core-tools-4     && apt-get
 clean -y && rm -rf /var/lib/apt/lists/*:
0.260   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
0.260                                  Dload  Upload   Total   Spent    Left  Speed
100   983  100   983    0     0    397      0  0:00:02  0:00:02 --:--:--   397
3.002 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
3.074 Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
3.102 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
3.286 Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8068 kB]
3.765 Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [269 kB]
3.781 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [18.8 kB]
6.561 Get:7 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
6.684 Get:8 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB]
6.720 Get:9 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.9 kB]
33.00 Err:10 https://packages.microsoft.com/debian/11/prod bullseye InRelease
33.00   Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 13.107.213.64 443]
33.02 Fetched 8603 kB in 30s (286 kB/s)
33.02 Reading package lists...
33.89 W: Failed to fetch https://packages.microsoft.com/debian/11/prod/dists/bullseye/InRelease  Could not wait for s
erver fd - select (11: Resource temporarily unavailable) [IP: 13.107.213.64 443]
33.89 W: Some index files failed to download. They have been ignored, or old ones used instead.
33.92 Reading package lists...
34.67 Building dependency tree...
34.97 Reading state information...
35.44 E: Unable to locate package azure-functions-core-tools-4
------
Dockerfile-with-features:5
--------------------
   4 |     FROM --platform=amd64 mcr.microsoft.com/devcontainers/${IMAGE} AS dev_container_auto_added_stage_label
   5 | >>> RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \
   6 | >>>     && mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg \
   7 | >>>     && sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/debian/$(lsb_release -rs | cut -d'.' -
f 1)/prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list' \
   8 | >>>     && apt-get update && apt-get install -y azure-functions-core-tools-4 \
   9 | >>>     && apt-get clean -y && rm -rf /var/lib/apt/lists/*
  10 |
--------------------
ERROR: failed to solve: process "/bin/sh -c curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >
microsoft.gpg     && mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg     && sh -c 'echo \"deb [arch=amd64] http
s://packages.microsoft.com/debian/$(lsb_release -rs | cut -d'.' -f 1)/prod $(lsb_release -cs) main\" > /etc/apt/sourc
es.list.d/dotnetdev.list'     && apt-get update && apt-get install -y azure-functions-core-tools-4     && apt-get cle
an -y && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
[878241 ms] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f C:\\AppData\Local\Temp\devcontainercli\container-features\0.56.2-1710777329920\Dockerfile-with-features -t vsc-azure-sql-db-session-recommender-v2-c360c9271e01c7daa29b5aa1e8d317eeae8192529bdd0c1a8ae3a4c7efeddb11 --target dev_containers_target_stage --build-arg IMAGE=dotnet:7.0-bullseye --build-context dev_containers_feature_content_source=C:\\AppData\Local\Temp\devcontainercli\container-features\0.56.2-1710777329920 --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp c:\\OneDrive\Documents\GitHub\ClonedForked\azure-sql-db-session-recommender-v2\.devcontainer
[878242 ms]     at BtA (\.vscode\extensions\ms-vscode-remote.remote-containers-0.348.0\dist\spec-node\devContainersSpecCLI.js:465:1933)
[878242 ms]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[878242 ms]     at async K0 (\.vscode\extensions\ms-vscode-remote.remote-containers-0.348.0\dist\spec-node\devContainersSpecCLI.js:464:1841)
[878242 ms]     at async yH (\.vscode\extensions\ms-vscode-remote.remote-containers-0.348.0\dist\spec-node\devContainersSpecCLI.js:464:610)
[878242 ms]     at async StA (\.vscode\extensions\ms-vscode-remote.remote-containers-0.348.0\dist\spec-node\devContainersSpecCLI.js:481:3660)
[878243 ms]     at async ZC (\.vscode\extensions\ms-vscode-remote.remote-containers-0.348.0\dist\spec-node\devContainersSpecCLI.js:481:4775)
[878243 ms]     at async trA (\.vscode\extensions\ms-vscode-remote.remote-containers-0.348.0\dist\spec-node\devContainersSpecCLI.js:614:11269)
[878243 ms]     at async erA (\.vscode\extensions\ms-vscode-remote.remote-containers-0.348.0\dist\spec-node\devContainersSpecCLI.js:614:11010)
[878310 ms] Exit code 1
[878326 ms] Command failed: C:\Program Files\Microsoft VS Code\Code.exe \.vscode\extensions\ms-vscode-remote.remote-containers-0.348.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --container-session-data-folder /tmp/devcontainers-9763582c-9822-48a9-8d59-855913d3e22a1710776938680 --workspace-folder redacted\azure-sql-db-session-recommender-v2 --workspace-mount-consistency cached --id-label devcontainer.local_folder=redact3ed\azure-sql-db-session-recommender-v2 --id-label devcontainer.config_file=redactedazure-sql-db-session-recommender-v2\.devcontainer\devcontainer.json --log-level debug --log-format json --config REDACTEDClonedForked\azure-sql-db-session-recommender-v2\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --mount type=bind,source=\\wsl.localhost\Ubuntu\mnt\wslg\runtime-dir\wayland-0,target=/tmp/vscode-wayland-ede0854e-023c-4954-bfb5-d9b42db9c71a.sock --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root --terminal-columns 117 --terminal-rows 21
[878326 ms] Exit code 1

Thanks! We'll be in touch soon.

using docker - devcontainer fails azd up with MSBuild version 17.7.4+3ebbd7c49 for .NET

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

open dev ocntainer on windows azd login and then azd up

Any log messages given by the failure

Packaging services (azd package)

(x) Failed: Packaging service functionapp

ERROR: failed packaging service 'functionapp': failing invoking action 'package', dotnet >publish on project '/workspaces/azure-sql-db-session-recommender-v2->1/func/RequestHandler.csproj' failed: exit code: 1, stdout: MSBuild version 17.7.4+3ebbd7c49 >or .NET
Determining projects to restore...

/usr/share/dotnet/sdk/7.0.406/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFramewor
kInference.targets(160,5): error NETSDK1045: The current .NET SDK does not support >targeting .NET 8.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that >supports .NET 8.0. Download the .NET SDK from https://aka.ms/dotnet/download
[/workspaces/azure-sql-db-session-recommender-v2-1/func/RequestHandler.csproj]
, stderr:

ERROR: error executing step command 'package --all': failed packaging service 'functionapp': >failing invoking action 'package', dotnet publish on project '/workspaces/azure-sql-db->session-recommender-v2-1/func/RequestHandler.csproj' failed: exit code: 1, stdout: MSBuild >version 17.7.4+3ebbd7c49 for .NET
Determining projects to restore...
/usr/share/dotnet/sdk/7.0.406/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFramewor>kInference.targets(160,5): error NETSDK1045: The current .NET SDK does not support targeting >.NET 8.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET >8.0. Download the .NET SDK from https://aka.ms/dotnet/download [/workspaces/azure-sql->db-session-recommender-v2-1/func/RequestHandler.csproj]
, stderr:
vscode โžœ /workspaces/azure-sql-db-session-recommender-v2-1 (main) $

Expected/desired behavior

OS and Version?

Windows 11 23H2

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

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.