Skip to content

possible Supabase function issue? #1

@ymg

Description

@ymg

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.'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions