Scope of the integration

If you use LlamaIndex with OpenAI or Anthropic as the LLM backend then Baserun will log API calls generating embeddings and text completions for indexing, querying, retrieval, and response synthesis. Additionally, Baserun will add logs to a trace with more information on a retrieval e.g. which nodes were selected and what score they were assigned.

Example

Running this code should result in a trace looking like this:

Trace Details