Skip to content

Commit 6d6435f

Browse files
authoredJan 9, 2024
Merge pull request #3 from coderabbitai/blog-cost-effective-gen-ai
fix: numbering in gen ai cost article
2 parents 6ef631d + 4e83c15 commit 6d6435f

File tree

1 file changed

+3
-2
lines changed
  • blog/2023-12-23-how-we-built-cost-effective-generative-ai-application

1 file changed

+3
-2
lines changed
 

‎blog/2023-12-23-how-we-built-cost-effective-generative-ai-application/index.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ Additionally, we implemented triage logic to skip trivial changes from the revie
4949

5050
By using this dual-model approach for summarization and filtering out trivial changes, we save almost 50% on costs.
5151

52-
## Rate-limiting: Enforcing Fair Usage
52+
53+
## 2. Rate-limiting: Enforcing Fair Usage
5354

5455
Upon launching our free service for open source projects, we noticed individual developers using it as a coding co-pilot by making hundreds of incremental commits for continuous feedback. CodeRabbit, designed for thorough code reviews unlike tools such as GitHub Copilot, incurs high costs when used in this manner. Therefore, we implemented hourly rate-limits on the number of files and commits reviewed per user, to control excessive usage without compromising user experience. These limits vary across different product tiers. For example, we set more aggressive limits for open source users compared to trial and paid users.
5556

@@ -70,7 +71,7 @@ Given the high cost and capacity constraints of state-of-the-art models such as
7071
![Rate limit metrics for open source users](rate-limits-metrics-screenshot.png "image_tRate limit metrics for open source usersooltip")
7172
Rate limit metrics for open source users
7273

73-
## Caching: Avoid Re-generating Similar Review Comments
74+
## 3. Caching: Avoid Re-generating Similar Review Comments
7475

7576
We believe that building user habits around AI involves seamlessly augmenting existing workflows. Therefore, AI code reviews must be continuous: they should trigger as soon as a PR is opened and incrementally update the summary and generate review comments as more commits are added.
7677

0 commit comments

Comments
 (0)