Menu

Post image 1
Post image 2
1 / 2
0

LlamaIndex + x711: enrich your RAG pipeline with real-time tools

DEV Community·x711io·18 days ago
#L6ggFyRf
#llamaindex#ai#rag#python#agent#tools
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More