Open DSLituiev opened 2 months ago
Hi @DSLituiev , which LM is this for? Supporting backends for expected generations/parsing for chat models is WIP. You can overcome some of this through proper stopping conditions or external parsing of the generations where needed.
This is gpt3.5 it works better with gpt4 anyhow, the output of gpt3.5 seems reasonable-ish to be parseable
On Thu, Apr 18, 2024 at 2:00 PM arnavsinghvi11 @.***> wrote:
Hi @DSLituiev https://github.com/DSLituiev , which LM is this for? Supporting backends for expected generations/parsing for chat models is WIP. You can overcome some of this through proper stopping conditions or external parsing of the generations where needed.
— Reply to this email directly, view it on GitHub https://github.com/stanfordnlp/dspy/issues/847#issuecomment-2064767740, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAJGMUO2CILW6Z476YWXXTY6AC4FAVCNFSM6AAAAABGKM4FEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRUG43DONZUGA . You are receiving this because you were mentioned.Message ID: @.***>
-- Dima Lituiev, PhD
@DSLituiev Were you able to get past this issue?
No. Using Gpt4 for now
On Mon, Apr 22, 2024 at 10:03 PM canada4663 @.***> wrote:
@DSLituiev https://github.com/DSLituiev Were you able to get past this issue?
— Reply to this email directly, view it on GitHub https://github.com/stanfordnlp/dspy/issues/847#issuecomment-2071413760, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAJGMT2XXKVEELBX2U6ZALY6XTS5AVCNFSM6AAAAABGKM4FEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZRGQYTGNZWGA . You are receiving this because you were mentioned.Message ID: @.***>
-- Dima Lituiev, PhD
This issue is being observed with Bedrock Anthropic Sonnet LM as well. Using similar signature with ChainOfThought module. I also observed that on each invocation, predictor is calling invoke API twice and updating request args.
Have you figured out better parsing approach? I came across the same issue with Bedrock Anthropic Sonnet
The OutputField in a custom dspy.Signature are not getting parsed
The result is:
inspecting the LLM log: