Skip to content

Commit d7b6b51

Browse files
authored
Update github env var examples (#157)
1 parent 61fdd10 commit d7b6b51

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/integrations/knowledge-base.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ Or you can comment directly on some lines of code in the PR. `@coderabbitai do n
4949

5050
## Self-hosted knowledge base {#self-hosted}
5151

52-
For self-hosted / on-premises deployments, you can enable the knowledge base features by setting `ON_PREM_KNOWLEDGE_BASE=true` in the environment variables for your self-hosted docker image.
52+
For self-hosted / on-premises deployments, you can enable the knowledge base features by setting `SELF_HOSTED_KNOWLEDGE_BASE=true` in the environment variables for your self-hosted docker image.
5353

5454
You must also be running ChromaDB. Use image `chromadb/chroma:0.5.20`. In your CodeRabbit docker image environment variables, set `CHROMADB_URL` to point to the hostname where ChromaDB can be reached. For persistance of your ChromaDB data, mount `/chroma/chroma` in the container to a volume mount. For more information on ChromaDB docker deployment, including how to set up authentication, refer to the [official documentation](https://docs.trychroma.com/deployment/docker). CodeRabbit will use `CHROMA_CLIENT_AUTH_CREDENTIALS` if it is set.
5555

56-
By default, CodeRabbit will store its data in the `coderabbitai/data` branch, unless you set a value for `ON_PREM_KNOWLEDGE_BASE_BRANCH=<branch_name>`.
56+
By default, CodeRabbit will store its data in the `coderabbitai/data` branch, unless you set a value for `SELF_HOSTED_KNOWLEDGE_BASE_BRANCH=<branch_name>`.
5757

5858
### Walkthrough
5959

@@ -66,5 +66,5 @@ By default, CodeRabbit will store its data in the `coderabbitai/data` branch, un
6666
`@coderabbitai always make sure to enforce camelCase`
6767

6868
- CodeRabbit should respond that it has added a learning.
69-
- Check out the branch called `coderabbit/data` in the repository (or whatever branch name you have set for `ON_PREM_KNOWLEDGE_BASE_BRANCH`). It should contain a file called learnings.json with an entry containing what you told it to remember.
69+
- Check out the branch called `coderabbit/data` in the repository (or whatever branch name you have set for `SELF_HOSTED_KNOWLEDGE_BASE_BRANCH`). It should contain a file called learnings.json with an entry containing what you told it to remember.
7070
- Future PRs should utilize the contents of this learnings file. Congratulations! You have configured the CodeRabbit Self-hosted knowledge base.

docs/self-hosted/github.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ GITHUB_APP_PEM_FILE=<flattened-pem-file>
9696
CODERABBIT_LICENSE_KEY=<license-key>
9797

9898
CODERABBIT_API_KEY=[<coderabbitai-api-key>]
99+
# This will use your CodeRabbit API key to store learnings on our servers.
99100
ENABLE_LEARNINGS=[true]
100101
ENABLE_METRICS=[true]
101102

@@ -108,10 +109,10 @@ OAUTH2_ENDPOINT=[<endpoint>]
108109
OAUTH2_CLIENT_ID=[<client-id>]
109110
OAUTH2_CLIENT_SECRET=[<client-secret>]
110111

111-
# Set to true to use the knowledge base features.
112-
ON_PREM_KNOWLEDGE_BASE=[true]
112+
# Set to true to use the on-prem knowledge base features. This will take precedence over the ENABLE_LEARNINGS flag above.
113+
SELF_HOSTED_KNOWLEDGE_BASE=[true]
113114
# The branch which CodeRabbit will store the knowledge base json files in.
114-
ON_PREM_KNOWLEDGE_BASE_BRANCH=[coderabbitai/data]
115+
SELF_HOSTED_KNOWLEDGE_BASE_BRANCH=[coderabbitai/data]
115116
# URL to the host running ChromaDB 0.5.20.
116117
CHROMADB_URL=[http://chromadb:8000]
117118
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy