From 356db3e74df4067dd4dde818cf606005bc2c2e03 Mon Sep 17 00:00:00 2001 From: albertbou92 Date: Sun, 27 Oct 2024 14:51:15 -0700 Subject: [PATCH] increase hotpotqa lookup range to a full paragraph --- packages/hotpotqa/src/aviary/hotpotqa/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hotpotqa/src/aviary/hotpotqa/env.py b/packages/hotpotqa/src/aviary/hotpotqa/env.py index 8e58275c..23c625df 100644 --- a/packages/hotpotqa/src/aviary/hotpotqa/env.py +++ b/packages/hotpotqa/src/aviary/hotpotqa/env.py @@ -445,7 +445,7 @@ def construct_lookup_list(self, keyword: str) -> str: self.state.last_lookup = keyword self.state.lookup_results = [ s.strip() + "." - for s in self.state.page.split(". ") + for s in self.state.page.split("\n") if s.strip() and keyword.lower() in s.lower() ] self.state.lookup_index = 0