If you’re running a self-hosted Laminar instance, point the SDK at it by passingDocumentation Index
Fetch the complete documentation index at: https://laminar.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
baseUrl, httpPort, and grpcPort to evaluate(). Evaluations talk to Laminar over two channels: HTTP for evaluation metadata, datapoints, and scores; gRPC for the OpenTelemetry traces.
Configuration
- TypeScript
- Python
baseUrl / base_url is the scheme + host only. Do not include a port in it; the ports go in httpPort / grpcPort.evaluate parameters
| Parameter | Description | Default |
|---|---|---|
data | List of datapoints or a LaminarDataset instance. | required |
executor | (Optionally async) function that takes data and returns the output to score. | required |
evaluators | Map of name → scoring function. Each function returns a number or map of numbers. | required |
name | Evaluation name shown in the UI. | random |
groupName / group_name | Group identifier. Only runs sharing a group name can be compared. | default |
metadata | Arbitrary JSON on the evaluation row for filtering. | none |
projectApiKey / project_api_key | Overrides LMNR_PROJECT_API_KEY. | env |
baseUrl / base_url | Laminar host (no port). | https://api.lmnr.ai |
httpPort / http_port | HTTP port for evaluation metadata and datapoints. | 443 |
grpcPort / grpc_port | gRPC port for OTel traces. | 8443 |
concurrencyLimit / batch_size | Parallel executor invocations. | 5 |
instrumentModules / instrument_modules | Client modules to instrument (e.g. OpenAI, Anthropic). | none |
Why both HTTP and gRPC
- HTTP (
httpPort) carries the bookkeeping: evaluation name, group, datapoints, scores, executor outputs. - gRPC (
grpcPort) carries the OpenTelemetry spans: every LLM call, tool call, evaluator, and the wrappingEVALUATION/EXECUTOR/EVALUATORspans.
Hosting options
For how to actually run a self-hosted Laminar (Docker Compose for single-node, Helm for Kubernetes, and the hybrid data-plane variant) see Hosting options.Next steps
Quickstart
Write your first evaluation against your self-hosted instance.
Hosting options
Docker Compose, Helm, and hybrid data-plane deployment options.
Manual API
Use
LaminarClient.evals for finer control; the same base-URL + port config applies.SDK reference
Full parameters for
evaluate and related SDK types.