concat_columns = str(",'-',".join([f'"{i}"' for i in self.columns]))
# concat_columns = str(",'-',".join([f'"{i}"' for i in self.columns]))
query = f"""
# query = f"""
SELECT
# SELECT
Concat({concat_columns})
# Concat({concat_columns})
FROM wine
# FROM wine
"""
# """
documents=db.load_data(query=query)
# documents = db.load_data(query=query)
self.index = GPTVectorStoreIndex(documents)
# self.index = GPTVectorStoreIndex(documents)
@tool(
# @tool(
name="Wine Recommendation",
# name="Wine Recommendation",
description="A tool to recommend wines based on a user's input. "
# description="A tool to recommend wines based on a user's input. "
"Inputs are necessary factors for wine recommendations, such as the user's mood today, side dishes to eat with wine, people to drink wine with, what things you want to do, the scent and taste of their favorite wine."
# "Inputs are necessary factors for wine recommendations, such as the user's mood today, side dishes to eat with wine, people to drink wine with, what things you want to do, the scent and taste of their favorite wine."
"The output will be a list of recommended wines."
# "The output will be a list of recommended wines."
"The tool is based on a database of wine reviews, which is stored in a database.",
# "The tool is based on a database of wine reviews, which is stored in a database.",