Retrieval-Augmented Generation (RAG) systems depend on a retriever that fetches context documents before passing them to an LLM. To best evaluate RAG quality, Openlayer needs to know what context was retrieved for each request. Once context is logged, you can use tests that leverage metrics such as context recall (did the retriever surface the right information?), context relevancy (how relevant was the retrieved content to the query?), and more.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.
How to log context
There are two main ways to provide context to Openlayer:The context must be passed as a list of strings (
List[str]). Each string
should represent a retrieved chunk/document.
