From 824de74f64e76fb06a549b929790de68e60d1b94 Mon Sep 17 00:00:00 2001 From: Umang Mistry Date: Fri, 8 Mar 2024 17:40:57 -0600 Subject: [PATCH] Added prompt config table and made minor change in streamlit to test pipeline --- .../config_interface/R__001_PROMPT_CONFIG_TABLE.sql | 12 ++++++++++++ streamlit/constants.py | 1 + 2 files changed, 13 insertions(+) create mode 100644 snowflake/scripts/config_interface/R__001_PROMPT_CONFIG_TABLE.sql diff --git a/snowflake/scripts/config_interface/R__001_PROMPT_CONFIG_TABLE.sql b/snowflake/scripts/config_interface/R__001_PROMPT_CONFIG_TABLE.sql new file mode 100644 index 0000000..f4890fb --- /dev/null +++ b/snowflake/scripts/config_interface/R__001_PROMPT_CONFIG_TABLE.sql @@ -0,0 +1,12 @@ +CREATE TABLE STG.PROMPT_CONFIG ( + FIELD_NAME VARCHAR, + FIELD_DESC VARCHAR, + IS_REQUIRED BOOLEAN, + FIELD_DATA_TYPE VARCHAR, + PROMPT VARCHAR, + FM_MODEL_ID VARCHAR, + GROUP_ID NUMERIC, + FIELD_MAX_LENGTH NUMBER, + SAMPLE_VALUE VARCHAR, + CONTRACT_SECTION VARCHAR +); diff --git a/streamlit/constants.py b/streamlit/constants.py index 0f50fb6..6f1285c 100644 --- a/streamlit/constants.py +++ b/streamlit/constants.py @@ -8,6 +8,7 @@ from langchain_community.document_loaders import CSVLoader, PDFMinerLoader, Text from langchain_community.document_loaders import UnstructuredFileLoader, UnstructuredMarkdownLoader + # load_dotenv() # ROOT_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) ROOT_DIRECTORY = "\\\\amznfsxuofkyi1z.aarete.local\\SharedFiles\\AArete Client Work\\Modahealth\\Restricted\\Moda Growth\\Artificial Intelligence\\DEFAXXER_20231207"