Documentation

Learn how to use NurLogic

Quick Start

Get started in 60 seconds

1. Install the SDK

pip install nurlogic

2. Initialize and trace

from nurlogic import NurLogic

nl = NurLogic(api_key="nl_your_key")

with nl.trace("chat-completion") as trace:
    response = openai.chat.completions.create(
        model="gpt-4",
        messages=[{"role": "user", "content": "Hello!"}]
    )
    trace.log_llm(model="gpt-4", output=response)

3. View in Dashboard

Your traces will appear in the Dashboard automatically.

Getting Started

Quick start guide to set up NurLogic

SDK Reference

Complete SDK API documentation

Evaluations

RAGAS metrics and evaluation guides

API Reference

REST API documentation

API Endpoints

Key endpoints for the NurLogic API

EndpointMethodDescription
/api/v1/ingest/trace
POST
Ingest a trace from SDK
/api/v1/ingest/batch
POST
Batch ingest traces/spans
/api/v1/traces
GET
List traces with filters
/api/v1/traces/:id
GET
Get trace with spans
/api/v1/evaluations/run
POST
Run RAGAS evaluation