Skip to main content

Codex

Codex is a local RAG (Retrieval-Augmented Generation) document search framework. You can connect Codex to local GoingMerry model endpoints to ingest documents, generate embeddings, and query information.


1. Setup

Install Codex locally:

pip install codex-rag

2. Configuration Mappings

Configure Codex to connect to the GoingMerry REST API. Set the endpoint details in your environment variables:

export CODEX_LLM_PROVIDER="merry"
export CODEX_API_URL="http://localhost:11434"
export CODEX_LLM_MODEL="gemma4"
export CODEX_EMBEDDING_MODEL="nomic-embed-text"

3. Ingestion and Query

Ingest directories of documents:

codex ingest --path ./documents/

Once vector database is populated, query your files locally:

codex query "What are our database connection SLA rules?"

The query is answered offline by your local gemma4 model using retrieved document chunks.