Skip to content

Commit

Permalink
1.1.4a3 release, logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
george1459 committed Apr 17, 2024
1 parent 95240ad commit bf73a44
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Package metadata
name = "suql"
version = "1.1.4a2"
version = "1.1.4a3"
description = "Structured and Unstructured Query Language (SUQL) Python API"
author = "Shicheng Liu"
author_email = "[email protected]"
Expand All @@ -22,7 +22,7 @@
'tiktoken==0.4.0',
'psycopg2-binary==2.9.7',
'pglast==5.3',
'FlagEmbedding==1.2.5',
'FlagEmbedding~=1.2.5',
'litellm==1.34.34'
]

Expand Down
1 change: 0 additions & 1 deletion src/suql/prompt_continuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@


logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
# create file handler which logs even debug messages
fh = logging.FileHandler("prompts.log")
fh.setLevel(logging.DEBUG)
Expand Down
6 changes: 6 additions & 0 deletions src/suql/sql_free_text_support/execute_free_text_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,12 @@ def suql_execute(
`create_userpswd` (str, optional): above user's password with create privilege in db. Defaults to "creator_role".
`source_file_mapping` (Dict(str -> str), optional): Experimental feature - a dictionary mapping from variable
names to the file locations. This would support queries that only need a free text source, e.g.,
`suql = answer(yelp_general_info, 'what is your cancellation policy?')`. In this case, you can specify
`source_file_mapping = {"yelp_general_info": "PATH TO FILE"}` to inform the SUQL compiler where to find
`yelp_general_info`.
# Returns:
`results` (List[[*]]): A list of returned database results. Each inner list stores a row of returned result.
Expand Down

0 comments on commit bf73a44

Please sign in to comment.