MCPcopy Index your code
hub / github.com/cosdata/cosdata

github.com/cosdata/cosdata @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,077 symbols 6,553 edges 236 files 283 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cosdata Docker Image

Running the Container

docker run -it \
  --name cosdata-server \
  -p 8443:8443 \
  -p 50051:50051 \
  cosdatateam/cosdata:latest

When prompted, enter your admin key.

Ports

  • 8443: HTTP API
  • 50051: gRPC service

Environment Variables

  • COSDATA_HOME: Set to /opt/cosdata by default
  • PATH: Includes /opt/cosdata/bin

Data Storage

By default, data is stored inside the container. For persistent storage, you can mount a volume:

docker run -it \
  --name cosdata-server \
  -v cosdata-data:/opt/cosdata/data \
  -p 8443:8443 \
  -p 50051:50051 \
  cosdatateam/cosdata:latest

Health Check

The container includes a health check that monitors the HTTP endpoint.

Extension points exported contracts — how you extend this code

DistanceFunction (Interface)
(no doc) [6 implementers]
src/distance/mod.rs
TreeMapKey (Interface)
(no doc) [7 implementers]
src/models/tree_map.rs
IndexOps (Interface)
(no doc) [5 implementers]
src/indexes/mod.rs
Quantization (Interface)
(no doc) [3 implementers]
src/quantization/mod.rs
SimpleSerialize (Interface)
(no doc) [13 implementers]
src/models/serializer/mod.rs
USVIndexSerialize (Interface)
(no doc) [6 implementers]
src/models/serializer/usv/mod.rs
TreeMapSerialize (Interface)
(no doc) [6 implementers]
src/models/serializer/tree_map/mod.rs
TFIDFIndexSerialize (Interface)
(no doc) [6 implementers]
src/models/serializer/tf_idf/mod.rs

Core symbols most depended-on inside this repo

clone
called by 302
src/models/versioned_vec.rs
iter
called by 255
src/models/lru_cache.rs
push
called by 218
src/models/tree_map.rs
len
called by 215
src/models/atomic_array.rs
read
called by 206
src/models/wal.rs
get
called by 197
src/models/tree_map.rs
seek_with_cursor
called by 172
src/models/buffered_io.rs
append
called by 168
src/models/wal.rs

Shape

Function 994
Method 707
Class 295
Enum 65
Interface 15
Route 1

Languages

Rust84%
Python16%

Modules by API surface

src/models/types.rs73 symbols
src/models/buffered_io.rs68 symbols
src/models/common.rs47 symbols
org/src/cosql.rs43 symbols
tests/test_hybrid.py39 symbols
tests/test_metadata_filters.py38 symbols
src/models/lru_cache.rs37 symbols
tests/test-tf-idf-bm25.py35 symbols
src/metadata/schema.rs33 symbols
src/models/dot_product/x86_64.rs32 symbols
src/models/collection.rs32 symbols
tests/test-key-value-store.py30 symbols

For agents

$ claude mcp add cosdata \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact