Assistants API + SQL Retrieval

Hello Clubmaple, I’m trying to do something similar. How did you go about explaining your database schema to the assistant , so it could recommend the SQL query given a user query in natural language ?

I tried given this as plain text in the system message content, while this works for small schemas with a handful of tables, this seems clumsy for schemas with several tables and complicated relationships.