chatbot as a function

  • 0 Replies
  • 4093 Views
*

Zero

  • Eve
  • ***********
  • 1287
chatbot as a function
« on: July 19, 2019, 10:26:42 am »
Here is a Fibonacci algorithm implemented in Erlang:

Code
fib(1) -> 1;
fib(2) -> 1;
fib(N) -> fib(N - 2) + fib(N - 1).

I was thinking, a chatbot is a bit like a huge function. The function parameter is the user's query, the returned value is the bot's reply. Maybe a programming language could be based on this idea, a chatbot as a function. A pattern on the left hand side, a template on the right hand side, sounds familiar. But in a functional language, functions call functions to do their work, so it would be like tiny chatbots asking things to other tiny chatbots in the thinkbot's mind. A thinking process.

 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
Today at 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

298 Guests, 0 Users

Most Online Today: 346. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles