Update nodes/compare.py
Browse files- nodes/compare.py +0 -13
nodes/compare.py
CHANGED
|
@@ -60,19 +60,6 @@ async def compare_node_fn(state: CreditCardState) -> CreditCardState:
|
|
| 60 |
"CARD DATA:\n\n"
|
| 61 |
+ "\n\n".join(comparison_details)
|
| 62 |
)
|
| 63 |
-
debug_print("COMPARE_NODE", "Calling Llama for comparison")
|
| 64 |
-
else:
|
| 65 |
-
comparison_prompt = (
|
| 66 |
-
"Compare the following credit cards based on their benefits, fees, eligibility, and ideal use cases.\n\n"
|
| 67 |
-
"Instructions:\n"
|
| 68 |
-
"1. **STRICTLY** use only the card data provided below. Do NOT guess, assume, or hallucinate any information.\n"
|
| 69 |
-
"2. Keep the output short, structured, and highly readable.\n"
|
| 70 |
-
"3. Use markdown format with clear section headers like 'Comparison' and 'Recommendation'.\n"
|
| 71 |
-
"4. Use a concise list of bullet points for each card's benefits, fees, and limitations.\n"
|
| 72 |
-
"5. Conclude with a recommendation on which card suits which type of user.\n\n"
|
| 73 |
-
"CARD DATA:\n\n"
|
| 74 |
-
+ "\n\n".join(comparison_details)
|
| 75 |
-
)
|
| 76 |
else:
|
| 77 |
comparison_prompt = (
|
| 78 |
"Compare the following credit cards based on their benefits, fees, eligibility, and ideal use cases.\n\n"
|
|
|
|
| 60 |
"CARD DATA:\n\n"
|
| 61 |
+ "\n\n".join(comparison_details)
|
| 62 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
else:
|
| 64 |
comparison_prompt = (
|
| 65 |
"Compare the following credit cards based on their benefits, fees, eligibility, and ideal use cases.\n\n"
|