Update get_keywords_from_query
This commit is contained in:
parent
3607e61505
commit
75e8a10c21
1 changed files with 2 additions and 1 deletions
|
|
@ -836,7 +836,8 @@ async def get_keywords_from_query(
|
|||
Returns:
|
||||
A tuple containing (high_level_keywords, low_level_keywords)
|
||||
"""
|
||||
if not query_param.hl_keywords.empty() and not query_param.ll_keywords.empty():
|
||||
# Check if pre-defined keywords are already provided
|
||||
if query_param.hl_keywords or query_param.ll_keywords:
|
||||
return query_param.hl_keywords, query_param.ll_keywords
|
||||
|
||||
# Extract keywords using extract_keywords_only function which already supports conversation history
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue