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: AI_POLICY.md
+23-4Lines changed: 23 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,22 @@
1
+
<!--
2
+
Licensed to the Apache Software Foundation (ASF) under one
3
+
or more contributor license agreements. See the NOTICE file
4
+
distributed with this work for additional information
5
+
regarding copyright ownership. The ASF licenses this file
6
+
to you under the Apache License, Version 2.0 (the
7
+
"License"); you may not use this file except in compliance
8
+
with the License. You may obtain a copy of the License at
9
+
10
+
http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+
Unless required by applicable law or agreed to in writing,
13
+
software distributed under the License is distributed on an
14
+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+
KIND, either express or implied. See the License for the
16
+
specific language governing permissions and limitations
17
+
under the License.
18
+
-->
19
+
1
20
# AI Policy
2
21
3
22
We welcome AI tools in Apache Cloudberry development — code assistants, LLMs, AI code review, and beyond. AI is a normal developer tool, like an IDE or a debugger. This document sets simple ground rules so everyone can use AI responsibly.
@@ -34,13 +53,13 @@ When your PR includes significant AI-generated code, check the AI disclosure box
34
53
35
54
Our core is PostgreSQL, and refactoring work has already been done here. Rewriting code significantly complicates rebase. Also, refactoring changes the code in a way that forces people to relearn the code they already know. Keep changes as simple as possible.
36
55
37
-
**Example:** The point of LLM is to spend your tokens. One day, you will be asked: "This code is not very good. Do you want to improve it?" Of course! It could happens several times. Tokens are spent, but what is the point of such refactoring? (Rhetorical question)
56
+
**Example:** The point of LLM is to spend your tokens. One day, you will be asked: "This code is not very good. Do you want to improve it?" Of course! It could happen several times. Tokens are spent, but what is the point of such refactoring? (Rhetorical question)
38
57
39
58
### 6. LLM code review
40
59
41
60
So far, it is not possible to use paid LLM models for code review in open source ASF projects. However, one could use personal licenses for LLMs to do the same.
42
61
43
-
**Example:**We primarily use GitHub Copilot for automated AI code review on pull requests. Here are some important points:
62
+
**Example:**One could use GitHub Copilot for automated AI code review on pull requests. Here are some important points:
44
63
45
64
- Copilot suggestions are **non-binding hints**, not requirements.
46
65
- If a suggestion is irrelevant or wrong, skip it — you know your code best.
@@ -66,5 +85,5 @@ Do not use AI to auto-generate responses to review feedback. Maintainers invest
66
85
## Resources
67
86
68
87
-[ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) - Official Apache guidance on AI tool usage
69
-
-[GitHub Copilot](https://github.com/features/copilot) - AI pair programmer and code reviewer we use
70
-
-[LLM Leaderboard](https://llm-stats.com/) - LLM Stats Score, it's better to use high-ranked models
88
+
-[GitHub Copilot](https://github.com/features/copilot) - AI pair programmer and code reviewer
89
+
-[LLM Leaderboard](https://llm-stats.com/) - LLM Stats Score, it's better to use high-ranked models
0 commit comments