Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 2cc82ed

Browse files
committed
Add AI-related documentation and update redirections
- Introduced "Intelligent Applications and AI" FAQ document. - Updated "Intelligent Applications and AI" main document. - Adjusted redirection settings for AI documentation. - Modified table of contents to include AI sections.
1 parent f0f019e commit 2cc82ed

6 files changed

Lines changed: 94 additions & 11 deletions

File tree

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10640,6 +10640,11 @@
1064010640
"sql-server-ver16"
1064110641
]
1064210642
},
10643+
{
10644+
"source_path": "docs/sql-server/ai-artificial-intelligence-intelligent-applications.md",
10645+
"redirect_url": "/sql/sql-server/artificial-intelligence-intelligent-applications.md",
10646+
"redirect_document_id": false
10647+
},
1064310648
{
1064410649
"source_path": "docs/sql-server/sql-server-privacy-ver15.md",
1064510650
"redirect_url": "/sql/sql-server/sql-server-privacy",

docs/relational-databases/vectors/vectors-faq.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: wiassaf
66
ms.reviewer: damauri, mikeray
77
ms.date: 07/24/2025
88
ms.service: sql
9-
ms.topic: language-reference
9+
ms.topic: faq
1010
ms.collection:
1111
- ce-skilling-ai-copilot
1212
ms.custom:
@@ -120,3 +120,4 @@ Review the self-paced [Azure SQL Cryptozoology AI Embeddings](https://devblogs.m
120120
- [CREATE VECTOR INDEX (Transact-SQL)](../../t-sql/statements/create-vector-index-transact-sql.md)
121121
- [Azure SQL Database Vector Search Samples](https://github.com/Azure-Samples/azure-sql-db-vector-search)
122122
- [Intelligent applications with Azure SQL Database](/azure/azure-sql/database/ai-artificial-intelligence-intelligent-applications)
123+
- [Intelligent applications and AI Frequently Asked Questions (FAQ)](../../sql-server/artificial-intelligence-intelligent-applications-faq.md)
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: Intelligent Applications and AI Frequently Asked Questions (FAQ)
3+
description: "Answers to common questions about using AI with the SQL Database Engine."
4+
author: yorek
5+
ms.author: damauri
6+
ms.reviewer: damauri, randolphwest, mathoma
7+
ms.date: 08/14/2025
8+
ms.update-cycle: 180-days
9+
ms.service: sql
10+
ms.topic: faq
11+
ms.collection:
12+
- ce-skilling-ai-copilot
13+
ms.custom:
14+
- intro-quickstart
15+
helpviewer_keywords:
16+
- "NL2SQL"
17+
- "Natural Language"
18+
- "Intelligent Applications"
19+
- "AI"
20+
monikerRange: "=sql-server-ver17 || =sql-server-linux-ver17 || =azuresqldb-current || =azuresqldb-mi-current || =fabric"
21+
---
22+
23+
# Intelligent applications and AI Frequently Asked Questions (FAQ)
24+
25+
[!INCLUDE [sqlserver2025-asdb-asmi-fabricsqldb](../includes/applies-to-version/sqlserver2025-asdb-asmi-fabricsqldb.md)]
26+
27+
> [!div class="op_single_selector"]
28+
>
29+
> - [Azure SQL Database](/azure/azure-sql/database/ai-artificial-intelligence-intelligent-applications)
30+
> - [SQL Server & Azure SQL Managed Instance](artificial-intelligence-intelligent-applications.md)
31+
32+
This article contains frequently asked questions about vectors and embeddings in the SQL Database Engine.
33+
34+
For samples and examples, visit the [SQL AI Samples repository](https://aka.ms/sqlaisamples).
35+
36+
## Can I create a retrieval-augmented generation (RAG) solution completely in T-SQL?
37+
38+
Yes, you can create a Retrieval-Augmented Generation (RAG) solution using T-SQL. This type of solution leverages the SQL Database Engine's capabilities to manage and query your data effectively. You can use T-SQL to implement the necessary data retrieval and processing logic, while also integrating with external AI services for the generation aspect. Vector can be stored natively in SQL engine and connection to LLM to provide the natural language understand capabilities are possible via `sp_invoke_external_rest_endpoint`.
39+
40+
- [Implement a RAG solution and call OpenAI right from Azure SQL DB to ask questions about your data](https://github.com/Azure-Samples/azure-sql-db-chatbot)
41+
- [Predictable LLM results with Structured Output and sp_invoke_external_rest_endpoint](https://devblogs.microsoft.com/azure-sql/predictable-llm-output-with-sp_invoke_external_rest_endpoint/)
42+
43+
## Why would I create a RAG solution completely in T-SQL?
44+
45+
If you want to improve an existing application without having to re-architect it to support AI capabilities, use the SQL engine built-in features to implement AI functionalities directly within your database queries. You'll only need to update your T-SQL code to incorporate AI features, rather than making extensive changes to your application architecture.
46+
47+
- [Migrate and modernize Windows Server, SQL Server, and .NET workloads](https://www.youtube.com/watch?v=H_2OgOL3fpo&t=982s)
48+
- [Modernize applications with Azure SQL, Open AI and Data API builder](https://github.com/Azure-Samples/azure-sql-modernize-app-with-ai)
49+
50+
## Are there any end-to-end samples using Azure SQL or Fabric SQL for RAG?
51+
52+
Sure, you can find end-to-end samples for RAG using Azure SQL and Fabric SQL here:
53+
54+
- [RAG samples using Azure SQL](https://ai.awesome.azuresql.dev/?q=Azure%20SQL%20samples%20tagged%20with%20%22RAG%22)
55+
- [RAG samples using Fabric SQL](https://ai.awesome.azuresql.dev/?q=Fabric%20SQL%20samples%20tagged%20with%20%22RAG%22)
56+
57+
## Can I have RAG working on structured data, like columns and rows?
58+
59+
If you need to work with structured data, you can still leverage RAG by combining it with other techniques, such as using embeddings to represent your structured data in a way that can be understood by the AI model. This allows you to perform retrieval and generation tasks on structured data while still benefiting from the capabilities of RAG.
60+
61+
- [Improve the “R” in RAG and embrace Agentic RAG in Azure SQL](https://devblogs.microsoft.com/azure-sql/improve-the-r-in-rag-and-embrace-agentic-rag-in-azure-sql/)
62+
63+
## Why does sending a full, complex schema to an LLM lead to poor SQL generation—and how can I fix it?
64+
65+
If you have a complex and large database schema, with hundreds of tables and views, it is better to use a multi-agent approach to help to reduce the noise and allow AI models to focus on specific areas of the schema. A full description along with a working end-to-end sample is available here:
66+
67+
- [A story of collaborating agents: chatting with your database the right way](https://devblogs.microsoft.com/azure-sql/a-story-of-collaborating-agents-chatting-with-your-database-the-right-way/)
68+
69+
## Related content
70+
71+
- [Intelligent applications and AI](./artificial-intelligence-intelligent-applications.md)
72+
- [Vector and embeddings: Frequently asked questions (FAQ)](../relational-databases/vectors/vectors-faq.md)
73+
- [SQL AI Samples and Examples](https://aka.ms/sqlaisamples)

docs/sql-server/ai-artificial-intelligence-intelligent-applications.md renamed to docs/sql-server/artificial-intelligence-intelligent-applications.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: Intelligent Applications and AI
33
description: "Use AI options such as OpenAI and vectors to build intelligent applications with SQL Server and Azure SQL Managed Instance."
44
author: MashaMSFT
55
ms.author: mathoma
6-
ms.reviewer: damauri, josephsack, randolphwest, mathoma
7-
ms.date: 07/31/2025
6+
ms.reviewer: damauri, randolphwest, mathoma
7+
ms.date: 08/14/2025
88
ms.update-cycle: 180-days
99
ms.service: sql
1010
ms.topic: conceptual
@@ -15,9 +15,10 @@ ms.custom:
1515
---
1616
# Intelligent applications and AI
1717

18-
[!INCLUDE [sqlserver2025-asdb-asmi-fabricsqldb](../includes/applies-to-version/sqlserver2025-asmi.md)]
18+
[!INCLUDE [sqlserver2025-asdb-asmi-fabricsqldb](../includes/applies-to-version/sqlserver2025-asdb-asmi-fabricsqldb.md)]
1919

2020
> [!div class="op_single_selector"]
21+
>
2122
> * [Azure SQL Database](/azure/azure-sql/database/ai-artificial-intelligence-intelligent-applications)
2223
> * [SQL Server & Azure SQL Managed Instance](ai-artificial-intelligence-intelligent-applications.md)
2324
@@ -115,9 +116,7 @@ EXEC @retval = sp_invoke_external_rest_endpoint @url = 'https://<openai-url>/ope
115116
@payload = @payload,
116117
@response = @response OUTPUT;
117118

118-
SELECT CAST([key] AS INT) AS [vector_value_id],
119-
CAST([value] AS FLOAT) AS [vector_value]
120-
FROM OPENJSON(JSON_QUERY(@response, '$.result.data[0].embedding'));
119+
DECLARE @e VECTOR(1536) = JSON_QUERY(@response, '$.result.data[0].embedding');
121120
```
122121

123122
Using a call to a REST service to get embeddings is just one of the integration options you have when working with SQL Managed Instance and OpenAI. You can let any of the [available models](/azure/ai-services/openai/concepts/models) access data stored in the SQL Database Engine to create solutions where your users can interact with the data, such as the following example:
@@ -201,9 +200,10 @@ An example of how easily Semantic Kernel helps to build AI-enabled solution is h
201200

202201
- [The ultimate chatbot?](https://devblogs.microsoft.com/azure-sql/the-ultimate-chatbot/): Build a chatbot on your own data using both NL2SQL and RAG patterns for the ultimate user experience.
203202

204-
205203
## Related content
206204

205+
- [Intelligent applications and AI Frequently Asked Questions (FAQ)](artificial-intelligence-intelligent-applications-faq.md)
206+
- [Vector and embeddings: Frequently asked questions (FAQ)](../relational-databases/vectors/vectors-faq.md)
207207
- [Create and deploy an Azure OpenAI Service resource](/azure/ai-services/openai/how-to/create-resource?pivots=web-portal)
208208
- [Embeddings models](/azure/ai-services/openai/concepts/models#embeddings-models)
209209
- [SQL AI Samples and Examples](https://aka.ms/sqlaisamples)

docs/sql-server/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ landingContent:
8080
- linkListType: overview
8181
links:
8282
- text: Overview
83-
url: ai-artificial-intelligence-intelligent-applications.md
83+
url: artificial-intelligence-intelligent-applications.md
8484
- text: Vectors
8585
url: ../relational-databases/vectors/vectors-sql-server.md
8686
- text: Copilot in SSMS

docs/toc.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ items:
1111
href: sql-server/what-is-sql-server.md
1212
- name: Connect to the Database Engine
1313
href: sql-server/connect-to-database-engine.md
14-
- name: Intelligent applications and AI
15-
href: sql-server/ai-artificial-intelligence-intelligent-applications.md
14+
- name: AI
15+
items:
16+
- name: Intelligent applications and AI
17+
href: sql-server/artificial-intelligence-intelligent-applications.md
18+
- name: Intelligent applications and AI FAQ
19+
href: sql-server/artificial-intelligence-intelligent-applications-faq.md
1620
- name: What's new?
1721
items:
1822
- name: SQL Server 2025 Preview

0 commit comments

Comments
 (0)