Capture the RAG documents used in your LLM pipelines
@langwatch.span(type="rag")
decorator, along with a call to .update()
to add the contexts
to the span:RAGChunk
, as this allows them to be grouped together and generate documents analytics on LangWatch dashboard: