16 lines
587 B
Python
16 lines
587 B
Python
# Example usage of the Chatbot class:
|
|
from src.services.chatbot import Chatbot
|
|
from src.utils.document_loader import load_document
|
|
if __name__ == "__main__":
|
|
chatbot = Chatbot()
|
|
|
|
# Example inputs
|
|
path = r"C:\Users\User\Desktop\Blessing_AI\MKD\test_erp_ai\erp_ai\test\erp_ai\data\raw\coding_task_completion_document.pdf"
|
|
|
|
question = "Have you completed Task X?"
|
|
user_input = "Yes"
|
|
docs = load_document(path)
|
|
|
|
# Validate the worker's answer using the provided document
|
|
validation_result = chatbot.validate_worker(question, docs)
|
|
print(validation_result) |