concat_columns = str(",'-',".join([f'"{i}"' for i in self.columns]))
query = f"""
SELECT
Concat({concat_columns})
FROM wine
"""
documents=db.load_data(query=query)
self.index = GPTVectorStoreIndex(documents)
@tool(
name="Wine Recommendation",
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."
"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.",
# concat_columns = str(",'-',".join([f'"{i}"' for i in self.columns]))
# query = f"""
# SELECT
# Concat({concat_columns})
# FROM wine
# """
# documents = db.load_data(query=query)
# self.index = GPTVectorStoreIndex(documents)
# @tool(
# name="Wine Recommendation",
# 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."
# "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.",