Skip to content

Commit c0ca669

Browse files
committed
补充部分翻译
1 parent 026d308 commit c0ca669

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

docs/topics/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Kotlin 已包含在每个 [IntelliJ IDEA](https://www.jetbrains.com/idea/downloa
9393

9494
* 加入我们:
9595
* ![Slack](slack.svg){width=25}{type="joined"} Slack:[获取邀请](https://surveys.jetbrains.com/s3/kotlin-slack-sign-up).
96-
* ![StackOverflow](stackoverflow.svg){width=25}{type="joined"} StackOverflow:订阅 ["kotlin"](https://stackoverflow.com/questions/tagged/kotlin) 标签。
96+
* ![StackOverflow](stackoverflow.svg){width=25}{type="joined"} StackOverflow:订阅[kotlin](https://stackoverflow.com/questions/tagged/kotlin)标签。
9797
*![YouTube](youtube.svg){width=25}{type="joined"} [Youtube](https://www.youtube.com/channel/UCP7uiEZIqci43m22KDl0sNw)![Twitter](twitter.svg){width=18}{type="joined"} [Twitter](https://twitter.com/kotlin)![Bluesky](bsky.svg){width=18}{type="joined"} [Bluesky](https://bsky.app/profile/kotlinlang.org)![Reddit](reddit.svg){width=25}{type="joined"} [Reddit](https://www.reddit.com/r/Kotlin/) 上关注 Kotlin。
9898
* 订阅 [Kotlin 资讯](https://info.jetbrains.com/kotlin-communication-center.html)
9999

docs/topics/kotlin-ai-apps-development-overview.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[//]: # (title: Kotlin for AI-powered app development)
1+
[//]: # (title: Kotlin 用于 AI 驱动的应用开发)
22

33
Kotlin provides a modern and pragmatic foundation for building AI-powered applications.
44
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,
88
>
99
{style="note"}
1010

11-
## Kotlin AI agentic framework – Koog
11+
## Kotlin AI 代理化框架——Koog
1212

1313
[Koog](https://github.com/JetBrains/koog) is a Kotlin-based framework for creating and running AI agents locally, without requiring external services.
1414
Koog is JetBrains' innovative, open-source agentic framework that empowers developers to build AI agents within the JVM ecosystem.
1515
It provides a pure Kotlin implementation for building intelligent agents that can interact with tools, handle complex workflows, and communicate with users.
1616

17-
## More use cases
17+
## 更多使用场景
1818

1919
There are many other use cases where Kotlin can help with AI development.
2020
From integrating language models into backend services to building AI-powered user interfaces,
2121
these examples showcase the versatility of Kotlin in various AI applications.
2222

23-
### Retrieval-augmented generation
23+
### 检索增强生成
2424

2525
Use Kotlin to build retrieval-augmented generation (RAG) pipelines that connect language models to external sources like documentation, vector stores, or APIs.
2626
For example:
2727

2828
* [`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.
2929
* [`langchain4j-spring-boot`](https://github.com/Kotlin/Kotlin-AI-Examples/tree/master/projects/langchain4j/langchain4j-spring-boot): A minimal RAG example using LangChain4j.
3030

31-
### Agent-based applications
31+
### 基于代理的应用程序
3232

3333
Build AI agents in Kotlin that reason, plan, and act using language models and tools.
3434
For example:
3535

3636
* [`koog`](https://github.com/JetBrains/koog): Shows how to use the Kotlin agentic framework Koog to build AI agents.
3737
* [`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.
3838

39-
### Chain of thought prompting
39+
### 思维链提示
4040

4141
Implement structured prompting techniques that guide language models through multistep reasoning.
4242
For example:
4343

4444
* [`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.
4545

46-
### LLMs in backend services
46+
### 后端服务中的 LLM
4747

4848
Integrate LLMs into business logic or REST APIs using Kotlin and Spring.
4949
For example:
5050

5151
* [`spring-ai-examples`](https://github.com/Kotlin/Kotlin-AI-Examples/tree/master/projects/spring-ai/spring-ai-examples): Includes classification, chat, and summarization examples.
5252
* [`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.
5353

54-
### Multiplatform user interfaces with AI
54+
### 具有 AI 的多平台用户界面
5555

5656
Use Compose Multiplatform to build interactive AI-powered UIs in Kotlin.
5757
For example:
5858

5959
* [`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.
6060

61-
## Explore examples
61+
## 探索示例
6262

6363
You can explore and run examples from the [Kotlin-AI-Examples](https://github.com/Kotlin/Kotlin-AI-Examples) repository.
6464
Each project is self-contained. You can use each project as a reference or template for building Kotlin-based AI applications.
6565

66-
## What's next
66+
## 下一步做什么
6767

6868
* Complete the [Build a Kotlin app that uses Spring AI to answer questions based on documents stored in the Qdrant](spring-ai-guide.md)
6969
tutorial to learn more about using Spring AI with Kotlin in IntelliJ IDEA

docs/topics/multiplatform.topic

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
简化跨平台项目的开发,并减少为不同平台编写和维护相同代码所花费的时间。
1212
</description>
1313
<spotlight>
14-
<a href="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>
14+
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/quickstart.html" type="cross-platform" summary="搭建并运行第一个 KMP 项目">Kotlin 多平台快速入门</a>
1515
<a href="https://www.jetbrains.com/lp/compose-multiplatform/" summary="探索 JetBrains 开发的基于 Kotlin 的声明式多平台 UI 框架" type="creative">Compose 多平台</a>
1616
</spotlight>
1717
<primary>
@@ -26,25 +26,25 @@
2626
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-discover-project.html" summary="了解基础知识:公共代码与平台专用代码、目标以及源代码集">项目结构的关键概念</a>
2727
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-expect-actual.html" summary="使用预期声明与实际声明来访问平台特定 API">预期与实际声明</a>
2828
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-hierarchy.html" summary="为共享公共代码安排源代码集的分层结构">分层项目结构</a>
29-
<a href="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>
29+
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-ios-integration-overview.html" summary="Kotlin 多平台共享模块集成到 iOS 应用中">设置 iOS 集成</a>
3030
</secondary>
3131
<misc>
3232
<links narrow="true">
3333
<group>
3434
<title>教程与样例</title>
35-
<a href="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>
35+
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/quickstart.html" summary="搭建并运行第一个 KMP 项目">搭建并运行第一个 KMP 项目</a>
3636
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-integrate-in-existing-app.html" summary="让 Android 应用程序能在 iOS 上运行">让应用支持多平台</a>
3737
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-run-tests.html" summary="解如何创建并测试 Kotlin 多平台应用程序">测试多平台应用</a>
3838
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-samples.html" summary="Kotlin 多平台样例">参见精选项目列表</a>
3939
<a href="https://github.com/topics/kotlin-multiplatform-sample" summary="GitHub“kotlin-multiplatform”主题">在 GitHub 上查找更多项目</a>
4040
</group>
4141
<group>
4242
<title>工具</title>
43-
<a href="https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform" summary="Kotlin Multiplatform plugin for IntelliJ IDEA and Android Studio">Kotlin Multiplatform IDE plugin</a>
44-
<a href="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+
<a href="https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform" summary="用于 IntelliJ IDEA Android Studio 的 Kotlin 多平台插件">Kotlin 多平台 IDE 插件</a>
44+
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-hot-reload.html" summary="使用 Compose 热加载快速迭代 UI">Compose 热加载</a>
4545
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-dsl-reference.html" summary="为 Kotlin 多平台项目配置 Gradle 构建脚本">Gradle DSL 参考</a>
4646
<a href="https://klibs.io/" summary="由 JetBrains 开发的 Kotlin 多平台库实验性搜索平台">库搜索平台</a>
47-
<a href="https://kmp.jetbrains.com/" summary="Quickly generate and download a multiplatform project template">New project wizard</a>
47+
<a href="https://kmp.jetbrains.com/" summary="快速生成并下载多平台项目模板">新建项目向导</a>
4848
<a href="https://www.jetbrains.com/help/kotlin-multiplatform-dev/amper.html" summary="使用 Amper 配置项目">Amper 配置工具</a>
4949
</group>
5050
<group>

docs/topics/spring-ai-guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[//]: # (title: Build a Kotlin app that uses Spring AI to answer questions based on documents stored in Qdrant — tutorial)
1+
[//]: # (title: 构建一个使用 Spring AI 基于 Qdrant 中存储的文档来回答问题的 Kotlin 应用——教程)
22

33
In this tutorial, you'll learn how to build a Kotlin app that uses [Spring AI](https://spring.io/projects/spring-ai) to connect to an LLM,
44
store documents in a vector database, and answer questions using context from those documents.
@@ -12,7 +12,7 @@ You will use the following tools during this tutorial:
1212
* [Docker](https://www.docker.com/) to run Qdrant locally.
1313
* [OpenAI](https://platform.openai.com) as the LLM provider.
1414

15-
## Before you start
15+
## 开始之前
1616

1717
1. Download and install the latest version of [IntelliJ IDEA Ultimate Edition](https://www.jetbrains.com/idea/download/index.html).
1818

@@ -29,7 +29,7 @@ You will use the following tools during this tutorial:
2929
docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
3030
```
3131

32-
## Create the project
32+
## 创建项目
3333

3434
> You can use [Spring Boot web-based project generator](https://start.spring.io/) as an alternative to generate your project.
3535
>
@@ -88,7 +88,7 @@ The generated Gradle project corresponds to the Maven's standard directory layou
8888
* The entry point to the application is the `main()` method of the `SpringAiDemoApplication.kt` file.
8989
9090
91-
## Update the project configuration
91+
## 更新项目配置
9292
9393
1. Update your `build.gradle.kts` Gradle build file with the following:
9494
@@ -130,7 +130,7 @@ The generated Gradle project corresponds to the Maven's standard directory layou
130130
131131
![Qdrant collections](qdrant-collections.png){width=700}
132132
133-
## Create a controller to load and search documents
133+
## 创建一个 controller 来加载并搜索文档
134134
135135
Create a Spring `@RestController` to search documents and store them in the Qdrant collection:
136136
@@ -252,7 +252,7 @@ Create a Spring `@RestController` to search documents and store them in the Qdra
252252
>
253253
{style="tip"}
254254
255-
## Implement an AI chat endpoint
255+
## 实现 AI 聊天端点
256256
257257
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:
258258

0 commit comments

Comments
 (0)