This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AnswersToDocs(BaseComponent): | |
""" | |
This Node is used to convert retrieved documents into predicted answers format. | |
It is useful for situations where you are calling a Retriever only pipeline via REST API. | |
This ensures that your output is in a compatible format. | |
:param progress_bar: Whether to show a progress bar | |
""" | |
outgoing_edges = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import paho.mqtt.client as paho | |
import os | |
import socket | |
import ssl | |
from time import sleep | |
from random import uniform | |
import json | |
import logging | |
logging.basicConfig(level=logging.INFO) |