-
Notifications
You must be signed in to change notification settings - Fork 409
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
Making Asynchronous API Requests - Colang 2.x in Firebase Environment #756
Comments
Hi @grupocopa The error "Providing |
Hey @Pouyanpi , thank you for your prompt response! I have a question: Without a threadId, how can different users maintain the conversation flow? In my case, I have a platform with numerous users, and I use asynchronous requests to deliver responses to them. How can I ensure that each user's conversation remains coherent, organized and the Colang flow state without relying on a threadId? Thank you for your assistance! |
Just a contribution here: I am trying to do the same thing with Colang 1.0 where we can have multiples users with asynchronous requests, but it's hard to maintain the flow control and the consistency of Bot and User intents for each response. @Pouyanpi, do you have any hints, directions or opinions to solve my case? Or just Colang 2.x can fix that problems? Thank you very much!! |
Hi @grupocopa, apologies for my delayed reply. As you need bot responses (i.e., message with role of "assistant") it is not possible to use thread_id with Colang 2.x configuration. I tagged this issue as enhancement and will probably open a PR which might resolve this issue. |
would you explain the issue you are facing a bit more? |
Hey @Pouyanpi, how are you? Apologies for the delayed response. Our platform has been growing rapidly, with more and more clients joining, and we're working to integrate NeMo Guardrails into our system. Regarding your previous inquiries, there are quite a few points to address, and I'm not sure if it's appropriate to go over all of them in this thread. But here we go: 1 - Resetting threadid when there is a bug or after server restart 2 - Bot occasionally stops responding to users and occasional failure of requests 3 - Events to control the flow and tags to track user behavior, assigning "status" to users to controlling flows We would also like the ability to assign a “status” to users, allowing us to create different flows based on their previous actions or history. This would greatly enhance the personalization of our interactions. We believe this can also be solved using the Event Channel feature. 4 - Accessing multiple KBs in the same agent via asynchronous requests On this link at documentation, on point 3 saying "Using a custom EmbeddingSearchProvider." maybe it's the solution to have multiple knowledge bases inputed by an external database, but I don't find clear examples to implement it. 5 - Collecting sensitive data without sending it to the LLM We are open to suggestions and would greatly appreciate any feedback or improvements you can offer to help us address these challenges. Again: thank you very much for all support and assistant! |
Hello @Pouyanpi, how are you going? Hope is very well!! Is there any update on the release date for the asynchronous API request functionality in our systems? We currently have around 200 users eagerly awaiting this update. 😁 As part of the NVIDIA Inception program, we recently attended an in-person event to build more connections within the NeMo ecosystem and gather support. Thank you very much for your attention! |
Hi @grupocopa it might be available in v0.12.0 release. Unfortunately it won't be part of 0.11.0 which will be released soon. I'll keep you posted. |
Hey @Pouyanpi, thank you!! We're growing fast our customer base and healthcare market, getting next to 600~ users, and Colang 2.x has features that we need to have more control on rails with our customers. Thank you very much for your attention! |
Context
I am encountering an issue while testing the NeMo Guardrails Framework Colang 2.x on a platform that utilizes a Firebase database. I have full control over events and thread IDs. My goal is to perform API requests to interact with my models within NeMo, similar to the capabilities in Colang 1.0, allowing asynchronous requests from different users with their respective userIds and threadIds.
Steps to Reproduce
1. System Configuration:
Operating System: Windows 10
NeMo Guardrails Version: 0.9.0
Colang Version: 2.x
Firebase: Used for managing events and threads
Virtual Machine: Compute Engine on Google Cloud Platform (GCP) for handling asynchronous requests
2. Functional Colang 1.0 Setup:
Utilizes asynchronous API and HTTP requests to communicate with actions.
flows.co:
actions.py:
Postman POST HTTP REQUEST:
3. Testing with Colang 2.x:
Initial tests using
nemoguardrails chat CLI
worked flawlessly.When executing the same requests via Postman, an error occurs after the first interaction.
Questions:
Are there any additional configurations required to support asynchronous requests in the Colang 2.x environment?
Thank you very much for all support, and this incredible tool that is helping us to scale our solutions :)
The text was updated successfully, but these errors were encountered: