Skip to main content

Local viewer for agent retrieval traces — open a trace_state.json in the Graphsight Studio with one command, no backend.

Project description

graphsight

Open an agent retrieval trace in your browser with one command.

pip install graphsight
graphsight path/to/trace_state.json

That's it — a local server starts (stdlib only, zero dependencies), your browser opens, and the Graphsight Studio renders the trace: the retrieved entities as a graph, relational edges between them, per-item scores, and the execution timeline of the run that produced it. No backend, no account, no telemetry — nothing leaves localhost.

Where traces come from

Any tool that emits the Studio's TraceState JSON. Today that's:

  • graphsight-langgraph — trace any LangGraph agent with one callback handler:

    pip install "graphsight-langgraph[example]"
    graphsight-github-trace langchain-ai/langgraph "who fixed the recent streaming bugs?"
    graphsight graphsight_out/trace_state.json
    
  • The full TraceRAG engine (this repo) — its /api/trace responses are the same shape.

LlamaIndex and raw-OTel adapters are planned; they'll emit the same schema.

CLI

graphsight [trace_state.json] [--port 4630] [--no-browser]
  • With a trace file: serves it and opens /memory/import?src=… — the Studio auto-loads it.
  • Without: opens the import page, where you can drag-and-drop or paste JSON.

How it's built

The package bundles a static build of the Studio UI (Vite + React + React Flow) and serves it with Python's stdlib http.server — which is why the dependency list is empty. The UI source lives in frontend/ in the main repo; to refresh the bundle:

cd frontend && npm run build
rm -rf ../graphsight/graphsight/dist
cp -r dist ../graphsight/graphsight/dist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphsight-0.1.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphsight-0.1.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file graphsight-0.1.0.tar.gz.

File metadata

  • Download URL: graphsight-0.1.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for graphsight-0.1.0.tar.gz
Algorithm Hash digest
SHA256 785981117b42c939b4665357c69b108827b59bcb14333142b369073b24f3808d
MD5 3f200d9e7671162649e2bcca79e5e00e
BLAKE2b-256 aa8395690127005b3c75589a07c446df5556bde205baadc948dc4cfe47071163

See more details on using hashes here.

File details

Details for the file graphsight-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: graphsight-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for graphsight-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff3ab4e69b697931d5a7b9e1f5e7912b3a033fbb197c3f69abc36775b1e825c4
MD5 8a3db543683e8d6a8e2658cd50c6f1aa
BLAKE2b-256 b12862639ae6710b4f98ba0270e51410be3626ab86d20c400de19bc4bb94e92b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page