Re:What's up in the Python community? – April 2023
by nwiswell on Friday April 28, 2023 @05:59PM
(#35747608)
> you can still do useful things with it that you couldn't before like
> ...
> If f(n) is the nth Fibonacci number schedule an appointment in f(5) days
hmmm
Re:What's up in the Python community? – April 2023
by IanCal on Friday April 28, 2023 @06:08PM
(#35747710)
That's absolutely not what they said. Let's keep hn better than that.
Re:What's up in the Python community? – April 2023
by nwiswell on Friday April 28, 2023 @06:11PM
(#35747747)
It's obviously tongue-in-cheek, but it's also not not what they said.
Re:What's up in the Python community? – April 2023
by IanCal on Friday April 28, 2023 @06:32PM
(#35747939)
It is not what they said. That was an example of complicated work with dates, which easily hits the level of "more complicated than you need". Before that, and before the cut in the quote was an obvious use case easily explained. I don't know why you want to go down this route but I won't engage further.
Re:What's up in the Python community? – April 2023
by axutio on Friday April 28, 2023 @06:26PM
(#35747897)
Is this a setup you've already built? Could you outline what you've glued together for this bot?
Re:What's up in the Python community? – April 2023
by Spivak on Friday April 28, 2023 @07:36PM
(#35748495)
Oh sure! So the OCR is a statically linked build of tesseract based on [1] and pytesseract [2] which is a super thin wrapper but easier than writing it yourself. The I stole/modified the prompt from [3] to get the bot to write Python programs that do date calculations. Then I used [4] to take the output in case the Llm didn't use the format I asked. I run the Python code it generates in a rootless container that uses the Lambda RIE [5] because I was too lazy to make my own thing.
[1] https://github.com/wingedrhino/static-tesseract
[2] https://pypi.org/project/pytesseract/
[3] https://python.langchain.com/en/latest/modules/agents/tools/...
[4] https://pypi.org/project/dateparser/
[5] https://docs.aws.amazon.com/lambda/latest/dg/images-test.htm...
Look, even if you're the most biggest skeptic of all the AI stuff you can still do useful things with it that you couldn't before like present full-English interfaces and get embeddings for arbitrary text which is a leap compared to word2vec for search. I can dm my discord bot a picture of an appointment confirmation text and it with OCR + LLm it just schedules the event in my calendar. Also by gluing a v8 isolate to the LLm I can give it much more complicated date calculations. My favorite was "If f(n) is the nth Fibonacci number schedule an appointment in f(5) days."