Semantic search optimization for AI search algorithms