Command → SDK map
Everything you can type as a DSL command (in the CLI) has a matching method call in each client library. They talk to the exact same server and do the exact same thing — the CLI is just handy for exploring, and the SDKs are how you build.
This page is the Rosetta Stone: find a command, see its equivalent in your language. Pick your language once with the tabs below and it stays selected across the whole page.
note
Signatures here are simplified to show the shape of each call. For full, runnable examples (imports, request objects, error handling), follow each command's Stores operation page and choose the Database engine tab.
One operation, every language
The same "create a store" operation, side by side:
- CLI (DSL)
- Python
- Node.js
- Go
- Rust
CREATESTORE my_store DIMENSION 128Python
client.create_store("my_store", 128)
JavaScript
await client.createStore("my_store", 128);
Go
client.CreateStore(ctx, "my_store", 128)
Rust
client.create_store("my_store", 128)?;
Full command map
- Python
- Node.js
- Go
- Rust
Server & system
| Command | Python |
|---|---|
PING | client.ping() |
INFO SERVER | client.info_server() |
LIST CONNECTED CLIENTS | client.list_clients() |
Store management
| Command | Python |
|---|---|
LIST STORES | client.list_stores() |
GETSTORE my_store | client.get_store("my_store") |
CREATESTORE my_store DIMENSION 128 | client.create_store("my_store", 128) |
DROPSTORE my_store | client.drop_store("my_store") |
Data operations
| Command | Python |
|---|---|
SET doc1 [0.25,0.88] WITH {...} IN my_store | client.set("my_store", "doc1", [0.25, 0.88], {"category": "news"}) |
DELKEY doc1 IN my_store | client.delete_key("my_store", "doc1") |
DELPRED (category='archive') IN my_store | client.delete_predicate("my_store", "category='archive'") |
Query & retrieval
| Command | Python |
|---|---|
GETSIMN 3 WITH [...] USING cosine IN my_store | client.get_sim_n("my_store", [0.25, 0.88], 3, "cosine", predicate="lang='en'") |
GETKEY doc1 IN my_store | client.get_key("my_store", "doc1") |
GETPRED (lang='en') IN my_store | client.get_by_predicate("my_store", "lang='en'") |
Index management
| Command | Python |
|---|---|
CREATEPREDINDEX (category) IN my_store | client.create_predicate_index("my_store", "category") |
DROPPREDINDEX (category) IN my_store | client.drop_predicate_index("my_store", "category") |
CREATENONLINEARALGORITHMINDEX (hnsw) IN my_store | client.create_non_linear_algorithm_index("my_store", NonLinearIndex(hnsw=HNSWConfig())) |
DROPNONLINEARALGORITHMINDEX (hnsw) IN my_store | client.drop_non_linear_algorithm_index("my_store", "hnsw") |
Server & system
| Command | Node.js |
|---|---|
PING | await client.ping() |
INFO SERVER | await client.infoServer() |
LIST CONNECTED CLIENTS | await client.listClients() |
Store management
| Command | Node.js |
|---|---|
LIST STORES | await client.listStores() |
GETSTORE my_store | await client.getStore("my_store") |
CREATESTORE my_store DIMENSION 128 | await client.createStore("my_store", 128) |
DROPSTORE my_store | await client.dropStore("my_store") |
Data operations
| Command | Node.js |
|---|---|
SET doc1 [0.25,0.88] WITH {...} IN my_store | await client.set("my_store", "doc1", [0.25, 0.88], {category: "news"}) |
DELKEY doc1 IN my_store | await client.delKey("my_store", "doc1") |
DELPRED (category='archive') IN my_store | await client.delPred("my_store", "category='archive'") |
Query & retrieval
| Command | Node.js |
|---|---|
GETSIMN 3 WITH [...] USING cosine IN my_store | await client.getSimN("my_store", [0.25, 0.88], 3, "cosine", "lang='en'") |
GETKEY doc1 IN my_store | await client.getKey("my_store", "doc1") |
GETPRED (lang='en') IN my_store | await client.getPred("my_store", "lang='en'") |
Index management
| Command | Node.js |
|---|---|
CREATEPREDINDEX (category) IN my_store | await client.createPredIndex("my_store", "category") |
DROPPREDINDEX (category) IN my_store | await client.dropPredIndex("my_store", "category") |
CREATENONLINEARALGORITHMINDEX (hnsw) IN my_store | await client.createNonLinearAlgorithmIndex("my_store", hnsw) |
DROPNONLINEARALGORITHMINDEX (hnsw) IN my_store | await client.dropNonLinearAlgorithmIndex("my_store", "hnsw") |
Server & system
| Command | Go |
|---|---|
PING | client.Ping(ctx) |
INFO SERVER | client.InfoServer(ctx) |
LIST CONNECTED CLIENTS | client.ListClients(ctx) |
Store management
| Command | Go |
|---|---|
LIST STORES | client.ListStores(ctx) |
GETSTORE my_store | client.GetStore(ctx, "my_store") |
CREATESTORE my_store DIMENSION 128 | client.CreateStore(ctx, "my_store", 128) |
DROPSTORE my_store | client.DropStore(ctx, "my_store") |
Data operations
| Command | Go |
|---|---|
SET doc1 [0.25,0.88] WITH {...} IN my_store | client.Set(ctx, "my_store", "doc1", []float64{0.25, 0.88}, map[string]string{"category": "news"}) |
DELKEY doc1 IN my_store | client.DeleteKey(ctx, "my_store", "doc1") |
DELPRED (category='archive') IN my_store | client.DeletePredicate(ctx, "my_store", "category='archive'") |
Query & retrieval
| Command | Go |
|---|---|
GETSIMN 3 WITH [...] USING cosine IN my_store | client.GetSimN(ctx, "my_store", []float64{0.25, 0.88}, 3, "cosine", "lang='en'") |
GETKEY doc1 IN my_store | client.GetKey(ctx, "my_store", "doc1") |
GETPRED (lang='en') IN my_store | client.GetByPredicate(ctx, "my_store", "lang='en'") |
Index management
| Command | Go |
|---|---|
CREATEPREDINDEX (category) IN my_store | client.CreatePredicateIndex(ctx, "my_store", "category") |
DROPPREDINDEX (category) IN my_store | client.DropPredicateIndex(ctx, "my_store", "category") |
CREATENONLINEARALGORITHMINDEX (hnsw) IN my_store | client.CreateNonLinearAlgorithmIndex(ctx, "my_store", NonLinearIndex_Hnsw) |
DROPNONLINEARALGORITHMINDEX (hnsw) IN my_store | client.DropNonLinearAlgorithmIndex(ctx, "my_store", "hnsw") |
Server & system
| Command | Rust |
|---|---|
PING | client.ping()?; |
INFO SERVER | client.info_server()?; |
LIST CONNECTED CLIENTS | client.list_clients()?; |
Store management
| Command | Rust |
|---|---|
LIST STORES | client.list_stores()?; |
GETSTORE my_store | client.get_store("my_store")?; |
CREATESTORE my_store DIMENSION 128 | client.create_store("my_store", 128)?; |
DROPSTORE my_store | client.drop_store("my_store")?; |
Data operations
| Command | Rust |
|---|---|
SET doc1 [0.25,0.88] WITH {...} IN my_store | client.set("my_store", "doc1", vec![0.25, 0.88], hashmap!{"category" => "news"})?; |
DELKEY doc1 IN my_store | client.delete_key("my_store", "doc1")?; |
DELPRED (category='archive') IN my_store | client.delete_predicate("my_store", "category='archive'")?; |
Query & retrieval
| Command | Rust |
|---|---|
GETSIMN 3 WITH [...] USING cosine IN my_store | client.get_sim_n("my_store", vec![0.25, 0.88], 3, "cosine", Some("lang='en'"))?; |
GETKEY doc1 IN my_store | client.get_key("my_store", "doc1")?; |
GETPRED (lang='en') IN my_store | client.get_by_predicate("my_store", "lang='en'")?; |
Index management
| Command | Rust |
|---|---|
CREATEPREDINDEX (category) IN my_store | client.create_predicate_index("my_store", "category")?; |
DROPPREDINDEX (category) IN my_store | client.drop_predicate_index("my_store", "category")?; |
CREATENONLINEARALGORITHMINDEX (hnsw) IN my_store | client.create_non_linear_algorithm_index("my_store", NonLinearIndex { hnsw })?; |
DROPNONLINEARALGORITHMINDEX (hnsw) IN my_store | client.drop_non_linear_algorithm_index("my_store", "hnsw")?; |
Next steps
- Command reference — what each command does.
- Client libraries — install and set up your SDK.
- Stores operations — full runnable examples per operation.