Spaces:
Sleeping
Sleeping
File size: 390 Bytes
485fdc3 945355d 2067fe1 945355d 2067fe1 11517f4 | 1 2 3 4 5 6 7 8 9 10 11 12 | def llm_node(question, search_result):
# Check if search_result is a list of dicts
if isinstance(search_result, list):
combined_result = " ".join(
item.get("content", "") for item in search_result if isinstance(item, dict)
)
else:
combined_result = str(search_result)
combined_answer = combined_result.strip()
return combined_answer
|