You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Qualitative text generation using the LLM is currently available only through the UI.
What
Added new task type called qualitative_text_generation in the vm.experimental.agents.run_task.
Why
Qualitative text generation using the LLM is currently available only through the UI. This change will allow generate qualitative section from ValidMind library.
Qualitative text generation using the LLM is currently available only through the UI. This change provide interfaces to generate text for a specific section of document using the vm.experimental.agents.run_task method.
Deployment Notes
Breaking Changes
Screenshots/Videos (Frontend Only)
The content will be generated using the code above and it will visible in the model_overview text block section.
This pull request enhances the run_task function in the validmind/experimental/agents.py file to support a new task type: qualitative_text_generation. Previously, the function only supported the code_explainer task. The change involves modifying the conditional check to include qualitative_text_generation and dynamically constructing the API endpoint URL based on the task type. This allows the function to handle requests for both code_explainer and qualitative_text_generation tasks by sending a POST request to the appropriate endpoint.
Test Suggestions
Test the run_task function with the code_explainer task to ensure existing functionality is not broken.
Test the run_task function with the qualitative_text_generation task to verify the new functionality works as expected.
Test the run_task function with an unsupported task to ensure it raises a ValueError.
Simulate a network failure and test if the function raises a requests.exceptions.RequestException.
This pull request enhances the run_task function in the validmind/experimental/agents.py module to support a new task type: qualitative_text_generation. Previously, the function only supported the code_explainer task. The change involves modifying the conditional check to include qualitative_text_generation and dynamically constructing the API endpoint URL based on the task type. This allows the function to handle requests for both code_explainer and qualitative_text_generation tasks by sending a POST request to the appropriate endpoint.
Test Suggestions
Test run_task with task set to code_explainer to ensure existing functionality is not broken.
Test run_task with task set to qualitative_text_generation to verify the new functionality works as expected.
Test run_task with an unsupported task to ensure it raises a ValueError.
Simulate a network failure and ensure run_task raises a requests.exceptions.RequestException.
This pull request enhances the run_task function in the validmind/experimental/agents.py module to support a new task type: qualitative_text_generation. Previously, the function only supported the code_explainer task. The change involves modifying the conditional check to include qualitative_text_generation and dynamically constructing the API endpoint URL based on the task type. This allows the function to handle requests for both code_explainer and qualitative_text_generation tasks by sending a POST request to the appropriate endpoint.
Test Suggestions
Test run_task with task set to code_explainer to ensure existing functionality is not broken.
Test run_task with task set to qualitative_text_generation to verify the new functionality works as expected.
Test run_task with an unsupported task to ensure it raises a ValueError.
Simulate a network failure and ensure run_task raises a requests.exceptions.RequestException.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Qualitative text generation using the LLM is currently available only through the UI.
What
Added new task type called
qualitative_text_generationin thevm.experimental.agents.run_task.Why
Qualitative text generation using the LLM is currently available only through the UI. This change will allow generate qualitative section from ValidMind library.
How to Test
where, task type is
qualitative_text_generation. This will generate text through LLM functionality.Pull Request Dependencies
https://github.com/validmind/backend/pull/1444
External Release Notes
Qualitative text generation using the LLM is currently available only through the UI. This change provide interfaces to generate text for a specific section of document using the
vm.experimental.agents.run_taskmethod.Deployment Notes
Breaking Changes
Screenshots/Videos (Frontend Only)
The content will be generated using the code above and it will visible in the
model_overviewtext block section.Checklist
Areas Needing Special Review
Additional Notes