LlamaIndex + x711: enrich your RAG pipeline with real-time tools LlamaIndex excels at retrieval over static document corpora. x711 plugs in the real-time layer — live web, live prices, live on-chain data — so your agents don't stale-answer questions that changed yesterday. Install pip install llama-index llama-index-agent-openai requests Enter fullscreen mode Exit fullscreen mode FunctionTool wrappers import requests from llama_index.core.tools import FunctionTool from llama_index.agent.openai import OpenAIAgent X711_KEY = " x711_your_key_here " # free: POST /api/onboard def _x ( tool : str , ** kwargs ) -> dict : return requests . post ( " https://x711.io/api/refuel " , headers = { " X-API-Key " : X711_KEY }, json = { " tool " : tool , ** kwargs }, timeout = 15 , ). json () def web_search ( query : str ) -> str : """ Search the live web. Use for recent events, news, current data.…