Skip to content
Snippets Groups Projects
dummy_model.py 803 B
Newer Older
Dipam Chakraborty's avatar
Dipam Chakraborty committed
from typing import List

Dipam Chakraborty's avatar
Dipam Chakraborty committed
class DummyModel:
    def __init__(self):
        """ Initialize your models here """
        pass

spmohanty's avatar
spmohanty committed
    def generate_answer(self, query: str, search_results: List[str]) -> str:
Dipam Chakraborty's avatar
Dipam Chakraborty committed
        """
        You will be provided with a query and the corresponding pre-cached search results for the query
        
        Inputs - 
            query - String representing the input query
            search_results - List of strings, each comes from scraped HTML text of the search query
        Returns - 
            string response - Your answer in plain text, should be limited to the character limit, 
                              Any longer responses will be trimmed to meet the character limit
        """
        answer = "I'm sorry, I can't help with that."
        return answer