File size: 465 Bytes
7a98bd3
 
 
f2daaee
e029e22
 
f2daaee
 
7a98bd3
 
 
f2daaee
e029e22
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Template for chat processor classes


class ChatProcessorBase:
    def __init__(self):
        pass

    def process(self, message):
        """
        Processes and Logs the message
        """
        raise NotImplementedError("process method not implemented")

    async def rag(self, user_query: dict, config: dict, chain):
        """
        Retrieves the response from the chain
        """
        raise NotImplementedError("rag method not implemented")