diff --git a/pom.xml b/pom.xml
index d49748a8..b4d79724 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,6 +16,8 @@
spring-ai-alibaba-core
spring-ai-alibaba-starter
+ spring-ai-alibaba-examples
+ spring-ai-alibaba-examples/usercase-example/generate-sql-queries
diff --git a/spring-ai-alibaba-examples/README-zh.md b/spring-ai-alibaba-examples/README-zh.md
new file mode 100644
index 00000000..0a5d20f6
--- /dev/null
+++ b/spring-ai-alibaba-examples/README-zh.md
@@ -0,0 +1,14 @@
+## Spring AI Alibaba Example
+
+该目录包含演示 Spring AI Alibaba 的基本和高级用法的示例。
+
+这里的所有示例都被设计为独立的 maven 项目,可以独立复制和导入。因此建议将整个示例目录或每个特定示例子目录作为单独的 Maven 项目导入,
+以体验 Spring AI Alibaba 开发框架的能力。
+
+* Client API 示例:此 Example 主要演示使用 Client API(高级 API) 调用模型;
+* Model API 示例:此 Example 主要演示使用 Model API(低级 API) 调用模型;
+* 函数调用示例:此 Example 主要演示如何使用 Function Calling 增强 LLM 能力;
+* 结构化输出示例:此 Example 主要演示如何使用 Structured Output ,将 LLM 输出转为 Java Bean;
+* Prompt 示例:此 Example 主要演示如何使用 Prompt Template 构建动态 Prompt 等,其他 Prompt 用法;
+* RAG 示例:此 Example 演示 RAG(检索增强)应用的构建示例。
+* Flight Booking Playground:一个高级示例,同时展示了 Prompt 模板、Function Calling、Chat Memory 和 RAG 的使用。
diff --git a/spring-ai-alibaba-examples/README.md b/spring-ai-alibaba-examples/README.md
index ef9129e4..c9d95d26 100644
--- a/spring-ai-alibaba-examples/README.md
+++ b/spring-ai-alibaba-examples/README.md
@@ -1,11 +1,14 @@
-This directory contains examples demonstrating basic and advanced usages of Spring AI Alibaba.
+## Spring AI Alibaba Example
-All the examples here are designed to be independent maven projects that can be copied and imported independently. So it's recommended to import the whole example directory or each specific example sub-directory as a separate maven project.
+This directory contains examples that demonstrate basic and advanced usage of Spring AI Alibaba.
-* Hello World
-* Chat Model
-* Function Calling
-* Structured Output
-* Prompt
-* RAG
-* Flight Booking Playground, an advanced example showcasing usage of prompt template, function calling, chat memory and rag at the same time.
\ No newline at end of file
+All examples here are designed as independent Maven projects that can be copied and imported independently. Therefore, it is recommended to import the entire example directory or each specific example subdirectory as a separate Maven project,
+to experience the capabilities of the Spring AI Alibaba development framework.
+
+* Client API Example: This Example mainly demonstrates the use of Client API (advanced API) to call the model;
+* Model API Example: This Example mainly demonstrates the use of Model API (low-level API) to call the model;
+* Function Calling Example: This Example mainly demonstrates how to use Function Calling to enhance LLM capabilities;
+* Structured Output Example: This Example mainly demonstrates how to use Structured Output to convert LLM output to Java Bean;
+* Prompt Example: This Example mainly demonstrates how to use Prompt Template to build dynamic Prompt, etc., and other Prompt usage;
+* RAG Example: This Example demonstrates the construction example of RAG (retrieval enhancement) application.
+* Flight Booking Playground: An advanced example that also demonstrates the use of Prompt templates, Function Calling, Chat Memory, and RAG.
diff --git a/spring-ai-alibaba-examples/helloworld-example/pom.xml b/spring-ai-alibaba-examples/client-api-example/pom.xml
similarity index 97%
rename from spring-ai-alibaba-examples/helloworld-example/pom.xml
rename to spring-ai-alibaba-examples/client-api-example/pom.xml
index 0b39213a..dfb64ba9 100644
--- a/spring-ai-alibaba-examples/helloworld-example/pom.xml
+++ b/spring-ai-alibaba-examples/client-api-example/pom.xml
@@ -9,7 +9,7 @@
com.alibaba.cloud.ai
- helloworld-example
+ client-api-example
0.0.1-SNAPSHOT
helloworld-example
Demo project for Spring AI Alibaba
diff --git a/spring-ai-alibaba-examples/helloworld-example/src/main/java/com/alibaba/cloud/ai/example/helloworld/ChatController.java b/spring-ai-alibaba-examples/client-api-example/src/main/java/com/alibaba/cloud/ai/example/helloworld/ChatController.java
similarity index 100%
rename from spring-ai-alibaba-examples/helloworld-example/src/main/java/com/alibaba/cloud/ai/example/helloworld/ChatController.java
rename to spring-ai-alibaba-examples/client-api-example/src/main/java/com/alibaba/cloud/ai/example/helloworld/ChatController.java
diff --git a/spring-ai-alibaba-examples/helloworld-example/src/main/java/com/alibaba/cloud/ai/example/helloworld/HelloWorldExampleApplication.java b/spring-ai-alibaba-examples/client-api-example/src/main/java/com/alibaba/cloud/ai/example/helloworld/HelloWorldExampleApplication.java
similarity index 100%
rename from spring-ai-alibaba-examples/helloworld-example/src/main/java/com/alibaba/cloud/ai/example/helloworld/HelloWorldExampleApplication.java
rename to spring-ai-alibaba-examples/client-api-example/src/main/java/com/alibaba/cloud/ai/example/helloworld/HelloWorldExampleApplication.java
diff --git a/spring-ai-alibaba-examples/helloworld-example/src/main/resources/application.yml b/spring-ai-alibaba-examples/client-api-example/src/main/resources/application.yml
similarity index 100%
rename from spring-ai-alibaba-examples/helloworld-example/src/main/resources/application.yml
rename to spring-ai-alibaba-examples/client-api-example/src/main/resources/application.yml
diff --git a/spring-ai-alibaba-examples/chatmodel-example/pom.xml b/spring-ai-alibaba-examples/module-api-example/pom.xml
similarity index 96%
rename from spring-ai-alibaba-examples/chatmodel-example/pom.xml
rename to spring-ai-alibaba-examples/module-api-example/pom.xml
index feef24a4..287e2575 100644
--- a/spring-ai-alibaba-examples/chatmodel-example/pom.xml
+++ b/spring-ai-alibaba-examples/module-api-example/pom.xml
@@ -2,14 +2,15 @@
4.0.0
+
org.springframework.boot
spring-boot-starter-parent
3.3.3
- com.alibaba.cloud.ai
- chatmodel-example
+
+ module-api-example
0.0.1-SNAPSHOT
chatmodel-example
Demo project for Spring AI Alibaba
diff --git a/spring-ai-alibaba-examples/chatmodel-example/src/main/java/com/alibaba/cloud/ai/example/model/AudioModelController.java b/spring-ai-alibaba-examples/module-api-example/src/main/java/com/alibaba/cloud/ai/example/model/AudioModelController.java
similarity index 100%
rename from spring-ai-alibaba-examples/chatmodel-example/src/main/java/com/alibaba/cloud/ai/example/model/AudioModelController.java
rename to spring-ai-alibaba-examples/module-api-example/src/main/java/com/alibaba/cloud/ai/example/model/AudioModelController.java
diff --git a/spring-ai-alibaba-examples/chatmodel-example/src/main/java/com/alibaba/cloud/ai/example/model/ChatModelController.java b/spring-ai-alibaba-examples/module-api-example/src/main/java/com/alibaba/cloud/ai/example/model/ChatModelController.java
similarity index 100%
rename from spring-ai-alibaba-examples/chatmodel-example/src/main/java/com/alibaba/cloud/ai/example/model/ChatModelController.java
rename to spring-ai-alibaba-examples/module-api-example/src/main/java/com/alibaba/cloud/ai/example/model/ChatModelController.java
diff --git a/spring-ai-alibaba-examples/chatmodel-example/src/main/java/com/alibaba/cloud/ai/example/model/ChatModelExampleApplication.java b/spring-ai-alibaba-examples/module-api-example/src/main/java/com/alibaba/cloud/ai/example/model/ChatModelExampleApplication.java
similarity index 100%
rename from spring-ai-alibaba-examples/chatmodel-example/src/main/java/com/alibaba/cloud/ai/example/model/ChatModelExampleApplication.java
rename to spring-ai-alibaba-examples/module-api-example/src/main/java/com/alibaba/cloud/ai/example/model/ChatModelExampleApplication.java
diff --git a/spring-ai-alibaba-examples/chatmodel-example/src/main/java/com/alibaba/cloud/ai/example/model/ImageModelController.java b/spring-ai-alibaba-examples/module-api-example/src/main/java/com/alibaba/cloud/ai/example/model/ImageModelController.java
similarity index 100%
rename from spring-ai-alibaba-examples/chatmodel-example/src/main/java/com/alibaba/cloud/ai/example/model/ImageModelController.java
rename to spring-ai-alibaba-examples/module-api-example/src/main/java/com/alibaba/cloud/ai/example/model/ImageModelController.java
diff --git a/spring-ai-alibaba-examples/chatmodel-example/src/main/resources/application.yml b/spring-ai-alibaba-examples/module-api-example/src/main/resources/application.yml
similarity index 100%
rename from spring-ai-alibaba-examples/chatmodel-example/src/main/resources/application.yml
rename to spring-ai-alibaba-examples/module-api-example/src/main/resources/application.yml
diff --git a/spring-ai-alibaba-examples/pom.xml b/spring-ai-alibaba-examples/pom.xml
index 2de1a38f..8d26b1ca 100644
--- a/spring-ai-alibaba-examples/pom.xml
+++ b/spring-ai-alibaba-examples/pom.xml
@@ -15,13 +15,14 @@
- helloworld-example
- chatmodel-example
+ client-api-example
+ module-api-example
prompt-example
function-calling-example
rag-example
output-parser-example
playground-flight-booking
+ usercase-example
diff --git a/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/pom.xml b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/pom.xml
new file mode 100644
index 00000000..8ce20d9a
--- /dev/null
+++ b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/pom.xml
@@ -0,0 +1,80 @@
+
+
+ 4.0.0
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.3.3
+
+
+
+ Generate SQL Queries
+ generate-sql-queries
+
+
+ UTF-8
+ UTF-8
+ 17
+ 17
+ 3.1.1
+
+
+ 1.0.0-M2
+
+
+
+
+ com.alibaba.cloud.ai
+ spring-ai-alibaba-starter
+ ${spring-ai-alibaba.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ com.h2database
+ h2
+ runtime
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+ ${maven-deploy-plugin.version}
+
+ true
+
+
+
+
+
+
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+ false
+
+
+
+
+
diff --git a/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/AIApplication.java b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/AIApplication.java
new file mode 100644
index 00000000..2f0ddc5e
--- /dev/null
+++ b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/AIApplication.java
@@ -0,0 +1,13 @@
+package com.alibaba.cloud.ai.sql;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class AIApplication {
+
+ public static void main(String[] args) {
+
+ SpringApplication.run(AIApplication.class, args);
+ }
+}
diff --git a/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/controller/SQLController.java b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/controller/SQLController.java
new file mode 100644
index 00000000..75214467
--- /dev/null
+++ b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/controller/SQLController.java
@@ -0,0 +1,31 @@
+package com.alibaba.cloud.ai.sql.controller;
+
+import com.alibaba.cloud.ai.sql.entity.Request;
+import com.alibaba.cloud.ai.sql.entity.Response;
+import com.alibaba.cloud.ai.sql.service.SQLService;
+import jakarta.annotation.Resource;
+import org.springframework.web.bind.annotation.*;
+
+import java.io.IOException;
+import java.util.Objects;
+
+@RestController
+@RequestMapping("/ai/sql")
+public class SQLController {
+
+ @Resource
+ private SQLService sqlService;
+
+ @GetMapping
+ public Response sql(Request request) throws IOException {
+
+ Response response = sqlService.sql(request);
+
+ if (Objects.isNull(response)) {
+ throw new RuntimeException("SQL Example throw exception");
+ }
+
+ return response;
+ }
+
+}
diff --git a/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/entity/Request.java b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/entity/Request.java
new file mode 100644
index 00000000..a5115f3b
--- /dev/null
+++ b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/entity/Request.java
@@ -0,0 +1,3 @@
+package com.alibaba.cloud.ai.sql.entity;
+
+public record Request(String text) {}
diff --git a/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/entity/Response.java b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/entity/Response.java
new file mode 100644
index 00000000..c71e2d6b
--- /dev/null
+++ b/spring-ai-alibaba-examples/usercase-example/generate-sql-queries/src/main/java/com/alibaba/cloud/ai/sql/entity/Response.java
@@ -0,0 +1,6 @@
+package com.alibaba.cloud.ai.sql.entity;
+
+import java.util.List;
+import java.util.Map;
+
+public record Response(String sqlQuery, List