import pandas as pd, json
df = pd.read_excel('/Users/maxim.ziatdinov/Code/SciLink/planning_session_20260319_183527/knowledge/PWSdatabase.xlsx')
{"all_element_columns": all_element_cols, "requested_elements": [c for c in specific if c in df.columns], "critical_mineral_columns": critical_minerals, "rare_earth_columns_found": ree_found}
summary = f"The database contains {len(all_element_cols)} element/mineral concentration columns; all 8 requested elements (Li, Sr, Ba, Mg, Na, K, Ca, Cu) are present; {len(critical_minerals)} critical mineral columns found ({', '.join(critical_minerals)}
print(json.dumps({"answer": answer, "summary": summary}))
