Anis Benna
Anis Benna
hmm, maybe the case is similar to mine. It's not "not working" per-say, but can definitely work better. ## What works I have a micro-services architecture and many micro-services are...
I also had something similar happen with a `repo/repo.code-workspace` config file: ```json { "folders": [ { "name": "user-service", "path": "user-service" }, { "name": "product-service", "path": "product-service" } ], "settings": {...
I also have the same issue configuring Ingress console access with [this helm chart](https://github.com/minio/minio/tree/master/helm/minio). ```yml consoleIngress: enabled: true annotations: cert-manager.io/cluster-issuer: app-clusterissuer nginx.ingress.kubernetes.io/rewrite-target: /$2 path: /minio(/|$)(.*) hosts: - my.application.com tls: -...
That's because [debian 9 (stretch)](https://en.wikipedia.org/wiki/Debian_version_history#Release_table) is not maintained anymore. You can update the image to `debian:bullseye-slim` instead. You also need to use openjdk-11 instead [since openjdk-8 is not in the...
I am not a fan of using `stdout` when not necessary, therefore I created my own `CustomAsyncCallbackHandler` based on `AsyncIteratorCallbackHandler` for now, until PR [#5937](https://github.com/langchain-ai/langchain/pull/5937) is merged: ```python import asyncio...
> Trying the above, but want to include intermediate steps in terms of Tools usage, really difficult as I don't have a way to distinguish between final output and intermediate...
> @usersina can you refer to the documentation explaining that you can directly stream the final output. I have only found the same stream method that streams intermediare steps and...
Here's a full minimal working example, taking from all of the answers above (with typings, [modularity using Blueprints](https://flask.palletsprojects.com/en/2.3.x/blueprints/) and minimal error handling as a bonus): To explain how it all...
My previous solution is a performance killer, so here's a better, more concise one: ```python import asyncio import json from langchain.callbacks.streaming_aiter import AsyncIteratorCallbackHandler from langchain.memory import ConversationSummaryBufferMemory from langchain.chains import...
> > ```python > > memory = ConversationSummaryBufferMemory( > > llm=OpenAI(), chat_memory=[] > > ) > > handler = AsyncIteratorCallbackHandler() > > conversation = ConversationChain( > > llm=OpenAI(streaming=True, callbacks=[handler]), memory=memory...