Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Mansitos opened this issue Jul 28, 2023 · 2 comments
Closed

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

Mansitos opened this issue Jul 28, 2023 · 2 comments

Comments

@Mansitos
Copy link

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

@J0
Copy link
Collaborator

J0 commented Sep 15, 2023

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

@silentworks
Copy link
Contributor

Stale issue so closing this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants