Skip to content

String stopping criteria might need to be more specific #6

@blackle

Description

@blackle

I see in the code and the readme that the stopping criteria for strings is the second quotation mark. However, in most json dialects you can escape a quote in a string with \". This appears sometimes so it's not impossible for the LLM to produce this, too.

e.g. the prompt might be "extract the second sentence from the following paragraph" and the paragraph is:

This is the first sentence. This is the "second" sentence. This is the third sentence.

The LLM would ideally output "This is the \"second\" sentence." but the parser wouldn't handle this correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions