Skip to content
Snippets Groups Projects
Commit ea84b35c authored by spmohanty's avatar spmohanty
Browse files

remove dynamic character limit

parent 3ef4acb0
No related branches found
No related tags found
No related merge requests found
from typing import List from typing import List
class DummyModel: class DummyModel:
def __init__(self): def __init__(self):
""" Initialize your models here """ """ Initialize your models here """
pass pass
def generate_answer(self, query: str, search_results: List[str], character_limit: int) -> str: def generate_answer(self, query: str, search_results: List[str]) -> str:
""" """
You will be provided with a query and the corresponding pre-cached search results for the query You will be provided with a query and the corresponding pre-cached search results for the query
Inputs - Inputs -
query - String representing the input query query - String representing the input query
search_results - List of strings, each comes from scraped HTML text of the search query search_results - List of strings, each comes from scraped HTML text of the search query
character_limit - A maximum character limit for the answer (can vary per query)
Returns - Returns -
string response - Your answer in plain text, should be limited to the character limit, 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 Any longer responses will be trimmed to meet the character limit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment