Update get_keywords_from_query
Browse files- lightrag/operate.py +2 -1
lightrag/operate.py
CHANGED
@@ -836,7 +836,8 @@ async def get_keywords_from_query(
|
|
836 |
Returns:
|
837 |
A tuple containing (high_level_keywords, low_level_keywords)
|
838 |
"""
|
839 |
-
if
|
|
|
840 |
return query_param.hl_keywords, query_param.ll_keywords
|
841 |
|
842 |
# Extract keywords using extract_keywords_only function which already supports conversation history
|
|
|
836 |
Returns:
|
837 |
A tuple containing (high_level_keywords, low_level_keywords)
|
838 |
"""
|
839 |
+
# Check if pre-defined keywords are already provided
|
840 |
+
if query_param.hl_keywords or query_param.ll_keywords:
|
841 |
return query_param.hl_keywords, query_param.ll_keywords
|
842 |
|
843 |
# Extract keywords using extract_keywords_only function which already supports conversation history
|