-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Users/changliu2/ignite2024 hotfix random runs #270
Users/changliu2/ignite2024 hotfix random runs #270
Conversation
src/api/agents/product/product.py
Outdated
@@ -84,10 +84,25 @@ def retrieve_products(items, index_name): | |||
|
|||
|
|||
@trace | |||
def find_products(context: str) -> Dict[str, any]: | |||
def find_products(context: str, num_retries: int = 3) -> Dict[str, any]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to revise this code post Ignite. It sometimes works and sometimes does not. I'm finding it causes the product agent to break more times than not. Let's circle back soon
|
||
# Output format | ||
Only output the full array of specialized queries to make to the search index. Limit | ||
yoursef to 5 queries. | ||
|
||
user: | ||
{{context}} | ||
context: {{context}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the user input should not be in this format.
src/api/agents/designer/designer.py
Outdated
@@ -5,7 +5,7 @@ | |||
from openai import AzureOpenAI | |||
from azure.identity import DefaultAzureCredential, get_bearer_token_provider | |||
|
|||
def image_gen(image_prompt): | |||
def image_gen(image_prompt: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are currently not using the designer as dalle 3 availability is restricted
…hes; added retry logic up to 3 times and updated resaercher model to 4o
e2bba7d
to
aa52925
Compare
…~2m/article), and debugging msg to clarify use case of tracing
Purpose
Agents require GPT model output to follow certain format, but LLM models may behave non-deterministically and the code will error out. Errors rarely occur in products.py and researcher.py but they do.
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
Retries may increase running time up to 3 times.
How to Test
What to Check
Verify that the following are valid
Other Information