parkervg / blendsql

Query language for blending SQL logic and LLM reasoning across structured + unstructured data. [Findings of ACL 2024]
https://parkervg.github.io/blendsql/
Apache License 2.0
72 stars 4 forks source link

Improve Logging #17

Closed parkervg closed 4 months ago

parkervg commented 4 months ago

This PR creates a _logger.py file to better handle debug logging for the library.

It also adds a PrettyDataFrame class in _smoothie.py, which just overrides the str and repr functions of a pd.DataFrame class.

I also upgraded tabulate to 0.9.0, allowing us to use tablefmt='simple_outline'

Examples of new logging are attached below.

Screenshot 2024-05-28 at 4 08 54 PM Screenshot 2024-05-28 at 4 09 28 PM