The Sitemap directive
If you use a Sitemap file to describe your site's structure, indicate the path to the file as a parameter of the Sitemap
directive (if you have multiple files, indicate all paths). Example:
User-agent: Yandex
Allow: /
sitemap: https://example.com/site_structure/my_sitemaps1.xml
sitemap: https://example.com/site_structure/my_sitemaps2.xml
The directive is intersectional, meaning it is used by the robot regardless of its location in robots.txt
.
The robot remembers the path to your file, processes your data and uses the results during the next visit to your site.