Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,21 @@ curl -X POST http://localhost:8000/v1/traces/batch \

## Python SDK

Registry installation (after the corresponding PyPI release is available):

```bash
pip install magic-lab-observer
```

Before the first PyPI release, install from a checkout:

```bash
python -m pip install "./sdk/python[openai,anthropic,langchain]"
```

See [First-time setup](docs/first-time-setup.md#3-instrument-an-application)
for current registry availability and package identities.

```python
from llm_observatory import instrument, trace
from llm_observatory.tracer import Tracer
Expand Down Expand Up @@ -260,10 +271,18 @@ tracer.addExporter(new OTLPExporter({ endpoint: "http://localhost:8000" }));

## CLI

Registry installation (after the corresponding PyPI release is available):

```bash
pip install magic-lab-observer-cli
```

Before the first PyPI release, install from a checkout:

```bash
python -m pip install ./cli
```

```bash
# List traces from local SQLite
llm-observatory traces --db observatory.db
Expand Down