raghavNCI
commited on
Commit
·
6f68e08
1
Parent(s):
2ad31e1
changes v9
Browse files- question.py +1 -1
question.py
CHANGED
@@ -30,7 +30,7 @@ async def ask_question(input: QuestionInput):
|
|
30 |
kw for kw in re.findall(r"\b\w{4,}\b", question.lower())
|
31 |
if kw not in STOPWORDS
|
32 |
]
|
33 |
-
query_string = "
|
34 |
encoded_query = quote_plus(query_string)
|
35 |
|
36 |
print("Query string", encoded_query)
|
|
|
30 |
kw for kw in re.findall(r"\b\w{4,}\b", question.lower())
|
31 |
if kw not in STOPWORDS
|
32 |
]
|
33 |
+
query_string = " OR ".join(f'"{kw}"' for kw in keywords[:7])
|
34 |
encoded_query = quote_plus(query_string)
|
35 |
|
36 |
print("Query string", encoded_query)
|