-
Notifications
You must be signed in to change notification settings - Fork 30
Description
It seems that the script to query/store has a problem with the functions being used to process the files in Supabase and retrieving them.
The functions don't seem to match what is being called for example, check the error below.
raise APIError(dict(json_obj))
postgrest.exceptions.APIError: {'message': 'Could not find the function public.match_main_documents(match_count, max_results, query_embedding) in the schema cache', 'code': 'PGRST202', 'hint': 'Perhaps you meant to call the function public.match_main_documents(filter, match_count, query_embedding)', 'details': 'Searched for the function public.match_main_documents with parameters match_count, max_results, query_embedding or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.'}
2025-05-31 00:25:42,298 - rag.query - ERROR - Error with similarity_search_with_score: {'message': 'Could not find the function public.match_main_documents(match_count, max_results, query_embedding) in the schema cache', 'code': 'PGRST202', 'hint': 'Perhaps you meant to call the function public.match_main_documents(filter, match_count, query_embedding)', 'details': 'Searched for the function public.match_main_documents with parameters match_count, max_results, query_embedding or with a single unnamed json/jsonb parameter, but no matches were found in the schema cache.'}