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

LangServe playground crashes on browser due to out of memory #699

Open
explocion opened this issue Jun 30, 2024 · 2 comments
Open

LangServe playground crashes on browser due to out of memory #699

explocion opened this issue Jun 30, 2024 · 2 comments

Comments

@explocion
Copy link

Description:
I was trying to build a RAG application where the retrieved context is HUGE. When I run it from the langserve playground, my browser crashes due to out of memory. I suspect it was because saving the stream log in the frontend was using to much memory (64 chunks with 2000 characters per chunk).

Steps to Reproduce:

  1. Build a RAG application
  2. Retrieve with a large context

Attempted Solution:
Reducing the number of chunks works, but I really need a huge number of chunks for my application.

@juliushuck
Copy link

Same problem here stream_logs seems to get a lot of events and then the browser tab crashes. I also retrieve with a huge retriever that is using a lot of llm calls and so on.

@wywgong
Copy link

wywgong commented Nov 14, 2024

Same problem here, it seems the stream_logs return too many intermediate process data.

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