supabase-py icon indicating copy to clipboard operation
supabase-py copied to clipboard

The operation did not complete (write) (_ssl.c:2396)

Open Mansitos opened this issue 2 years ago • 1 comments
trafficstars

I'm getting error

The operation did not complete (write) (_ssl.c:2396)

while loading embeddings through langhchain on supabase.

The function that get this error is: self.embeddings_db = SupabaseVectorStore.from_documents(self.docs, self.embeddings, client=supabase_client)

specifically, the error is produced in row: result = client.from_(table_name).insert(chunk).execute() from supabase.py file, function _add_vectors()

By changing chunk_size variable to a smaller value (it is hard-coded to 500) it fixes the problem.

Any suggestion? any way to change chunk_size?

image

Mansitos avatar Jul 28 '23 09:07 Mansitos

Perhaps it might be timing out as we use httpx which has a built in timeout of 5s. Don't think the js client has a timeout - was going to suggest moving the vector store to vecs which is an official Supabase-py for embeddings and probably more performant for working with embeddings

Do you mind opening an issue about this on langchain instead? Feel free to tag me if needed

J0 avatar Sep 15 '23 14:09 J0

Stale issue so closing this one out.

silentworks avatar Apr 28 '24 22:04 silentworks