Skip to content

Could provide with the Schema with parameter and the corresponding prompt?  #19

Description

@bbirdxr

I have written some schemas with parameter myself, but they didn't work.

For example

Schema with parameter "quesiton"

<schema name="QA">
<module name="context">
<system>You are given a story, which can be either a novel or a movie script, and a question. Answer the question as concisely as you can, using a single phrase if possible. Do not provide any explanation.

Story:             [Picture: Book cover]
                                   THE
                                COXON FUND
                    This edition first published 1915
</system></module>
<module name="prefix"><user>Now, answer the question based on the story as concisely as you can, using a single phrase if possible. Do not provide any explanation.I need you first tell me your answer in a strict form " Year: [] " and  cite the original paragraph. Now, answer my question and follow all the intructions.
Question: <parameter name="question" length='8'/> </user></module>
</schema>

and the prompt fill the parameter

    prompt_text = f"""
    <prompt schema="QA">
    <context/>
    <prefix question="What is the picture in the text?"/>
    <assistant> I know the answer is: 
    </prompt>
        """

But the answer of the MPT LM is 'I don't know.' But if I change the Parameter section to Common Module, it works.
I would wonder is there something wrong with my usage? Thanks a lot! And I am very appreciate to follow your excellent work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions