mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-08-17 02:10:31 +03:00
feat: Update ChatLiteLLM model and add RLS optimization for notifications (#2591)
This pull request updates the ChatLiteLLM model to "gpt-4o" and adds a row-level security (RLS) optimization for notifications. It also includes a new SQL script to drop and create a policy for allowing user access to all notifications.
This commit is contained in:
parent
59124ba0d4
commit
1b60f59ad7
@ -90,7 +90,7 @@ class SummaryAssistant(ITO):
|
||||
|
||||
data = loader.load()
|
||||
|
||||
llm = ChatLiteLLM(model="gpt-3.5-turbo", max_tokens=2000)
|
||||
llm = ChatLiteLLM(model="gpt-4o", max_tokens=2000)
|
||||
|
||||
map_template = """The following is a document that has been divided into multiple sections:
|
||||
{docs}
|
||||
|
11
backend/supabase/migrations/20240514080520_rls_optim.sql
Normal file
11
backend/supabase/migrations/20240514080520_rls_optim.sql
Normal file
@ -0,0 +1,11 @@
|
||||
drop policy "allow_user_all_notifications" on "public"."notifications";
|
||||
|
||||
create policy "allow_user_all_notifications"
|
||||
on "public"."notifications"
|
||||
as permissive
|
||||
for all
|
||||
to public
|
||||
using ((user_id = ( SELECT auth.uid() AS uid)));
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user