You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/kotlin-ai-apps-development-overview.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
[//]: #(title: Kotlin for AI-powered app development)
1
+
[//]: #(title: Kotlin 用于 AI 驱动的应用开发)
2
2
3
3
Kotlin provides a modern and pragmatic foundation for building AI-powered applications.
4
4
It can be used across platforms, integrates well with established AI frameworks, and supports common AI development patterns.
@@ -8,62 +8,62 @@ It can be used across platforms, integrates well with established AI frameworks,
8
8
>
9
9
{style="note"}
10
10
11
-
## Kotlin AI agentic framework – Koog
11
+
## Kotlin AI 代理化框架——Koog
12
12
13
13
[Koog](https://github.com/JetBrains/koog) is a Kotlin-based framework for creating and running AI agents locally, without requiring external services.
14
14
Koog is JetBrains' innovative, open-source agentic framework that empowers developers to build AI agents within the JVM ecosystem.
15
15
It provides a pure Kotlin implementation for building intelligent agents that can interact with tools, handle complex workflows, and communicate with users.
16
16
17
-
## More use cases
17
+
## 更多使用场景
18
18
19
19
There are many other use cases where Kotlin can help with AI development.
20
20
From integrating language models into backend services to building AI-powered user interfaces,
21
21
these examples showcase the versatility of Kotlin in various AI applications.
22
22
23
-
### Retrieval-augmented generation
23
+
### 检索增强生成
24
24
25
25
Use Kotlin to build retrieval-augmented generation (RAG) pipelines that connect language models to external sources like documentation, vector stores, or APIs.
26
26
For example:
27
27
28
28
*[`springAI-demo`](https://github.com/Kotlin/Kotlin-AI-Examples/tree/master/projects/spring-ai/springAI-demo): A Spring Boot app that loads Kotlin standard library docs into a vector store and supports document-based Q&A.
29
29
*[`langchain4j-spring-boot`](https://github.com/Kotlin/Kotlin-AI-Examples/tree/master/projects/langchain4j/langchain4j-spring-boot): A minimal RAG example using LangChain4j.
30
30
31
-
### Agent-based applications
31
+
### 基于代理的应用程序
32
32
33
33
Build AI agents in Kotlin that reason, plan, and act using language models and tools.
34
34
For example:
35
35
36
36
*[`koog`](https://github.com/JetBrains/koog): Shows how to use the Kotlin agentic framework Koog to build AI agents.
37
37
*[`langchain4j-spring-boot`](https://github.com/Kotlin/Kotlin-AI-Examples/tree/master/projects/langchain4j/langchain4j-spring-boot): Includes a simple tool-using agent built with LangChain4j.
38
38
39
-
### Chain of thought prompting
39
+
### 思维链提示
40
40
41
41
Implement structured prompting techniques that guide language models through multistep reasoning.
42
42
For example:
43
43
44
44
*[`LangChain4j_Overview.ipynb`](https://github.com/Kotlin/Kotlin-AI-Examples/blob/master/notebooks/langchain4j/LangChain4j_Overview.ipynb): A Kotlin Notebook demonstrating chain of thought and structured output.
45
45
46
-
### LLMs in backend services
46
+
### 后端服务中的 LLM
47
47
48
48
Integrate LLMs into business logic or REST APIs using Kotlin and Spring.
49
49
For example:
50
50
51
51
*[`spring-ai-examples`](https://github.com/Kotlin/Kotlin-AI-Examples/tree/master/projects/spring-ai/spring-ai-examples): Includes classification, chat, and summarization examples.
52
52
*[`springAI-demo`](https://github.com/Kotlin/Kotlin-AI-Examples/tree/master/projects/spring-ai/springAI-demo): Demonstrates full integration of LLM responses with application logic.
53
53
54
-
### Multiplatform user interfaces with AI
54
+
### 具有 AI 的多平台用户界面
55
55
56
56
Use Compose Multiplatform to build interactive AI-powered UIs in Kotlin.
57
57
For example:
58
58
59
59
*[`mcp-demo`](https://github.com/Kotlin/Kotlin-AI-Examples/tree/master/projects/mcp/mcp-demo): A desktop UI that connects to Claude and OpenAI, and presents responses using Compose Multiplatform.
60
60
61
-
## Explore examples
61
+
## 探索示例
62
62
63
63
You can explore and run examples from the [Kotlin-AI-Examples](https://github.com/Kotlin/Kotlin-AI-Examples) repository.
64
64
Each project is self-contained. You can use each project as a reference or template for building Kotlin-based AI applications.
65
65
66
-
## What's next
66
+
## 下一步做什么
67
67
68
68
* Complete the [Build a Kotlin app that uses Spring AI to answer questions based on documents stored in the Qdrant](spring-ai-guide.md)
69
69
tutorial to learn more about using Spring AI with Kotlin in IntelliJ IDEA
Copy file name to clipboardExpand all lines: docs/topics/multiplatform.topic
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
简化跨平台项目的开发,并减少为不同平台编写和维护相同代码所花费的时间。
12
12
</description>
13
13
<spotlight>
14
-
<ahref="https://www.jetbrains.com/help/kotlin-multiplatform-dev/quickstart.html"type="cross-platform"summary="Set up and run your first KMP project">Kotlin Multiplatform quickstart</a>
<ahref="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-ios-integration-overview.html"summary="Integrate a Kotlin Multiplatform shared module into your iOS app">Set up iOS integration</a>
<ahref="https://www.jetbrains.com/help/kotlin-multiplatform-dev/quickstart.html"summary="Setup and run your first KMP project">Set up and run your first KMP project</a>
<ahref="https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform"summary="Kotlin Multiplatform plugin for IntelliJ IDEA and Android Studio">Kotlin Multiplatform IDE plugin</a>
44
-
<ahref="https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-hot-reload.html"summary="Quickly iterate on your UI with Compose Hot Reload">Compose Hot Reload</a>
43
+
<ahref="https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform"summary="用于 IntelliJ IDEA 与 Android Studio 的 Kotlin 多平台插件">Kotlin 多平台 IDE 插件</a>
## Create a controller to load and search documents
133
+
## 创建一个 controller 来加载并搜索文档
134
134
135
135
Create a Spring `@RestController` to search documents and store them in the Qdrant collection:
136
136
@@ -252,7 +252,7 @@ Create a Spring `@RestController` to search documents and store them in the Qdra
252
252
>
253
253
{style="tip"}
254
254
255
-
## Implement an AI chat endpoint
255
+
## 实现 AI 聊天端点
256
256
257
257
Once the documents are loaded, the final step is to add an endpoint that answers questions using the documents in Qdrant through Spring AI's Retrieval-Augmented Generation (RAG) support:
0 commit comments