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

PostgresDB connection Fails sporadically with Large knowledge section. #2085

Open
joco25 opened this issue Jan 10, 2025 · 3 comments
Open

PostgresDB connection Fails sporadically with Large knowledge section. #2085

joco25 opened this issue Jan 10, 2025 · 3 comments
Labels
bug Something isn't working Need Feedback

Comments

@joco25
Copy link

joco25 commented Jan 10, 2025

Describe the bug
When you have a larger knowledge section, Postgres Supabase connection timeout sporadically.

To Reproduce

  • Create a characterfile
  • Load the characterfiles knowledge section with 5 PDFs of large content extracted properly
  • Add Postgres URL to env, "URL" can be gotten from NeonDB or Supabase (this will allow for the use of Postgres.
  • Execute repo with new character file
  • Wait a couple of hours for memory creation and embeddings

Expected behavior

  • Embeddings are created successfully like they work when using SQLite (Even though it takes about 8hrs with SQLite)

Screenshots

Additional context
Snippets from error:
`⚠ WARNINGS Database operation failed (attempt 1/10): {"error":"Connection terminated unexpectedly","nextRetryIn":"5.6s"}

node:events:491 throw er; // Unhandled 'error' event ^

<ref *1> Error: read ECONNRESET at TLSWrap.onStreamRead (node:internal/stream_base_commons:216:20) Emitted 'error' event on BoundPool instance at: at Client.idleListener
...
{ errno: -54, code: 'ECONNRESET', syscall: 'read', client: Client { _events: [Object: null prototype] { error: [Function (anonymous)] }, _eventsCount: 1, _maxListeners: undefined, connectionParameters:
`

@joco25 joco25 added the bug Something isn't working label Jan 10, 2025
Copy link
Contributor

Hello @joco25! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor!

@AIFlowML
Copy link
Collaborator

The connection with the DB is dropped.
What DB is this Supabase ?

Please let me know i leave the bug open.

@joco25
Copy link
Author

joco25 commented Jan 12, 2025

Yes, @AIFlowML it happens with Supabase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Need Feedback
Projects
None yet
Development

No branches or pull requests

2 participants