supabase-community / chatgpt-your-files

Production-ready MVP for securely chatting with your documents using pgvector

Home Page:https://youtu.be/ibzlEQmgPPY

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chat, AI API and Embedding not working

SyntecDTx opened this issue · comments

Bug report

Describe the bug

The Amount of ebbendings in the documents_section is never full. It Varies from 4 to 15 rows who have a vector embbeding. Others are NULL. Also the Chat is not working. I can type in the Questions, but only see the dots moving for 1-3 Seconds/ 1/2 animation rotations.

Moreover, when I use the new "const model = new Supabase.ai.Session('gte-small');" I get 0 vector embeddings. With the old one I atleast got some ...

Would be nice if you can help me out.

Bildschirm­foto 2024-05-18 um 19 01 00 Bildschirm­foto 2024-05-18 um 19 01 19

Hey @SyntecDTx,

  • The partial NULL embeddings is most likely caused by this previous CPU limit issue. This issue was solved using the new Supabase.ai.Session() API.

  • If Supabase.ai.Session() doesn't work, try checking which version of the edge runtime you are running:

    npx supabase services

    You will need to be on at least version v1.40.4, but the latest version is recommended.

    If you're below that version, upgrade your supabase CLI:

    npm i -D supabase

    You can read more info here.

Let me know if this helps!

Thank you for your Answere. I checked the version. I am currently on v1.49 so this should be fine. In the attached Image you can see the Terminal Problem. Also it is ounderlined in curly red :(

Bildschirm­foto 2024-05-19 um 01 16 30

Hi, i just followed your steps of the linked ressource. Thank you very much. stopping superbase seems to be working! Thank you :)