def__init__(self):self.server=Server("complete-ollama-mcp-server")self.db_path="data.db"self.ollama_client=ollama.Client()self.country_data=self._load_country_data()self._setup_handlers()def_load_country_data(self):"""Load country information from CSV files for RAG retrieval."""data={}script_dir=Path(__file__).parentinfo_types=['capital','population','height','foundation_year']forinfo_typeininfo_types:try:file_path=script_dir/f'{info_type}.csv'df=pd.read_csv(file_path)# Convert country names to lowercase for case-insensitive matchingdata[info_type]=dict(zip(df['country'].str.lower(),df[info_type]))exceptExceptionase:print(f"Error loading {info_type}.csv: {e}",file=sys.stderr)data[info_type]={}returndata