Semantic search optimization for AI