{"uid":"cap_qF-hEsnyCIy012DwemrK1","slug":"rag-gedx402-com-ai-search-query-7718aabb","name":"rag.gedx402.com AI Search Query","description":"Run Cloudflare AI Search inference on Cloudflare Workers AI (cloudflare-ai-search) via POST JSON. Pay per request with USDC on Base, Polygon, Arbitrum, World, or Solana (x402 v2); see x-payment-info for price bounds and accepted networks.","url":"https://rag.gedx402.com/v1/aisearch/:id/query","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string"},"top_k":{"type":"integer"},"rerank":{"type":"boolean"},"messages":{"type":"array","items":{"type":"object"}},"rewrite_query":{"type":"boolean"},"session_token":{"type":"string"},"retrieval_type":{"enum":["hybrid","vector","keyword"],"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T5Ze56t-7vPOk_H6LhLF8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs RAG-powered semantic search over an indexed knowledge base, returning ranked text chunks relevant to a natural-language query","exampleAgentPrompt":"Search the index 'kb-001' for the top 5 most relevant chunks about 'quarterly revenue forecasting best practices' using hybrid retrieval, with reranking enabled.","exampleUseCases":[{"title":"Customer support agent finding relevant policies","prompt":"Search our support knowledge base for the top 3 most relevant passages about refund eligibility and timelines so you can give this customer an accurate answer."},{"title":"Legal research assistant querying case law","prompt":"Find the 10 most relevant case citations and legal precedents related to software licensing disputes from our indexed law library using semantic search."},{"title":"Sales enablement finding competitive intel","prompt":"Search the competitive analysis index for the top 4 chunks about how our pricing compares to similar enterprise solutions so I can brief the sales team."}],"resultDescription":"A JSON object containing a count of returned chunks and an array of chunk objects, each with an ID, the text content, and a relevance score (0–1). Example: {count: 1, chunks: [{id: 'chunk-1', text: '...', score: 0.9}]}.","failureModes":["Invalid or non-existent index ID returns 404 or empty results","Insufficient USDC payment results in 402 Payment Required response","top_k value outside 1–50 range may return validation error","Unsupported retrieval_type enum value causes request rejection","Empty query string with no messages array may return error or zero results","Network timeout on slow queries with large top_k or reranking enabled"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use RAG search without managing API keys or infrastructure — ideal for agents that need to query a specific pre-indexed knowledge base (identified by :id) using natural language, with optional hybrid/vector/keyword retrieval modes and reranking, paying micro-amounts in USDC on supported chains.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:37:19.183Z","isFirstParty":false}