Comments (8)
How much large is your payload?
from langstream.
Also, what's the next agent in your pipeline? Another python agent or a builtin agent?
from langstream.
Looks like it's 11646340 (~11MB).
Next one is a build-in agent:
- name: "Extract text"
id: "extract-text"
type: "text-extractor"
from langstream.
Adding stackstrace:
java.lang.RuntimeException: gRPC server sent error: RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 11646340
at ai.langstream.agents.grpc.GrpcAgentSource$1.onError(GrpcAgentSource.java:136)
at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:487)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:576)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:757)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:736)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 11646340
at io.grpc.Status.asRuntimeException(Status.java:539)
... 10 common frames omitted
from langstream.
Making it run as a standalone agent by providing input
/output
unfortunately, doesn't solve the issue.
from langstream.
@cbornet is it possible to change the max size of the GRPC payload ?
from langstream.
I'm quite sure it's possible to change max inbound size using ManagedChannelBuilder
in PythonGrpcServer.java:90
. Possible also in insecure_channel
in python server. This however won't solve the root problem. Agent may generate payload much bigger than 11 MB.
This is a design choice. Should payload size be bound to some arbitrary max size, or is there some way of splitting the data on transport?
from langstream.
We can increase the GRPC max message length (up to 2GB it seems).
GRPC itself should be fine.
We're using a local socket so we don't go through HTTP proxies that could feel bad about it.
But with very large documents the contraints will mostly be on the pod memory.
Also note that it's important to have a composable agent afterwards to chunk the data before sending it to the streaming engine as neither Kafka nor Pulsar will be happy with a big payload.
from langstream.
Related Issues (20)
- mini-langstream getting started (deploy sample app) fails with: Missing required option: '--instance=<instanceFilePath>'
- mini-langstream start suggestion fails to deploy due to incorrect path
- [Feature request] Add more automatic configuration for LangChain LLMs for Python processors HOT 2
- [Feature request] Toggle for showing credentials in log
- langstream apps deploy should provide more beginner friendly help if it can't connect to annot connect to http://localhost:8090/api/applications/ HOT 1
- java.lang.RuntimeException: Missing some input keys: {'query'} for source record KafkaRecord.KafkaConsumerRecord HOT 8
- LangStream pipeline UI has disconnect when LangChain is used
- LangStream has no Windows support HOT 1
- PGVector as vector db HOT 2
- ProduceConsumeHandlerTest.testSendEvents is flaky
- write-to-astra sink to support JSON API HOT 2
- Langstream does not work on windows. HOT 1
- redirection to a forbidden domain happened without slash suffix character in the web crawler HOT 1
- Provisioned disks for custom agent permission denied HOT 3
- Allow runtime upgrade of existing applications HOT 1
- Copy artifacts into the container before compiling
- langstream python run-tests should quote all arguments
- Support GPU in Kubernetes cluster
- SimpleHeader values not decoding properly in log-event agent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langstream.