Skip to main content

cortex-vec

Vector store CLI for the cortexes knowledge vault — hybrid retrieval over a plain-markdown vault, fusing a persistent BM25 index with OpenAI-embedding vector search (ChromaDB) via Reciprocal Rank Fusion. Handles mixed Chinese/English content.

The vault is the source of truth (markdown + git); everything this tool builds is a rebuildable derived index.

Install

# Recommended: isolated tool install via uv
uv tool install cortex-vec

# Or with pip
pip install cortex-vec

Usage

cortex-vec rebuild                # full rebuild (embeddings, needs OPENAI_API_KEY)
cortex-vec rebuild --bm25-only    # rebuild just the BM25 index — free, no API key
cortex-vec search "nginx certificate" --n 5
cortex-vec status                 # index health: vector + BM25 entry counts

Configuration lives in ~/.cortex/config.json (created by the Cortexes plugin's /cortexes:genesis command). OPENAI_API_KEY is required for embeddings; without it, search automatically degrades to BM25-only.

This package is the retrieval backend of the Cortexes Claude Code plugin — session recording, memory distillation, and indexed retrieval for Claude Code. See the repository for the full documentation.

Release files for cortex-vec 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cortex-vec 0.8.0
File Size Uploaded
cortex_vec-0.8.0.tar.gz 69.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cortex-vec 0.8.0
File Interpreter ABI Platform
cortex_vec-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 123.7 kB

Release files / cortex_vec-0.8.0.tar.gz

Download URL cortex_vec-0.8.0.tar.gz
Size 69.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1740d6610e66a9741e5d476b3531cf8a676a974cc761b1c691e31662b2b82575
BLAKE2b-256 checksum
How to use checksums
0c8ccaeb50c9b0d8b49ab6b6b2aedd8e5cf46607b04edbdf98adec428904e71d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release files / cortex_vec-0.8.0-py3-none-any.whl

Download URL cortex_vec-0.8.0-py3-none-any.whl
Size 53.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9905bc47da3a43fdcd7930763af242eac23fa82db7796f893d4135664ca1bbee
BLAKE2b-256 checksum
How to use checksums
32625f6e188218f3f5243f01bf3218c0b53cc6c22b05bd9afef1232374be6f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.

Transparency log

Release history Release notifications | RSS feed

0.9.0

2 release files

This release

0.8.0 This release

2 release files

0.7.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page