Skip to main content

cortex-vec

Vector store CLI for the cortex 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 cortex plugin's /cortex: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 Cortex Claude Code plugin — session recording, memory distillation, and indexed retrieval for Claude Code. See the repository for the full documentation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cortex_vec-0.7.0.tar.gz (68.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cortex_vec-0.7.0-py3-none-any.whl (53.7 kB view details)

Uploaded Python 3

File details

Details for the file cortex_vec-0.7.0.tar.gz.

File metadata

  • Download URL: cortex_vec-0.7.0.tar.gz
  • Upload date:
  • Size: 68.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cortex_vec-0.7.0.tar.gz
Algorithm Hash digest
SHA256 6e764bcf1f9902db5b8e5c900a5747d786d677bfd711ad2995ddff91883b881a
MD5 26207f2cebb96cee65b3dd0cfbf60d2b
BLAKE2b-256 88c9e31f884eba977425e874276b855c6a27e53e4a8be9adcc66ac2dd24ddca9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cortex_vec-0.7.0.tar.gz:

Publisher: publish-cortex-vec.yml on XBlueSky/cortexes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cortex_vec-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: cortex_vec-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 53.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cortex_vec-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 675f5ea6544af5167f0580198428652ed5d0fcb9f83150741e766c370328f872
MD5 2c3196eb2b8b99c3ab5560950085fe6a
BLAKE2b-256 afca833b17400d7d69b7223aeaa7744fdb930eebf9e33e936f87ef42fc2e68b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cortex_vec-0.7.0-py3-none-any.whl:

Publisher: publish-cortex-vec.yml on XBlueSky/cortexes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page