SQL Decorator created for TABLE_SCHEMA creation#11
Conversation
|
Very interesting idea and implementation. Here are a few comments / observations.
@schema_decorator
|
…oved the string concated prompts into that instead of in the prompt.py
|
@anshum4n-git for the 1st point if we add the decorator above the class we might have to get the schema like while if we define a function we could just use |
|
Updated implementation example - |
…ss itself instead of creating another function and adding decorator there. Updated it's test as well
|
|
I have added a yet another implementation. Below is how we can do it Now we can just add some new parameters in the decorator and then it will automatically track the schema and query based on that. I have also updated the readme with the explanation of the edge cases |
Summary
This PR implements the support for Schema Generation ( #6 ). Now instead of manually writing the own " Create table " command. A new decorator " class SQLTableSchemaDecorator " is created which can be added about the functions signature just like we implement any api using foundation sql.
Closes #6
Implementation