Use QWEDQueryEngine wrapper for LlamaIndex to add verification to RAG pipelines. Includes math and fact checking for retrieval-augmented generation workflows.
from qwed_sdk.llamaindex import QWEDQueryEngine# Wrap any query engine with verificationverified_engine = QWEDQueryEngine(base_engine)response = verified_engine.query("What is 15% of 200?")print(response.verified) # True/Falseprint(response.response) # The answer