Can a local chatbot be considered a P2P system?

Asked

Viewed 54 times

1

At first I had made a chatbot that connected to Telegram, but as the message goes through a server I believe that it does not characterize as a p2p system (client, client).

Then I made a chatbot simple that, from a training, responds my messages through the terminal. I don’t know much about networks so I don’t know if this communication is characterized as (client, client) communicating with each other.

Follows the code of chatbot local:

# -*- codding: utf-8 -*-
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
import os

chatbot = ChatBot("Futaba")

trainer = ListTrainer(chatbot)

for arquivos in os.listdir('arquivos'):
    chats = open('arquivos/' + arquivos, 'r').readlines()
    trainer.train(chats)

print("Hey, meu nome é Futaba")
response = chatbot.get_response("Hey!")
print(response)

while True:
    resq = input('Você: ')
    resp = chatbot.get_response(resq)
    if float(response.confidence) > 0.9:
        print('Futaba: ' + str(resp))
    else:
        print('Como você tem se sentido?')

Is it characterized as a par-par system? If not, it is possible to modify this so that it becomes or is preferable to make another using one framework like the Pyro?

  • Why do you need to do this kind of grading? It’s some college job?

  • Does this explain p2p https://answall.com/a/71039/3635 I don’t understand the subject to talk about.

  • Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site

1 answer

4

To be peer to peer needs to be able to connect one chat with another without intermediaries.

Worse yet, a chatbot should operate on an existing chat and not be a chat if it is a chat, before being a chatbot you have a chat. A chatbot could in theory even work on something that has no connection at all.

So the whole question doesn’t make sense, including the final part, it looks for relationship in things that don’t exist, network and bot are things that can have a weak relationship at a given time but are different things. I don’t even know why that’s important.

If it were a chat it would have some sense and then wonder if it depends on a server to work or not, or if it depends only to establish an initial connection or if every conversation goes through it. The issue of Telegram has to do with being P2P or not, the chatbot has nothing to do with it.

This would not yet be a distributed system, the distribution only occurs if the main processing is distributed.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.