Setup Context Engine

Follow this guide to setup, install, and begin using the Context Engine in On Prem environments.

circle-check

Context Engine documentation

Prerequisites

Infrastructure Requirements

The machine running the Context Engine components should have at least:

  • vCPU: 8

  • 16 GB RAM

PostgreSQL Instance (Recommended Size):

  • vCPU: 4

  • Memory: 32 GB

  • Disk: 100 GB

You may opt for smaller instances if working with a relatively small codebase.

PostgreSQL Version: 17

Required Configuration:

  • pg_vector extension installed

    Note: This is pre-installed in managed cloud deployments.

  • TCP port 5432 must be accessible from the Kubernetes cluster where the Context Engine will be deployed

  • Two separate databases:

    • rag-indexer

    • metadata

  • Two PostgreSQL users with full access to their respective databases

Supported Git Providers:

  • GitHub (Cloud or Enterprise)

  • GitLab

  • Bitbucket Data Center


Models Supported

These models are used by the Context Engine and must be available for the Context Engine to be used:

  • gpt-5

  • claude-4.1-opus

circle-exclamation
circle-exclamation

1. Context Engine Installation

The Context Engine consists of a few components. Install them in the following order:

  1. metadata-service

  2. rag-indexer

  3. context-retriever

  4. context-retriever-mcp (only if you'd like to connect your codebase understanding capabilities to tools that are not Qodo Gen or Qodo Merge).

We recommend deploying all components in the same Kubernetes namespace.

Each component requires its own values.yaml file with configuration like the following.

1. metadata-service

Example metadata-values.yaml:

Install with Helm:

2. rag-indexer

Install with Helm:

3. context-retriever

Install with Helm:

  1. Trigger initial indexing (if you prefer to not wait until the cronjob is triggered): kubectl create job indexer-reindex-manual --from=cronjob/indexer-reindex

  2. Verify indexer pod (that is part of the deployment, not the job) logs, to confirm indexing has completed (can take anywhere from minutes to up to a day, depends on how many repositories are configured and how big they are).

4. context-retriever-mcp

circle-exclamation

2. Finish Setup on your version control

Finish setting up Qodo Aware on your version control:

2.1 Custom CA

If you are using On prem git provider with HTTPS connection from qodo-engine you will need to configure the custom CA like this:


Enabling Context Engine functionality in the Git Integration

Git Integration

  1. Update qodo-merge secret, append the following

  1. Restart pods to pick up the new secret.

Last updated