How do I install the Python SDK?
Install helix-py using your preferred Python package manager:How do I connect to HelixDB with Python?
Set up aClient to connect to your HelixDB instance:
Python
6969, but you can change it by passing in the port parameter.
For cloud instances, you can pass in the api_endpoint parameter.
How do I execute queries with the Python SDK?
Define queries in a PyTorch-like manner, similar to neural network forward passes. Use built-in queries for common operations or define custom queries for complex workflows.PyTorch-like query definition
Match your HelixQL queries with Python classes:query.hx
Python
Query.query method returns a list of objects.
How do I manage HelixDB instances with Python?
Use theInstance class to manage HelixDB lifecycle automatically within your Python scripts:
Python
helixdb-cfg is the directory where the configuration files are stored.
and from there you can interact with the instance using Client.
The instance will be automatically stopped when the script exits.
How do I use LLM providers with HelixDB?
Integrate popular LLM providers directly with HelixDB using built-in provider interfaces. Available providers:OpenAIProviderGeminiProviderAnthropicProvider
enable_mcps(name: str, url: str=...) -> boolto enable Helix MCP toolsgenerate(messages, response_model: BaseModel | None=None) -> str | BaseModel
- Free-form text: pass a string
- Message lists: pass a list of
dictor provider-specificMessagemodels
- OpenAI GPT-5 family models support reasoning while other models use temperature.
- Anthropic local streamable MCP is not supported; use a URL-based MCP.
How do I generate embeddings with HelixDB?
Use built-in embedder interfaces to generate vector embeddings from popular providers. Available embedders:OpenAIEmbedderGeminiEmbedderVoyageAIEmbedder
embed(text: str, **kwargs)returns a vector[F64]embed_batch(texts: List[str], **kwargs)returns a list of vectors[F64]
examples/llm_providers/providers.ipynb for more):
How do I chunk text for embeddings?
Split text into manageable pieces using Chonkie chunking methods:How do I load data into HelixDB?
The loader supports.parquet, .fvecs, and .csv files. Pass your file path and column names to automatically load data into your queries.