Skip to content
SpanForge / SDK Service / Build phase

sf_rag

RAG pipeline instrumentation with @trace_rag decorator, retrieval scoring, grounding metrics, and automatic instrumentation for LlamaIndex and LangChain.

from spanforge import sf_rag
What it covers
  • @trace_rag decorator for zero-config tracing
  • trace_query() for manual span annotation
  • Retrieval scoring and grounding metrics
  • LlamaIndex auto-instrumentation
  • LangChain auto-instrumentation
  • Session lifecycle and privacy controls
Get started

Install once. Import per service.

All SDK services ship inside a single package. Install spanforge once and import only what you need.