Skip to content

Commit c615a72

Browse files
committed
self-hosted: remove chromadb
1 parent d21e809 commit c615a72

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

Diff for: docs/integrations/knowledge-base.md

+3-23
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,12 @@ CodeRabbit can integrate with your issue tracking systems to provide better cont
1515

1616
You can tell the bot to remember things about either specific lines in files, or generally about the entire repository, or even across repositories.
1717

18-
For example you can add a comment in a PR to chat directly with CodeRabbit. `@coderabbitai always remember to enforce camelCase`.
18+
For example, you can add a comment in a PR to chat directly with CodeRabbit. `@coderabbitai always remember to enforce camelCase`.
1919

2020
Or you can comment directly on some lines of code in the PR. `@coderabbitai do not complain about lack of error handling here, it is handled higher up the execution stack.`
2121

2222
:::tip Video Tutorial
23-
Watch our [video walkthrough on learnings](https://www.youtube.com/watch?v=Yu0cmmOYA-U) for more information.
24-
:::
25-
26-
## Self-hosted knowledge base {#self-hosted}
27-
28-
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.
29-
30-
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.
3123

32-
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>`.
33-
34-
### Walkthrough
35-
36-
- Set up a ChromaDB service on your cloud provider of choice. There is extensive documentation for generic Docker deploys, as well as cloud native deployments, in the [official Chroma documentation](https://docs.trychroma.com/deployment)
37-
- Configure your environment variables for your CodeRabbit self-hosted deploy to be able to access Chroma. Documentation is available for [GitHub](/self-hosted/github#prepare-an-env-file).
38-
- Restart your CodeRabbit service so it has access to the new environment variable settings.
39-
- Create a new PR in your SCM platform.
40-
- Add a comment to the PR to tell CodeRabbit to remember something.
41-
42-
`@coderabbitai always make sure to enforce camelCase`
24+
Watch our [video walkthrough on learnings](https://www.youtube.com/watch?v=Yu0cmmOYA-U) for more information.
4325

44-
- CodeRabbit should respond that it has added a learning.
45-
- 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.
46-
- Future PRs should utilize the contents of this learnings file. Congratulations! You have configured the CodeRabbit Self-hosted knowledge base.
26+
:::

Diff for: docs/self-hosted/github.md

-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ OAUTH2_CLIENT_SECRET=[<client-secret>]
119119
SELF_HOSTED_KNOWLEDGE_BASE=[true]
120120
# The branch which CodeRabbit will store the knowledge base json files in.
121121
SELF_HOSTED_KNOWLEDGE_BASE_BRANCH=[coderabbitai/data]
122-
# URL to the host running ChromaDB 0.5.20.
123-
CHROMADB_URL=[http://chromadb:8000]
124122
```
125123

126124
:::note

0 commit comments

Comments
 (0)