Datasets:
_id stringlengths 22 179 | text stringlengths 1 15.2k | metadata dict |
|---|---|---|
azure-openai-samples/LICENSE_0_1070 | MIT License
Copyright (c) 2023 Azure Samples
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | {
"end_byte": 1070,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/LICENSE"
} |
azure-openai-samples/CONTRIBUTING.md_0_3941 | # 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.microso... | {
"end_byte": 3941,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/CONTRIBUTING.md"
} |
azure-openai-samples/LICENSE.md_0_1140 | MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy,... | {
"end_byte": 1140,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/LICENSE.md"
} |
azure-openai-samples/CHANGELOG.md_0_135 | ## [project-title] Changelog
<a name="x.y.z"></a>
# x.y.z (yyyy-mm-dd)
*Features*
* ...
*Bug Fixes*
* ...
*Breaking Changes*
* ...
| {
"end_byte": 135,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/CHANGELOG.md"
} |
azure-openai-samples/README.md_0_5857 | > **Note:**
> This repository is a work in progress and will be updated frequently.
# Azure AI Foundry, Agents, and Azure OpenAI Service Samples
This repository provides practical resources and code samples for building solutions with [Azure OpenAI Service](https://azure.microsoft.com/en-us/products/ai-services/opena... | {
"end_byte": 5857,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/README.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/LICENSE_0_1072 | MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | {
"end_byte": 1072,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/LICENSE"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/LICENSE-DATA.md_0_2353 | Community Data License Agreement - Permissive - Version 2.0
This is the Community Data License Agreement - Permissive, Version 2.0 (the "agreement"). Data Provider(s) and Data Recipient(s) agree as follows:
1. Provision of the Data
1.1. A Data Recipient may use, modify, and share the Data made available by Data Prov... | {
"end_byte": 2353,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/LICENSE-DATA.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/LICENSE.md_0_1072 | MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... | {
"end_byte": 1072,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/LICENSE.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/ARCHITECTURE.md_0_9289 | ## SOLUTION CAPABILITIES
## Table of Contents
- [System Architecture](#system-architecture)
- [Microservice and AI Skills](#microservice-and-ai-skills)
- [Ingestion Service](#ingestion-service)
- [Search Service](#search-service)
- [Session Manager](#session-manager)
- [Orchestrator](#orchestrator)
- [Conf... | {
"end_byte": 9289,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/ARCHITECTURE.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/SETUP.md_0_7235 | # Getting Started
## Table of Contents
- [Setting Up Azure Resources](#setting-up-azure-resources)
- [Prerequisites](#prerequisites)
- [Deployment Steps](#deployment-steps)
- [Azure Manual Configuration](#azure-manual-configuration)
- [Azure OpenAI](#azure-openai)
- [Azure AI Search](#azure-ai-search)
... | {
"end_byte": 7235,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/SETUP.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/SETUP.md_7235_15114 | ### Azure Manual Configuration
#### Azure OpenAI
1. To work with Azure OpenAI, developers need the `Azure AI Developer` role permission granted via Access control tab.
2. In order to access Azure OpenAI resource from other resources such as services running within AKS, one of the following roles need to be assigned:
... | {
"end_byte": 15114,
"start_byte": 7235,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/SETUP.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/SETUP.md_15114_21589 | ### Project Initialization
1. Clone this repo into a new folder and open the root folder in VS Code.
2. On VSCode termnial, login to Azure by running following commands:
- Enter `azd auth login` and a browser should open
- Select your Azure account:
- 
- E... | {
"end_byte": 21589,
"start_byte": 15114,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/SETUP.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/SETUP.md_21589_27878 | ## Deploying Services to Azure
### Azure Kubernetes Setup
**Note:**
Setting up the Azure Kubernetes Service (AKS) and application gateway is only needed if you want the services to be deployed to cloud. Users can proceed with setting up the keyvault and then follow the instructions to [run the solution locally in VSCo... | {
"end_byte": 27878,
"start_byte": 21589,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/SETUP.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/SETUP.md_27878_34366 | ### Keyvault
1. To work with keyvault, developers will need GET, LIST and SET permissions to keyvault secrets. Refer [AKS](#azure-kubernetes-setup) to grant these permissions via access policies tab.
2. Navigate through `config.py` files across micro-services in the `<repo root>\Advanced_RAG\src` folder: config_hub, sk... | {
"end_byte": 34366,
"start_byte": 27878,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/SETUP.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/SETUP.md_34366_39271 | ## Build Your Own Copilot
You can easily modify system based on your needs to create your own copilot, from adding your own data for ingestion to adding skills.
- Ingestion Service:
You can bring your own data with your own fields. For this just make sure to update storage container so that index has desired fields. ... | {
"end_byte": 39271,
"start_byte": 34366,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/SETUP.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/FAQ.md_0_7522 | # FAQ
### Why did my deployment fail?
<!-- From infra README-->
In most cases the deployment will fail due to unavailability of certain resources in certain regions. The `azd provision` command will output the following:
1. Deployment URL, which you can click on and browse to see the details of the deployment and any ... | {
"end_byte": 7522,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/FAQ.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/README.md_0_7062 | # Advanced RAG Solution Accelerator
This solution accelerator supports advanced techniques for parsing, indexing and improved querying over non-structured data through a simple web interface to achieve improved accuracy and performance rates than a simple out of the box Retrieval-Augmented Generation (RAG) solution.
... | {
"end_byte": 7062,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/README.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/azure.yaml_0_465 | # yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: multimodal-bot-demo
metadata:
template: azure-search-openai-demo@0.0.2-beta
hooks:
preprovision:
shell: pwsh
run: Install-Module AzureAD -Force;Connect-AzAccount;$principalId = (Get-AzA... | {
"end_byte": 465,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/azure.yaml"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/main.bicep_0_8783 | targetScope = 'subscription'
@minLength(1)
@maxLength(64)
@description('Name of the the environment which is used to generate a short unique hash used in all resources.')
param environmentName string
@minLength(1)
@description('Primary location for all resources')
param location string
@description('Default resource... | {
"end_byte": 8783,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/main.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/main.bicep_8785_10465 | // Create an App Service Plan to group applications under the same payment plan and SKU
module appServicePlan 'core/host/appserviceplan.bicep' = {
name: 'appserviceplan'
scope: resourceGroup
params: {
name: !empty(appServicePlanName) ? appServicePlanName : '${abbrs.webServerFarms}${resourceToken}'
locatio... | {
"end_byte": 10465,
"start_byte": 8785,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/main.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/main.bicep_10468_13543 | module openAi 'core/ai/cognitiveservices.bicep' = {
name: 'openai'
scope: openAiResourceGroup
params: {
name: !empty(openAIResourceName) ? openAIResourceName : '${abbrs.cognitiveServicesOpenAI}${resourceToken}'
location: openAIResourceGroupLocation
tags: tags
sku: {
name: openAiSkuName
}... | {
"end_byte": 13543,
"start_byte": 10468,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/main.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/main.bicep_13546_21151 | // ToDo: Fix issue through portal - accept RAI. Unable to achieve this through bicep, issue - https://github.com/hashicorp/terraform-provider-azurerm/issues/23580
module multiAccountCogService 'core/ai/cognitiveservices.bicep' = {
name: 'multiaccountcogservice'
scope: multiAccountCogServiceResourceGroup
params: {... | {
"end_byte": 21151,
"start_byte": 13546,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/main.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/main.bicep_21154_22374 | // module azureOpenAIEmbeddingsEngineName 'core/keyvault/keyvault-secret.bicep' = {
// name: 'openai-secret-embeddings-engine-name'
// scope: resourceGroup
// params: {
// keyVaultName: keyVault.outputs.name
// secretName: 'AZURE-OPENAI-EMBEDDINGS-ENGINE-NAME'
// secretValue: embeddingsGptModelName
//... | {
"end_byte": 22374,
"start_byte": 21154,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/main.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/aks_app_gateway_ingress.yaml_0_1103 | apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: session-manager-ingress-https
annotations:
kubernetes.io/ingress.class: azure/application-gateway
appgw.ingress.kubernetes.io/request-timeout: "300"
cert-manager.io/cluster-issuer: letsencrypthttp
cert-manager.io/acme-challenge-type: htt... | {
"end_byte": 1103,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/aks_app_gateway_ingress.yaml"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/secrets_provider.yaml_0_438 | apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: kv-secrets-provider
namespace: default
spec:
provider: azure
parameters:
usePodIdentity: "false"
useVMManagedIdentity: "true"
keyvaultName: {{KEYVAULTNAME}}
cloudName: ""
objects: |
array:
- |
... | {
"end_byte": 438,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/secrets_provider.yaml"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/redis_deployment.yaml_0_611 | apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: redis:latest
ports:
- containerPort: 6379
env:
... | {
"end_byte": 611,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/redis_deployment.yaml"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/cluster_issuer.yaml_0_413 | apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypthttp
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory # Replace with https://acme-staging-v02.api.letsencrypt.org/directory for staging
email: <EMAIL-ADDRESS>
privateKeySecretRef:
name: letsencrypthttp-... | {
"end_byte": 413,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/cluster_issuer.yaml"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/aks_nginx_ingress.yaml_0_749 | apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: enterprise-bot-ingress
annotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
nginx.ingress.kubernetes.io/upstream-keepalive-timeout: "600"
nginx.ingress.kubernetes.io/kee... | {
"end_byte": 749,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/aks_post_provision/aks_nginx_ingress.yaml"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/roles/aks-vnet-role-assignment.bicep_0_639 | // roleAssignment.bicep
// param principalId string
// param roleDefinitionId string = subscriptionResourceId(
// 'Microsoft.Authorization/roleDefinitions',
// 'b24988ac-6180-42a0-ab88-20f7382dd24c' // Network Contributor role
// )
// param resourceScope resource
// var roleAssignmentGuid = guid(resourceScope.id,... | {
"end_byte": 639,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/roles/aks-vnet-role-assignment.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/keyvault/keyvault.bicep_0_2964 | param name string
param location string = resourceGroup().location
param tags object = {}
param sku object = {
family: 'A'
name: 'standard'
}
param enabledForDeployment bool = true
param enabledForDiskEncryption bool = false
param enabledForTemplateDeployment bool = true
param principalId string
param createPrivat... | {
"end_byte": 2964,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/keyvault/keyvault.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/keyvault/keyvault-secret.bicep_0_272 | // key-vault-secret.bicep
param keyVaultName string
param secretName string
@secure()
param secretValue string
resource keyVaultSecret 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = {
name: '${keyVaultName}/${secretName}'
properties: {
value: secretValue
}
}
| {
"end_byte": 272,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/keyvault/keyvault-secret.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/keyvault/keyvault-access-policy.bicep_0_356 | param keyVaultName string
param accessPolicies array = []
resource symbolicname 'Microsoft.KeyVault/vaults/accessPolicies@2022-07-01' = {
name: 'replace'
parent: keyVault
properties: {
accessPolicies: accessPolicies
}
}
resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' existing = if (!(empty(keyVau... | {
"end_byte": 356,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/keyvault/keyvault-access-policy.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/search/search-services.bicep_0_4800 | param name string
param searchIndexName string
param location string = resourceGroup().location
param tags object = {}
param sku object = {
name: 'standard'
}
// param authOptions object = {}
// param semanticSearch string = 'disabled'
param kbFieldsContent string
param kbFieldsCategory string
param kbFieldsSource... | {
"end_byte": 4800,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/search/search-services.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/host/appserviceplan.bicep_0_421 | param name string
param location string = resourceGroup().location
param tags object = {}
param kind string = ''
param reserved bool = true
param sku object
resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
name: name
location: location
tags: tags
sku: sku
kind: kind
properties: {
res... | {
"end_byte": 421,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/host/appserviceplan.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/host/appservice.bicep_0_3503 | param name string
param location string = resourceGroup().location
param tags object = {}
// Reference Properties
param applicationInsightsName string = ''
param appServicePlanId string
param keyVaultName string = ''
param managedIdentity bool = !empty(keyVaultName)
// Runtime Properties
@allowed([
'dotnet', 'dotne... | {
"end_byte": 3503,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/host/appservice.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/host/container-webapp.bicep_0_3687 | param name string
param location string = resourceGroup().location
param tags object = {}
param appServicePlanId string
param applicationInsightsName string = ''
param keyVaultName string = ''
param managedIdentity bool = !empty(keyVaultName)
param containerRegistryUrl string
param containerImageName string
// Micros... | {
"end_byte": 3687,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/host/container-webapp.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/host/appservice-config.bicep_0_698 | param appServiceName string = ''
param allowedIpAddresses array = []
var accessRules = [for ip in allowedIpAddresses: {
name: 'Allow ${ip}'
description: 'Allow access from ${ip}'
action: 'Allow'
priority: 1
ipAddress: '${ip}/8'
}]
resource webConfig 'Microsoft.Web/sites/config@2022-03-01' = {
name: 'web'
... | {
"end_byte": 698,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/host/appservice-config.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/storage/storage-account.bicep_0_5157 | param name string
param storageContainerName string
param storageImageContainerName string
param location string = resourceGroup().location
param tags object = {}
@allowed([ 'Hot', 'Cool', 'Premium' ])
param accessTier string = 'Hot'
param allowBlobPublicAccess bool = false
param allowCrossTenantReplication bool = tru... | {
"end_byte": 5157,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/storage/storage-account.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/containerregistry/containerregistry.bicep_0_830 | param name string
param sku string = 'Standard'
param location string = resourceGroup().location
param tags object = {}
@description('Key Vault ID')
param keyVaultName string = ''
@description('Add keys to Key Vault')
param addKeysToVault bool = false
resource containerRegistry 'Microsoft.ContainerRegistry/registrie... | {
"end_byte": 830,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/containerregistry/containerregistry.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/logging/appinsights.bicep_0_1602 | @description('Azure region of the deployment')
param location string = resourceGroup().location
@description('Tags to add to the resources')
param tags object = {}
@description('Application Insights resource name')
param applicationInsightsName string
@description('Log Analytics resource name')
param logAnalyticsWor... | {
"end_byte": 1602,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/logging/appinsights.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/security/role.bicep_0_549 | param principalId string
@allowed([
'Device'
'ForeignGroup'
'Group'
'ServicePrincipal'
'User'
])
param principalType string = 'ServicePrincipal'
param roleDefinitionId string
param resourceGroupName string
resource role 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(subscription().id,... | {
"end_byte": 549,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/security/role.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/aks/aks.bicep_0_2974 | var sku = {
name: 'Base'
tier: 'Standard'
}
param location string = ''
param aksName string = ''
param dnsPrefix string = ''
param agentPoolVMSize string = ''
param userPoolVMSize string = ''
param tags object = {
Purpose: ''
}
param kubernetesVersion string = ''
param appGatewayName string = ''
param appGateway... | {
"end_byte": 2974,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/aks/aks.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/ai/cognitiveservices.bicep_0_3745 | param name string
param location string = resourceGroup().location
param tags object = {}
@description('Cognitive Service Type')
@allowed([ 'CognitiveServices', 'AIServices', 'ContentSafety', 'FormRecognizer' ])
param kind string = 'CognitiveServices'
param customSubDomainName string = name
param deployments array = ... | {
"end_byte": 3745,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/ai/cognitiveservices.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/database/cosmos-database.bicep_0_6186 | // cosmos-database.bicep
targetScope = 'resourceGroup'
@description('Name of Cosmos DB Account')
param cosmosAccountName string
@description('Key Vault Name')
param keyVaultName string = ''
@description('Add keys to Key Vault')
param addKeysToVault bool = false
@description('Location for the resources')
param locat... | {
"end_byte": 6186,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/database/cosmos-database.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/infra/core/network/vnet.bicep_0_1927 | // Define parameters
param location string = resourceGroup().location
param vnetName string
param appGatewaySubnetName string
param aksSubnetName string
param endpointsSubnetName string
param addressSpace string
param appGatewaySubnetPrefix string
param aksSubnetPrefix string
param endpointsSubnetPrefix string
@descri... | {
"end_byte": 1927,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/infra/core/network/vnet.bicep"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/kql_queries.md_0_3732 | # Overview
This document has KQL queries to help extract data from application insights
## Get all inputs and outputs from AOAI calls:
The application makes AOAI calls for two purposes:
1. To rephrase user input
2. To generate the final answer.
Below KQL query will produce inputs and outputs for both AOAI call for ea... | {
"end_byte": 3732,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/kql_queries.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/kql_duration_breakdown_rag.md_0_1583 |
## Get duration breakdown for RAG based bot:
```
let conv_dialogs =
traces
| extend conversation_id = tostring(customDimensions.conversation_id)
| extend dialog_id = tostring(customDimensions.dialog_id)
| where * contains "demo:" // add additional filters here
| where tostring(customDimensions.dialog_id) !in ("")
| ... | {
"end_byte": 1583,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/kql_duration_breakdown_rag.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/secure_runtime_architecture.md_0_1772 | # Deployment and Runtime Architecture for Copilot

## Deployment Flow
1. **Code Integration**: Developers commit changes to a repository managed by Azure DevOps, triggering automated build and deployment pipelines.
2. **Containerization**: Applications ... | {
"end_byte": 1772,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/secure_runtime_architecture.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/logging.md_0_2905 | # Logging and Instrumentation
Logging using application insights is currently enabled on all core microservices and skills.
In addition to basic logging, certain custom fields are used to help trace end to end logs in the core microservices for every user session and interaction. This is done by passing three fields f... | {
"end_byte": 2905,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/logging.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/kql_duration_breakdown.md_0_7856 |
## Get duration breakdown for RAG based bot:
```
let conv_dialogs =
traces
| extend conversation_id = tostring(customDimensions.conversation_id)
| extend dialog_id = tostring(customDimensions.dialog_id)
| where * contains "22_Sep"
| where tostring(customDimensions.dialog_id) !in ("")
| distinct conversation_id, dial... | {
"end_byte": 7856,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/kql_duration_breakdown.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/CHANGELOG.md_0_96 | [project-title] Changelog
x.y.z (yyyy-mm-dd)
Features
...
Bug Fixes
...
Breaking Changes
... | {
"end_byte": 96,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/CHANGELOG.md"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/services/search_service.http_0_2059 |
###
# post a RAG search request with overrides and filters
POST {{search_service_url}}/search
Accept: application/json
Content-Type: application/json
{
"search_queries": [
{
"search_query": "What was the revenue and revenue growth for IHC in the financial year 2023?",
"filter":
{
... | {
"end_byte": 2059,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/services/search_service.http"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/services/e2e_nightly_test_agent.http_0_550 | ### Health Check
GET {{end-2-end-test-agent-url}}/e2etest
### Run Test Agent Manually
GET {{end-2-end-test-agent-url}}/e2etest/run
### Get All Scheduled Jobs
GET {{end-2-end-test-agent-url}}/e2etest/jobs
### Clear All Scheduled Jobs
POST {{end-2-end-test-agent-url}}/e2etest/jobs/clear
### Schedule a Job
POST {{end-... | {
"end_byte": 550,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/services/e2e_nightly_test_agent.http"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/services/config_service.http_0_3229 | ###
# check service is running
GET {{configuration_service_url}}/configuration-service
###
# List search configurations available
GET {{configuration_service_url}}/configuration-service/configs/search_runtime
###
# List orchestrator configurations available
GET {{configuration_service_url}}/configuration-service/con... | {
"end_byte": 3229,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/services/config_service.http"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/services/data_service.http_0_148 | ###
# get all user-profiles
GET {{data_service_url}}/user-profiles
###
# get single user-profiles
GET {{data_service_url}}/user-profiles/anonymous | {
"end_byte": 148,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/services/data_service.http"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/services/session_manager.http_0_1809 |
###
# post a rag conversation
POST {{session_manager_url}}/chat?scenario=rag
Accept: application/json
Content-Type: application/json
{
"user_id": "anonymous",
"conversation_id": "pm_test_msg_01",
"dialog_id": "dialog1",
"message": {
"payload": [
{
"type": "text",
... | {
"end_byte": 1809,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/services/session_manager.http"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/services/orchestrator_service.http_0_499 |
###
# post a search configuration
POST {{rag_orchestrator_service_url}}/start
Accept: application/json
Content-Type: application/json
{
"user_id": "user1",
"conversation_id": "conversation1",
"dialog_id": "dialog1",
"messages": [
{"role": "user", "content": "What was the revenue for year 2023 for IHC"}
... | {
"end_byte": 499,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/services/orchestrator_service.http"
} |
azure-openai-samples/Solution_Accelerators/Advanced_RAG/docs/services/ingestion_service_rag.http_0_577 | ###
# ingestion health check
GET {{ingestion_service_url}}/indexer
###
# post an ingestion request
POST {{ingestion_service_url}}/indexer/index
Content-Type: application/json
{
"storage_container_name": "content",
"index_name": "microsoft-financial-index",
"payload": {
"filename": "2023_Annual_Report.pdf",
... | {
"end_byte": 577,
"start_byte": 0,
"url": "https://github.com/Azure-Samples/openai/blob/3e9b2798ad17cf3ba28490f62f2fc455f2c612f2/Solution_Accelerators/Advanced_RAG/docs/services/ingestion_service_rag.http"
} |
End of preview. Expand in Data Studio
langchain-corpus-2025
LangChain documentation corpus from October 2025 snapshot. Contains chunked documentation with metadata for retrieval tasks.
Dataset Structure
Each entry in the dataset contains:
_id: Unique identifier for the document chunktext: The text content of the chunkmetadata: Dictionary containing:end_byte: End byte position in the original filestart_byte: Start byte position in the original fileurl: GitHub URL to the source file
Usage
from datasets import load_dataset
dataset = load_dataset("ngkuissi/langchain-corpus-2025")
Source
This dataset was created from GitHub repository snapshots.
- Downloads last month
- 5