AI retrieval pipeline