feat(embeddings): add embedding model support and related changes
* Introduced EmbeddingModel method in Client and Provider interfaces * Updated InsertThought and SearchThoughts methods to handle embedding models * Created embeddings table and updated match_thoughts function for model filtering * Removed embedding column from thoughts table * Adjusted permissions for new embeddings table
This commit is contained in:
7
migrations/009_rls_and_grants.sql
Normal file
7
migrations/009_rls_and_grants.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Grant these permissions to the database role used by the application.
|
||||
-- Replace amcs_user with the actual role in your deployment before applying.
|
||||
grant ALL ON TABLE public.thoughts to amcs;
|
||||
grant ALL ON TABLE public.projects to amcs;
|
||||
grant ALL ON TABLE public.thought_links to amcs;
|
||||
grant ALL ON TABLE public.embeddings to amcs;
|
||||
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO amcs;
|
||||
Reference in New Issue
Block a user