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
I haven't found an easy way within the library to log messages sent to/from the model. When debugging prompts and trying to ensure the model's response properly serializes to a Pydantic model, having this level of logging available would be very helpful.
The text was updated successfully, but these errors were encountered:
Hi @weaversam8 thanks for the issue. Here are a few things that might be useful to you.
Prompt-functions expose a format method that takes the same arguments as the function itself but returns the string prompt that will be sent to the model.
When the model output fails to be parsed by magentic, the exception traceback contains the pydantic validation error which shows what part of the model output caused the issue. An example showing the relevant part of the traceback is Update prompt to return NULL, but GPT model won't return NULL. #61 (comment)
Please let me know if there's something you think would be useful in addition to these. It seems like it would be useful for magentic to have its own debug logging.
I haven't found an easy way within the library to log messages sent to/from the model. When debugging prompts and trying to ensure the model's response properly serializes to a Pydantic model, having this level of logging available would be very helpful.
The text was updated successfully, but these errors were encountered: