Retrieval-Augmented Generation (RAG) systems typically receive a user query that drives both retrieval and generation. Openlayer uses the question to compute metrics such as context relevancy (how well the retrieved context matches the query), answer relevancy (how well the answer addresses the query), and more. In most cases, you don’t need to do anything — Openlayer automatically infers the question from the first argument of the outermost traced function. Explicit logging is only necessary when:Documentation Index
Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
- the first argument is not the question (e.g. it’s a config object or a dict), or
- the question is constructed or transformed inside the pipeline before being used.
How to log the question
There are two main ways to provide the question to Openlayer:The question must be a string (
str) containing the user query.
