kotaemon/knowledgehub/chatbot/simple_respondent.py
Nguyen Trung Duc (john) 0a3fc4b228 Correct the use of abstractmethod (#80)
* Correct abstractmethod usage

* Update interface

* Specify minimal llama-index version [ignore cache]

* Update examples
2023-11-20 11:18:53 +07:00

12 lines
282 B
Python

from ..llms import ChatLLM
from .base import BaseChatBot
class SimpleRespondentChatbot(BaseChatBot):
"""Simple text respondent chatbot that essentially wraps around a chat LLM"""
llm: ChatLLM
def _get_message(self) -> str:
return self.llm(self.history).text