/cognitive-assistant

NLP chatbot answering questions about science

Primary LanguagePython

Your mission is to implement an 💬NLP chatbot answering questions about science.

You will add your logic to the main.py file inside the execute function.

def execute(request: SimpleText, ray: OpenfabricExecutionRay) -> SimpleText:
    output = []
    for text in request.text:        
        response = '' # <<< --Your magic goes here
        output.append(response)

    return SimpleText(dict(text=output))

Constraints and restrictions

You are free to use any package or library you see feet as long as you follow these rules:

  • 👎 You can't call any external service (e.g. chatGPT)
  • 👎 You can't copy and paste from other peoples work

Run

The application can be executed in two different ways:

  • locally by running the start.sh
  • on in a docker container using Dockerfile