Getting started with HelixDBs Python SDK.
Client
to interface with a running helix instance:
6969
, but you can change it by passing in the port
parameter.
For cloud instances, you can pass in the api_endpoint
parameter.
helix/client.py
to get started with inserting and search vectors, or you can define your own queries for more complex workflows.
Pytorch-like Query
Given a HelixQL query like this:
Query.query
method returns a list of objects.
Instance
that manages and automatically starts and stops a helix instance with respect
to the lifetime of the script:
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.
OpenAIProvider
GeminiProvider
AnthropicProvider
OPENAI_API_KEY
, GEMINI_API_KEY
, and ANTHROPIC_API_KEY
environment variables depending on the provider you are using.enable_mcps(name: str, url: str=...) -> bool
to enable Helix MCP toolsgenerate(messages, response_model: BaseModel | None=None) -> str | BaseModel
dict
or provider-specific Message
modelsOpenAIEmbedder
GeminiEmbedder
VoyageAIEmbedder
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):
helix/loader.py
) currently supports .parquet
, .fvecs
, and .csv
data. Simply pass in the path to your
file or files and the columns you want to process and the loader does the rest for you and is easy to integrate with
your queries