The suggested solution is to use the Category Merchandiser, if you want to use the Magento position attribute to sort your results. This will allow you to promote items for specific categories, but it is separate from the position attribute.
The following steps show an alternative solution to this with a trade-off, that each item will need to have a single position attribute, and you will not be able to vary the position of an item depending on its category:
1. Add the position attribute via a php code block hooking into the indexing, as presented here: https://www.algolia.com/doc/integration/magento-2/guides/transform-indexed-attribute/?client=php
2. With the custom observer in place, the catalog needs to be re-indexed in order to for the changes to take effect. Read more about (re)indexing here.
3. Set up your Algolia integration to sort on the position attribute, as presented here: https://www.algolia.com/doc/integration/magento-2/how-it-works/indexing/?client=php#sorting-strategies
Lastly, another option would be to write a script using the PHP API client to create rules for category positions with the same rules context pattern that is being used for the Category Merchandiser.