Skip to content

Commit e715ec3

Browse files
committed
set language to vi for google searchh
1 parent e06f238 commit e715ec3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/engines/search/google_search.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def find_related_documents(self, keywords: List[str]) -> List[str]:
2626
result = self.service.cse().list(
2727
q=query,
2828
cx=self.cse_id,
29-
num=10
29+
num=10,
30+
lr='lang_vi',
31+
hl='vi'
3032
).execute()
3133

3234

0 commit comments

Comments
 (0)