Skip to main content

Command → SDK map

Everything you can type as a DSL command (in the CLI) has a matching method call in each client library. With the AI proxy the big difference from raw DB usage is that you pass raw text (or images/audio) instead of vectors — the proxy embeds it for you either way, CLI or SDK.

Pick your language once with the tabs below and it stays selected across the page.

note

Signatures here are simplified to show the shape of each call. For full, runnable examples, follow each command's Stores operation page and choose the AI proxy tab.

One operation, every language

Creating a model-aware store (an index model to embed stored items, a query model to embed searches):

CREATESTORE article_store QUERYMODEL all-minilm-l6-v2 INDEXMODEL all-minilm-l6-v2

Full command map

Server & system

CommandPython
PINGclient.ping()
INFO SERVERclient.info_server()

Store management

CommandPython
LIST STORESclient.list_stores()
GETSTORE article_storeclient.get_store("article_store")
CREATESTORE … QUERYMODEL … INDEXMODEL …client.create_store("article_store", index_model="all-minilm-l6-v2", query_model="all-minilm-l6-v2")
DROPSTORE article_storeclient.drop_store("article_store")

Data operations

CommandPython
SET doc1 "…text…" WITH {...} IN article_storeclient.set("article_store", "doc1", "The future of AI in healthcare", {"category": "news"})
DELKEY doc1 IN article_storeclient.delete_key("article_store", "doc1")

Query & retrieval

CommandPython
GETSIMN 3 WITH ["…text…"] USING cosine IN article_storeclient.get_sim_n("article_store", "renewable energy storage", 3, "cosine", predicate="category!='sports'")
GETKEY doc1 IN article_storeclient.get_key("article_store", "doc1")
GETPRED (category='news') IN article_storeclient.get_by_predicate("article_store", "category='news'")

Index management

CommandPython
CREATEPREDINDEX (category) IN article_storeclient.create_predicate_index("article_store", "category")
DROPPREDINDEX (category) IN article_storeclient.drop_predicate_index("article_store", "category")
CREATENONLINEARALGORITHMINDEX (hnsw) IN article_storeclient.create_non_linear_algorithm_index("article_store", NonLinearIndex(hnsw=HNSWConfig()))
DROPNONLINEARALGORITHMINDEX (hnsw) IN article_storeclient.drop_non_linear_algorithm_index("article_store", "hnsw")

Next steps