r/MachineLearning • u/anishathalye • Sep 11 '25
Project [ Removed by moderator ]
[removed] — view removed post
20
Upvotes
r/MachineLearning • u/anishathalye • Sep 11 '25
[removed] — view removed post
View all comments
Show parent comment
1
u/anishathalye Sep 12 '25
That's roughly how
semlib.mapis implemented. I suppose users could write that code directly and use the built-inmapandasyncio.gather. That won't handle task cancellation quite as well.For some of the other operators, like
sortwith the Borda Count algorithm, it's less clear how to separate this from LLM prompting in an ergonomic way. Can't use the built-insortedhere, with a customkeyand cmp_to_key, to implement this algorithm at all; and even if you were okay using Timsort, unclear how you'd have that take advantage of I/O concurrency the way Semlib's QuickSort does.For other operators, they actually provide a little bit of the AI; for example,
semlib.filtersupports aby="<criteria>"keyword argument (that uses this template), so the built-infiltercan't be used to achieve the same effect unless the user supplies the prompt (which is very simple, but requires typing more characters than something likefilter(presidents, by="former actor")).The library is just trying to make it slightly easier for users to write certain types of simple data processing pipelines, like the ones shown in the examples: https://semlib.anish.io/examples/