From e783fbe2f613843e0defdf9934e14f8cf6eb1ede Mon Sep 17 00:00:00 2001 From: Charlie Date: Sun, 25 Jan 2026 19:10:57 -0500 Subject: [PATCH 1/4] Use local Rubrik font preload --- app/nl_query.py | 4 +++- app/templates/base.html | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/nl_query.py b/app/nl_query.py index 75f3e81..2bf445f 100644 --- a/app/nl_query.py +++ b/app/nl_query.py @@ -53,7 +53,8 @@ class State(TypedDict): ] ) -GENERATE_QUERY_PROMPT = lambda input: f""" +GENERATE_QUERY_PROMPT = ( + lambda input: f""" ``` SYSTEM Given an input question, create a syntactically correct SQLite3 query to run to help find the answer. Unless the user specifies in his question a specific number of examples they wish to obtain, you can return all the results that match the question. @@ -69,6 +70,7 @@ class State(TypedDict): {input} ``` """ +) llm = ChatOpenAI( model="gpt-4o", diff --git a/app/templates/base.html b/app/templates/base.html index dc7171e..d50df1a 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -10,9 +10,8 @@ From 445d79210ff9ce39c2a9c61e094402b403462ffe Mon Sep 17 00:00:00 2001 From: Charlie Date: Mon, 26 Jan 2026 11:31:09 -0500 Subject: [PATCH 2/4] Update app/templates/base.html Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- app/templates/base.html | 1 + 1 file changed, 1 insertion(+) diff --git a/app/templates/base.html b/app/templates/base.html index d50df1a..bfb84ee 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -12,6 +12,7 @@ as="font" href="{{ url_for('static', filename='fonts/rubrik/TPRubrik-Regular.woff2') }}" type="font/woff2" + crossorigin="anonymous" > From 66644861ebcfdd5585e8ac9af951a2b9ef203962 Mon Sep 17 00:00:00 2001 From: Ulthran Date: Mon, 26 Jan 2026 11:32:39 -0500 Subject: [PATCH 3/4] Update var name to non-builtin --- app/nl_query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/nl_query.py b/app/nl_query.py index 2bf445f..2b3b9fe 100644 --- a/app/nl_query.py +++ b/app/nl_query.py @@ -54,7 +54,7 @@ class State(TypedDict): ) GENERATE_QUERY_PROMPT = ( - lambda input: f""" + lambda user_input: f""" ``` SYSTEM Given an input question, create a syntactically correct SQLite3 query to run to help find the answer. Unless the user specifies in his question a specific number of examples they wish to obtain, you can return all the results that match the question. @@ -67,7 +67,7 @@ class State(TypedDict): ``` ``` USER -{input} +{user_input} ``` """ ) From 860d6c9928f06ff2e36b285005719ea958e611e5 Mon Sep 17 00:00:00 2001 From: Ulthran Date: Mon, 26 Jan 2026 11:35:34 -0500 Subject: [PATCH 4/4] Reformat (black==26.1) --- app/nl_query.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/nl_query.py b/app/nl_query.py index 2b3b9fe..606e381 100644 --- a/app/nl_query.py +++ b/app/nl_query.py @@ -53,8 +53,7 @@ class State(TypedDict): ] ) -GENERATE_QUERY_PROMPT = ( - lambda user_input: f""" +GENERATE_QUERY_PROMPT = lambda user_input: f""" ``` SYSTEM Given an input question, create a syntactically correct SQLite3 query to run to help find the answer. Unless the user specifies in his question a specific number of examples they wish to obtain, you can return all the results that match the question. @@ -70,7 +69,6 @@ class State(TypedDict): {user_input} ``` """ -) llm = ChatOpenAI( model="gpt-4o",