Improvements (#20)

- set intersection: simplified merge prompt
- sorting: fixed split prompt
- fixed white space issues
- fixed typos
- fixed a few consistency issues
This commit is contained in:
Robert Gerstenberger 2023-11-24 14:43:45 +01:00 committed by GitHub
parent ac4a35ea9f
commit a6aee6bb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 364 additions and 407 deletions

View File

@ -65,7 +65,7 @@ Here is the summary NDA <S>:
"""
score_prompt_base = """The following NDA <S> merges NDAs <Doc1> - <Doc{num}>.
Please score the merged NDA <S> in terms of how much redundant information is contained, independent of the original NDAs, as well as how much information if retained from the original NDAs.
Please score the merged NDA <S> in terms of how much redundant information is contained, independent of the original NDAs, as well as how much information is retained from the original NDAs.
A score of 10 for redundancy implies that absolutely no information is redundant, while a score of 0 implies that at least half of the information is redundant (so everything is at least mentioned twice).
A score of 10 for retained information implies that all information from the original NDAs is retained, while a score of 0 implies that no information is retained.
You may provide reasoning for your scoring, but the final score for redundancy should be between the tags <Redundancy> and </Redundancy>, and the final score for retained information should be between the tags <Retained> and </Retained>, without any additional text within any of those tags.

View File

@ -18,8 +18,8 @@ Here are NDAs <Doc1> - <Doc4>
{doc3}
</Doc3>
<Doc4>
{doc4}
<Doc4>
{doc4}
</Doc4>
```
@ -27,7 +27,7 @@ Here are NDAs <Doc1> - <Doc4>
Replace `{doc1}`, `{doc2}`, `{doc3}`, and `{doc4}` with the NDAs that are supposed to be merged and `{s}` with the merged summary NDA that is to be scored.
```
The following NDA <S> merges NDAs <Doc1> - <Doc4>.
Please score the merged NDA <S> in terms of how much redundant information is contained, independent of the original NDAs, as well as how much information if retained from the original NDAs.
Please score the merged NDA <S> in terms of how much redundant information is contained, independent of the original NDAs, as well as how much information is retained from the original NDAs.
A score of 10 for redundancy implies that absolutely no information is redundant, while a score of 0 implies that at least half of the information is redundant (so everything is at least mentioned twice).
A score of 10 for retained information implies that all information from the original NDAs is retained, while a score of 0 implies that no information is retained.
You may provide reasoning for your scoring, but the final score for redundancy should be between the tags <Redundancy> and </Redundancy>, and the final score for retained information should be between the tags <Retained> and </Retained>, without any additional text within any of those tags.
@ -46,8 +46,8 @@ Here are NDAs <Doc1> - <Doc4>:
{doc3}
</Doc3>
<Doc4>
{doc4}
<Doc4>
{doc4}
</Doc4>
Here is the summary NDA <S>:
@ -77,8 +77,8 @@ Here are the original NDAs <Doc1> - <Doc4>:
{doc3}
</Doc3>
<Doc4>
{doc4}
<Doc4>
{doc4}
</Doc4>
Here are the summary NDAs <S1> - <S{num_ndas_summaries}>:
@ -107,8 +107,8 @@ Here are NDAs <Doc1> - <Doc4>:
{doc3}
</Doc3>
<Doc4>
{doc4}
<Doc4>
{doc4}
</Doc4>
Here is the summary NDA <S>:
@ -131,10 +131,10 @@ NON-DISCLOSURE AGREEMENT (NDA)
1. Agreement between [Your Company Name] and [Recipient Name] on [Date].
2. Information sharing for the purpose of [specific project or purpose].
3. ”ConfidentialInformation”includesallpotentiallycommerciallyvaluableinformation,specificallysoftwaredevelopment tactics, processes, and in-house research results.
3. "ConfidentialInformation" includes all potentially commercially valuable information, specifically software development tactics, processes, and in-house research results.
4. Receiving party is obligated to protect the Confidential Information, use it solely for the disclosed purpose, and not disclose it without consent.
5. Breach penalties include injunctive relief, other remedies, and a $200,000 fee per breach.
6. The Agreement applies to the Parties and their successors and assigns. It contains all related agreements and lack of enforcement doesnt imply waiver.
6. The Agreement applies to the Parties and their successors and assigns. It contains all related agreements and lack of enforcement doesn't imply waiver.
7. The Agreement is under the laws of [State].
8. Signed by [Your Company Name] and [Recipient Name] at the above date.
```
@ -171,34 +171,34 @@ Signed as of the Effective Date by [Your Company Name] - Disclosing Party [Recip
```
CONFIDENTIALITY & NON-DISCLOSURE AGREEMENT
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Objective:
To safeguard classified data during talks of a potential technological alliance.
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
Specification of Protected Information:
Particularly:
a. System designs and architectural schematics.
b. Proprietary computational algorithms.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
Legal Reference:
Governed as per [State]'s legal framework.
Legal Reference:
Governed as per [State]'s legal framework.
Attestation:
Duly signed on [Date].
Attestation:
Duly signed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
```
@ -207,34 +207,33 @@ b. Proprietary computational algorithms.
```
SECRECY & DISCLOSURE AGREEMENT
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
a. Internal software blueprints.
b. Intellectual property awaiting patents.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Juridical Standpoint:
Under the auspices of [State] laws.
Juridical Standpoint:
Under the auspices of [State] laws.
Ratification:
Confirmed and endorsed on [Date].
Ratification:
Confirmed and endorsed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
```
@ -288,34 +287,34 @@ Signed as of the Effective Date by [Your Company Name] - Disclosing Party [Recip
<Doc3>
CONFIDENTIALITY & NON-DISCLOSURE AGREEMENT
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Objective:
To safeguard classified data during talks of a potential technological alliance.
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
Specification of Protected Information:
Particularly:
a. System designs and architectural schematics.
b. Proprietary computational algorithms.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
Legal Reference:
Governed as per [State]'s legal framework.
Legal Reference:
Governed as per [State]'s legal framework.
Attestation:
Duly signed on [Date].
Attestation:
Duly signed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc3>
@ -323,34 +322,33 @@ b. Proprietary computational algorithms.
<Doc4>
SECRECY & DISCLOSURE AGREEMENT
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
a. Internal software blueprints.
b. Intellectual property awaiting patents.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Juridical Standpoint:
Under the auspices of [State] laws.
Juridical Standpoint:
Under the auspices of [State] laws.
Ratification:
Confirmed and endorsed on [Date].
Ratification:
Confirmed and endorsed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc4>
@ -776,7 +774,7 @@ Confirmed and endorsed on [Date].
### Step 1 Scoring for Best Response - Prompt
```
The following NDA <S> merges NDAs <Doc1> - <Doc4>.
Please score the merged NDA <S> in terms of how much redundant information is contained, independent of the original NDAs, as well as how much information if retained from the original NDAs.
Please score the merged NDA <S> in terms of how much redundant information is contained, independent of the original NDAs, as well as how much information is retained from the original NDAs.
A score of 10 for redundancy implies that absolutely no information is redundant, while a score of 0 implies that at least half of the information is redundant (so everything is at least mentioned twice).
A score of 10 for retained information implies that all information from the original NDAs is retained, while a score of 0 implies that no information is retained.
You may provide reasoning for your scoring, but the final score for redundancy should be between the tags <Redundancy> and </Redundancy>, and the final score for retained information should be between the tags <Retained> and </Retained>, without any additional text within any of those tags.
@ -827,34 +825,33 @@ Signed as of the Effective Date by [Your Company Name] - Disclosing Party [Recip
<Doc3>
CONFIDENTIALITY & NON-DISCLOSURE AGREEMENT
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
a. System designs and architectural schematics.
b. Proprietary computational algorithms.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
Legal Reference:
Governed as per [State]'s legal framework.
Legal Reference:
Governed as per [State]'s legal framework.
Attestation:
Duly signed on [Date].
Attestation:
Duly signed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc3>
@ -862,34 +859,33 @@ b. Proprietary computational algorithms.
<Doc4>
SECRECY & DISCLOSURE AGREEMENT
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
a. Internal software blueprints.
b. Intellectual property awaiting patents.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Juridical Standpoint:
Under the auspices of [State] laws.
Juridical Standpoint:
Under the auspices of [State] laws.
Ratification:
Confirmed and endorsed on [Date].
Ratification:
Confirmed and endorsed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc4>
@ -1011,7 +1007,7 @@ Note: Remember to remove the reasoning from between the tags when providing the
```
The following NDAs <S1> - <S3> each merge the initial NDAs <Doc1> - <Doc4>.
Combine the merged NDAs <S1> - <S3> into a new one, maximizing their advantages and overall information retention, while minimizing redundancy.
Output only the new NDA between the tags <Merged> and </Merged>, without any additional text.
Output only the new NDA between the tags <Merged> and </Merged>, without any additional text.
Here are the original NDAs <Doc1> - <Doc4>:
@ -1059,34 +1055,33 @@ Signed as of the Effective Date by [Your Company Name] - Disclosing Party [Recip
<Doc3>
CONFIDENTIALITY & NON-DISCLOSURE AGREEMENT
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
a. System designs and architectural schematics.
b. Proprietary computational algorithms.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
Legal Reference:
Governed as per [State]'s legal framework.
Legal Reference:
Governed as per [State]'s legal framework.
Attestation:
Duly signed on [Date].
Attestation:
Duly signed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc3>
@ -1094,34 +1089,33 @@ b. Proprietary computational algorithms.
<Doc4>
SECRECY & DISCLOSURE AGREEMENT
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
a. Internal software blueprints.
b. Intellectual property awaiting patents.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Juridical Standpoint:
Under the auspices of [State] laws.
Juridical Standpoint:
Under the auspices of [State] laws.
Ratification:
Confirmed and endorsed on [Date].
Ratification:
Confirmed and endorsed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc4>
@ -1795,34 +1789,33 @@ Signed as of the Effective Date by [Your Company Name] - Disclosing Party [Recip
<Doc3>
CONFIDENTIALITY & NON-DISCLOSURE AGREEMENT
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
a. System designs and architectural schematics.
b. Proprietary computational algorithms.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
Legal Reference:
Governed as per [State]'s legal framework.
Legal Reference:
Governed as per [State]'s legal framework.
Attestation:
Duly signed on [Date].
Attestation:
Duly signed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc3>
@ -1830,34 +1823,33 @@ b. Proprietary computational algorithms.
<Doc4>
SECRECY & DISCLOSURE AGREEMENT
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
a. Internal software blueprints.
b. Intellectual property awaiting patents.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Juridical Standpoint:
Under the auspices of [State] laws.
Juridical Standpoint:
Under the auspices of [State] laws.
Ratification:
Confirmed and endorsed on [Date].
Ratification:
Confirmed and endorsed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc4>
@ -2441,7 +2433,7 @@ Confirmed and endorsed on [Date].
```
The following NDA <S> merges NDAs <Doc1> - <Doc4>.
Please score the merged NDA <S> in terms of how much redundant information is contained, independent of the original NDAs, as well as how much information if retained from the original NDAs.
Please score the merged NDA <S> in terms of how much redundant information is contained, independent of the original NDAs, as well as how much information is retained from the original NDAs.
A score of 10 for redundancy implies that absolutely no information is redundant, while a score of 0 implies that at least half of the information is redundant (so everything is at least mentioned twice).
A score of 10 for retained information implies that all information from the original NDAs is retained, while a score of 0 implies that no information is retained.
You may provide reasoning for your scoring, but the final score for redundancy should be between the tags <Redundancy> and </Redundancy>, and the final score for retained information should be between the tags <Retained> and </Retained>, without any additional text within any of those tags.
@ -2492,34 +2484,33 @@ Signed as of the Effective Date by [Your Company Name] - Disclosing Party [Recip
<Doc3>
CONFIDENTIALITY & NON-DISCLOSURE AGREEMENT
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Entities Involved:
Effective [Date], between [AquaBlue Innovations], established in [State], and [PineTree Solutions], a registered entity.
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
Objective:
To safeguard classified data during talks of a potential technological alliance.
Specification of Protected Information:
Particularly:
a. System designs and architectural schematics.
b. Proprietary computational algorithms.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Receiver's Obligations:
a. Maintain strict non-disclosure using best practices.
b. Employ solely for the aforementioned aim.
c. No unveiling without explicit authorization.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
Violation Ramifications:
A charge of $280,000 for every infringement, plus possible legal proceedings.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
General Terms:
Binding for both parties and any successors. This encapsulates the entire accord.
Legal Reference:
Governed as per [State]'s legal framework.
Legal Reference:
Governed as per [State]'s legal framework.
Attestation:
Duly signed on [Date].
Attestation:
Duly signed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc3>
@ -2527,34 +2518,33 @@ b. Proprietary computational algorithms.
<Doc4>
SECRECY & DISCLOSURE AGREEMENT
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Contracting Parties:
Dated [Date], drawn between [AquaBlue Innovations], a [State]-based corporation, and [PineTree Solutions], a licensed organization.
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
Aim:
To protect exclusive insights amidst dialogues for a technological partnership.
Categorization of Sensitive Data:
Includes:
a. Internal software blueprints.
b. Intellectual property awaiting patents.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Commitments of Recipient:
a. Uphold confidentiality, ensuring data integrity.
b. Utilize strictly for collaborative ventures.
c. No exposure without prior consensus.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Repercussions for Non-Compliance:
$295,000 fine for each transgression, and the option for legal recourse.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Overall Provisions:
Legally enforceable for signatories and successors. Complete and sole agreement.
Juridical Standpoint:
Under the auspices of [State] laws.
Juridical Standpoint:
Under the auspices of [State] laws.
Ratification:
Confirmed and endorsed on [Date].
Ratification:
Confirmed and endorsed on [Date].
[AquaBlue Innovations] [PineTree Solutions]
</Doc4>

View File

@ -10,7 +10,7 @@ Only output the final 4 paragraphs in the following format without any additiona
"Paragraph 2": "Some paragraph text ...",
"Paragraph 3": "Some paragraph text ...",
"Paragraph 4": "Some paragraph text ..."
}
}
</Instruction>
<Example>
@ -18,7 +18,7 @@ Input:
Journeying westward, she admired the art in Italy and sipped coffee in France. The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away. She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia. Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Output:
{
"Paragraph 1": "Journeying westward, she admired the art in Italy and sipped coffee in France. ",
"Paragraph 1": "Journeying westward, she admired the art in Italy and sipped coffee in France.",
"Paragraph 2": "The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.",
"Paragraph 3": "She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.",
"Paragraph 4": "Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit."
@ -50,7 +50,7 @@ To count the frequency for each country follow these steps:
Input:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement. Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Paragraphs:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Sublist frequencies:
{
@ -72,7 +72,7 @@ Output:
Input:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert. A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Paragraphs:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Sublists:
{
@ -101,9 +101,9 @@ Output:
Input:
Journeying westward, she admired the art in Italy and sipped coffee in France. The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away. She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia. Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Paragraphs:
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Sublists:
{
@ -156,7 +156,7 @@ Replace `{dictionary_1}` and `{dictionary_2}` with dictionaries of countries to
```
<Instruction> Combine the following 2 dictionaries, each containing the frequency of countries in a text, into a single dictionary.
Simply add the frequencies together for each country and if a country is not present in one of the dictionaries, add it to the final dictionary with the frequency from the other dictionary.
Only output the final merged dictionary without any additional text or thoughts!
Only output the final merged dictionary without any additional text or thoughts!
</Instruction>
<Approach>
@ -174,60 +174,56 @@ Combined Output:
```
### IMPROVE: improve_merge_prompt
Replace `{dictionary_1}` and `{dictionary_2}` with dictionaries of countries
to be merged and `{dictionary_incorrect}` with incorrectly merged dictionary
Replace `{dictionary_1}` and `{dictionary_2}` with dictionaries of countries
to be merged and `{dictionary_incorrect}` with incorrectly merged dictionary
to be improved.
```
<Instruction> The following 2 dictionaries were combined into the third dictionary below.
However, some mistakes occured and the third dictionary is incorrect.
Please fix the third dictionary so that it contains the correct frequencies for each country.
The correct frequencies are the sum of the frequencies from the first 2 dictionaries.
If a country is not present in one of the dictionaries, add it to the final dictionary with the frequency from the other dictionary.
<Instruction> The following 2 dictionaries were combined into the third dictionary below. However, some mistakes occured and the third dictionary is incorrect. Please fix the third dictionary so that it contains the correct frequencies for each country. The correct frequencies are the sum of the frequencies from the first 2 dictionaries. If a country is not present in one of the dictionaries, add it to the final dictionary with the frequency from the other dictionary.
</Instruction>
<Example>
Dictionary 1:
{
"Peru": 2,
"Chile": 1,
"Uruguay": 1,
"Paraguay": 1
Dictionary 1:
{
"Peru": 2,
"Chile": 1,
"Uruguay": 1,
"Paraguay": 1
}
Dictionary 2:
{
"Peru": 1,
"Argentina": 1,
"Canada": 1,
"Chile": 3,
"Germany": 2
Dictionary 2:
{
"Peru": 1,
"Argentina": 1,
"Canada": 1,
"Chile": 3,
"Germany": 2
}
Incorrectly Combined Dictionary:
{
"Peru": 3,
"Chile": 2,
"Uruguay": 1,
"Paraguay": 1,
"Argentina": 1,
"Chile": 3,
"Germany": 2
{
"Peru": 3,
"Chile": 2,
"Uruguay": 1,
"Paraguay": 1,
"Argentina": 1,
"Chile": 3,
"Germany": 2
}
Output:
{
"Peru": 3,
"Chile": 4,
"Uruguay": 1,
"Paraguay": 1,
"Argentina": 1,
"Canada": 1,
"Germany": 2
{
"Peru": 3,
"Chile": 4,
"Uruguay": 1,
"Paraguay": 1,
"Argentina": 1,
"Canada": 1,
"Germany": 2
}
</Example>
Dictionary 1:
Dictionary 1:
{dictionary_1}
Dictionary 2:
Dictionary 2:
{dictionary_2}
Incorrectly Combined Dictionary:
Incorrectly Combined Dictionary:
{dictionary_incorrect}
Output:
```
@ -236,24 +232,24 @@ Output:
### The GoO Summarised
1. Split the input text into four paragraphs of roughly equal size (split prompt)
2. For each paragraph: Count the occurrences of individual countries (count prompt) 10 times; score each counting attempt; keep the best
3. Merge the country counts into one dictionary (merge prompt) 3 times;
3. Merge the country counts into one dictionary (merge prompt) 3 times;
validate and improve invalid merge attempts (improve merge prompt) up to 3 attempts each; score; keep the best
### Input
```
My friend, Alex from Peru, once recounted his journey to Argentina where he learned about the strong cultural ties between Argentina and Brazil due to their shared history.
He spoke fondly of his time in Argentina and Brazil, marveling at the similar music, dance, and culinary traditions that seamlessly bridged the borders of these countries.
It reminded me of a documentary I'd watched about the ancient Silk Road that spanned across Iran and China.
It touched upon the shared historical narratives of Iran and China, highlighting how goods, ideas, and culture flowed between these two countries for centuries.
Intriguingly, the documentary also brought up some parallels between this eastern route and the vibrant exchange between Italy and France during the Renaissance.
The cultural and intellectual bonds between Italy and France were indeed profound, just as the resilient trade relations that existed between the United States and Canada.
The United States and Canada, apart from their geographical proximity, shared an economic bond that strongly influenced their policies and international standing.
Similarly, the ties between Australia and New Zealand shed light on their gestalt identity in the Pacific region.
Despite their unique characteristics, Australia and New Zealand were often viewed as a single entity due to their remarkably similar backgrounds in terms of culture, language, and colonial history.
Inspired by these chronicles of interconnectedness, I decided to delve deeper into history and found a fascinating account of how Ukraine and Poland had influenced each other through years of coexistence.
Despite their tumultuous past, Ukraine and Poland shared a cultural tapestry that was deeply woven into their histories.
It was quite similar to the complex relationship between North Korea and South Korea, which, despite their political differences, shared common heritage and traditions.
My friend, Alex from Peru, once recounted his journey to Argentina where he learned about the strong cultural ties between Argentina and Brazil due to their shared history.
He spoke fondly of his time in Argentina and Brazil, marveling at the similar music, dance, and culinary traditions that seamlessly bridged the borders of these countries.
It reminded me of a documentary I'd watched about the ancient Silk Road that spanned across Iran and China.
It touched upon the shared historical narratives of Iran and China, highlighting how goods, ideas, and culture flowed between these two countries for centuries.
Intriguingly, the documentary also brought up some parallels between this eastern route and the vibrant exchange between Italy and France during the Renaissance.
The cultural and intellectual bonds between Italy and France were indeed profound, just as the resilient trade relations that existed between the United States and Canada.
The United States and Canada, apart from their geographical proximity, shared an economic bond that strongly influenced their policies and international standing.
Similarly, the ties between Australia and New Zealand shed light on their gestalt identity in the Pacific region.
Despite their unique characteristics, Australia and New Zealand were often viewed as a single entity due to their remarkably similar backgrounds in terms of culture, language, and colonial history.
Inspired by these chronicles of interconnectedness, I decided to delve deeper into history and found a fascinating account of how Ukraine and Poland had influenced each other through years of coexistence.
Despite their tumultuous past, Ukraine and Poland shared a cultural tapestry that was deeply woven into their histories.
It was quite similar to the complex relationship between North Korea and South Korea, which, despite their political differences, shared common heritage and traditions.
Thus, from Argentina to South Korea, the world was an intricate web of countries intertwined with each other through shared histories, cultures, and sometimes, shared destinies.
```
@ -266,15 +262,15 @@ Only output the final 4 paragraphs in the following format without any additiona
"Paragraph 2": "Some paragraph text ...",
"Paragraph 3": "Some paragraph text ...",
"Paragraph 4": "Some paragraph text ..."
}
}
</Instruction>
<Example>
Input:
Journeying westward, she admired the art in Italy and sipped coffee in France. The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away. She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia. Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Output:
Output:
{
"Paragraph 1": "Journeying westward, she admired the art in Italy and sipped coffee in France. ",
"Paragraph 1": "Journeying westward, she admired the art in Italy and sipped coffee in France.",
"Paragraph 2": "The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.",
"Paragraph 3": "She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.",
"Paragraph 4": "Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit."
@ -282,18 +278,18 @@ Output:
</Example>
Input:
My friend, Alex from Peru, once recounted his journey to Argentina where he learned about the strong cultural ties between Argentina and Brazil due to their shared history.
He spoke fondly of his time in Argentina and Brazil, marveling at the similar music, dance, and culinary traditions that seamlessly bridged the borders of these countries.
It reminded me of a documentary I'd watched about the ancient Silk Road that spanned across Iran and China.
It touched upon the shared historical narratives of Iran and China, highlighting how goods, ideas, and culture flowed between these two countries for centuries.
Intriguingly, the documentary also brought up some parallels between this eastern route and the vibrant exchange between Italy and France during the Renaissance.
The cultural and intellectual bonds between Italy and France were indeed profound, just as the resilient trade relations that existed between the United States and Canada.
The United States and Canada, apart from their geographical proximity, shared an economic bond that strongly influenced their policies and international standing.
Similarly, the ties between Australia and New Zealand shed light on their gestalt identity in the Pacific region.
Despite their unique characteristics, Australia and New Zealand were often viewed as a single entity due to their remarkably similar backgrounds in terms of culture, language, and colonial history.
Inspired by these chronicles of interconnectedness, I decided to delve deeper into history and found a fascinating account of how Ukraine and Poland had influenced each other through years of coexistence.
Despite their tumultuous past, Ukraine and Poland shared a cultural tapestry that was deeply woven into their histories.
It was quite similar to the complex relationship between North Korea and South Korea, which, despite their political differences, shared common heritage and traditions.
My friend, Alex from Peru, once recounted his journey to Argentina where he learned about the strong cultural ties between Argentina and Brazil due to their shared history.
He spoke fondly of his time in Argentina and Brazil, marveling at the similar music, dance, and culinary traditions that seamlessly bridged the borders of these countries.
It reminded me of a documentary I'd watched about the ancient Silk Road that spanned across Iran and China.
It touched upon the shared historical narratives of Iran and China, highlighting how goods, ideas, and culture flowed between these two countries for centuries.
Intriguingly, the documentary also brought up some parallels between this eastern route and the vibrant exchange between Italy and France during the Renaissance.
The cultural and intellectual bonds between Italy and France were indeed profound, just as the resilient trade relations that existed between the United States and Canada.
The United States and Canada, apart from their geographical proximity, shared an economic bond that strongly influenced their policies and international standing.
Similarly, the ties between Australia and New Zealand shed light on their gestalt identity in the Pacific region.
Despite their unique characteristics, Australia and New Zealand were often viewed as a single entity due to their remarkably similar backgrounds in terms of culture, language, and colonial history.
Inspired by these chronicles of interconnectedness, I decided to delve deeper into history and found a fascinating account of how Ukraine and Poland had influenced each other through years of coexistence.
Despite their tumultuous past, Ukraine and Poland shared a cultural tapestry that was deeply woven into their histories.
It was quite similar to the complex relationship between North Korea and South Korea, which, despite their political differences, shared common heritage and traditions.
Thus, from Argentina to South Korea, the world was an intricate web of countries intertwined with each other through shared histories, cultures, and sometimes, shared destinies.
```
@ -328,7 +324,7 @@ To count the frequency for each country follow these steps:
Input:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement. Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Paragraphs:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Sublist frequencies:
{
@ -350,7 +346,7 @@ Output:
Input:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert. A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Paragraphs:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Sublists:
{
@ -379,9 +375,9 @@ Output:
Input:
Journeying westward, she admired the art in Italy and sipped coffee in France. The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away. She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia. Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Paragraphs:
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Sublists:
{
@ -464,7 +460,7 @@ To count the frequency for each country follow these steps:
Input:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement. Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Paragraphs:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Sublist frequencies:
{
@ -486,7 +482,7 @@ Output:
Input:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert. A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Paragraphs:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Sublists:
{
@ -515,9 +511,9 @@ Output:
Input:
Journeying westward, she admired the art in Italy and sipped coffee in France. The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away. She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia. Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Paragraphs:
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Sublists:
{
@ -600,7 +596,7 @@ To count the frequency for each country follow these steps:
Input:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement. Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Paragraphs:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Sublist frequencies:
{
@ -622,7 +618,7 @@ Output:
Input:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert. A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Paragraphs:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Sublists:
{
@ -651,9 +647,9 @@ Output:
Input:
Journeying westward, she admired the art in Italy and sipped coffee in France. The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away. She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia. Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Paragraphs:
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Sublists:
{
@ -736,7 +732,7 @@ To count the frequency for each country follow these steps:
Input:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement. Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Paragraphs:
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Alexandra boarded the first flight of her grand journey, starting from Canada. With a globe-trotting itinerary in hand, she was filled with excitement.
Her first stop was Mexico, where she marveled at the Mayan ruins. From there, she explored the rainforests of Brazil and danced the tango in Argentina.
Sublist frequencies:
{
@ -758,7 +754,7 @@ Output:
Input:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert. A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Paragraphs:
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
The adventure led him to the peaks of Peru where he trekked to see the mysteries of Machu Picchu. He then headed to Chile to gaze at the vastness of the Atacama Desert.
A quick detour to Uruguay and Paraguay allowed him to experience the vibrancy of the local cultures before returning back to Canada through Peru, Brazil and Mexico.
Sublists:
{
@ -787,9 +783,9 @@ Output:
Input:
Journeying westward, she admired the art in Italy and sipped coffee in France. The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away. She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia. Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Paragraphs:
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Journeying westward, she admired the art in Italy and sipped coffee in France.
The music of Spain and the history of Greece deepened her love for Europe. The Nordic beauty of Norway, Sweden, Finland, and Denmark took her breath away.
She danced in Ireland, explored castles in Scotland, and marveled at the architecture in Germany and Russia.
Italy, Norway, Sweden and Germany will always stay her favourite destinations to visit.
Sublists:
{
@ -855,7 +851,7 @@ Despite their tumultuous past, Ukraine and Poland shared a cultural tapestry tha
```
<Instruction> Combine the following 2 dictionaries, each containing the frequency of countries in a text, into a single dictionary.
Simply add the frequencies together for each country and if a country is not present in one of the dictionaries, add it to the final dictionary with the frequency from the other dictionary.
Only output the final merged dictionary without any additional text or thoughts!
Only output the final merged dictionary without any additional text or thoughts!
</Instruction>
<Approach>
@ -887,14 +883,15 @@ Combined Output:
```
1. { "Peru": 1, "Argentina": 2, "Brazil": 2, "Iran": 2, "China": 2, "Italy": 1, "France": 2, "United States": 1, "Canada": 1 }
2. { "Peru": 1, "Argentina": 2, "Brazil": 2, "Iran": 2, "China": 2, "Italy": 1, "France": 2, "United States": 1, "Canada": 1 }
3. { "Peru": 1, "Argentina": 2, "Brazil": 2, "Iran": 2, "China": 2, "Italy": 1, "France": 2, "United States": 1, "Canada": 1 }
3. { "Peru": 1, "Argentina": 2, "Brazil": 2, "Iran": 2, "China": 2, "Italy": 1, "France": 2, "United States": 1, "Canada": 1 }
```
### Step 3b - Prompt
```
<Instruction> Combine the following 2 dictionaries, each containing the frequency of countries in a text, into a single dictionary.
Simply add the frequencies together for each country and if a country is not present in one of the dictionaries, add it to the final dictionary with the frequency from the other dictionary.
Only output the final merged dictionary without any additional text or thoughts! </Instruction>
Only output the final merged dictionary without any additional text or thoughts!
</Instruction>
<Approach>
To combine the 2 dictionaries into single one, follow these steps:
@ -934,7 +931,8 @@ Combined Output:
```
<Instruction> Combine the following 2 dictionaries, each containing the frequency of countries in a text, into a single dictionary.
Simply add the frequencies together for each country and if a country is not present in one of the dictionaries, add it to the final dictionary with the frequency from the other dictionary.
Only output the final merged dictionary without any additional text or thoughts! </Instruction>
Only output the final merged dictionary without any additional text or thoughts!
</Instruction>
<Approach>
To combine the 2 dictionaries into single one, follow these steps:
@ -980,21 +978,21 @@ Combined Output:
### Final Result
2 errors propagated from counting.
```
{
"Peru": 1,
"Argentina": 3,
"Brazil": 2,
"Iran": 2,
"China": 2,
"Italy": 1,
"France": 2,
"United States": 2,
"Canada": 2,
"Australia": 2,
"New Zealand": 2,
"Ukraine": 2,
"Poland": 2,
"North Korea": 1,
{
"Peru": 1,
"Argentina": 3,
"Brazil": 2,
"Iran": 2,
"China": 2,
"Italy": 1,
"France": 2,
"United States": 2,
"Canada": 2,
"Australia": 2,
"New Zealand": 2,
"Ukraine": 2,
"Poland": 2,
"North Korea": 1,
"South Korea": 2
}
```

View File

@ -45,7 +45,7 @@ Input Set 1: {set1}
Input Set 2: {set2}
```
### Aggregate: merge_prompt
### AGGREGATE: merge_prompt
Replace `{input1}` and `{input2}` with the lists/sets to be merged.
```
<Instruction> Merge the following 2 lists of length 16 each, into one list of length 32 by appending the second list to the first list.

View File

@ -147,7 +147,7 @@ Output:
Input: {input}"""
got_merge_prompt = """<Instruction> Merge the following 2 lists of length {length1} each, into one list of length {length2} by appending the second list to the first list.
got_merge_prompt = """<Instruction> Merge the following 2 lists into one list by appending the second list to the first list.
Only output the final list without any additional text or thoughts! </Instruction>
List 1: {input1}
@ -166,20 +166,10 @@ List 2: {input2}
:raise AssertionError: If not exactly two thought states are provided.
"""
assert len(state_dicts) == 2, "Expected two states for aggregation prompt."
len_input1 = len(utils.string_to_list(state_dicts[0]["current"]))
len_input2 = len(utils.string_to_list(state_dicts[1]["current"]))
if len_input1 == len_input2:
length = len_input1
elif len_input1 + len_input2 - 32 <= 16:
length = 16
else:
length = 32
return self.got_merge_prompt.format(
input1=state_dicts[0]["current"],
input2=state_dicts[1]["current"],
length1=length,
length2=length * 2,
)
def generate_prompt(

View File

@ -151,7 +151,7 @@ Output:
Input: {input}"""
got_merge_prompt = """<Instruction> Merge the following 2 lists of length {length1} each, into one list of length {length2} by appending the second list to the first list.
got_merge_prompt = """<Instruction> Merge the following 2 lists into one list by appending the second list to the first list.
Only output the final list without any additional text or thoughts! </Instruction>
List 1: {input1}
@ -171,20 +171,10 @@ List 2: {input2}
"""
assert len(state_dicts) == 2, "Expected two states for aggregation prompt."
len_input1 = len(utils.string_to_list(state_dicts[0]["current"]))
len_input2 = len(utils.string_to_list(state_dicts[1]["current"]))
if len_input1 == len_input2:
length = len_input1
elif len_input1 + len_input2 - 32 <= 16:
length = 16
else:
length = 32
return self.got_merge_prompt.format(
input1=state_dicts[0]["current"],
input2=state_dicts[1]["current"],
length1=length,
length2=length * 2,
)
def generate_prompt(

View File

@ -159,7 +159,7 @@ Output:
Input: {input}"""
got_merge_prompt = """<Instruction> Merge the following 2 lists of length {length1} each, into one list of length {length2} by appending the second list to the first list.
got_merge_prompt = """<Instruction> Merge the following 2 lists into one list by appending the second list to the first list.
Only output the final list without any additional text or thoughts! </Instruction>
List 1: {input1}
@ -178,22 +178,10 @@ List 2: {input2}
:raise AssertionError: If not exactly two thought states are provided.
"""
assert len(state_dicts) == 2, "Expected two states for aggregation prompt."
len_input1 = len(utils.string_to_list(state_dicts[0]["current"]))
len_input2 = len(utils.string_to_list(state_dicts[1]["current"]))
if len_input1 == len_input2:
length = len_input1
elif len_input1 + len_input2 - 32 <= 16:
length = 16
elif len_input1 + len_input2 - 64 <= 32:
length = 32
else:
length = 64
return self.got_merge_prompt.format(
input1=state_dicts[0]["current"],
input2=state_dicts[1]["current"],
length1=length,
length2=length * 2,
)
def generate_prompt(

View File

@ -4,19 +4,19 @@
Replace `{input}` with the input list of numbers to be split.
```
<Instruction> Split the following list of 32 numbers into 2 lists of 16 numbers each, the first list should contain the first 16 numbers and the second list the second 16 numbers.
Only output the final 4 lists in the following format without any additional text or thoughts!:
{
Only output the final 2 lists in the following format without any additional text or thoughts!:
{{
"List 1": [3, 4, 3, 5, 7, 8, 1, ...],
"List 2": [2, 9, 2, 4, 7, 1, 5, ...]
} </Instruction>
}} </Instruction>
<Example>
Input: [9, 6, 7, 7, 2, 0, 2, 2, 3, 5, 0, 9, 2, 2, 4, 4, 5, 2, 5, 1, 2, 8, 3, 8, 3, 9, 6, 0, 4, 2, 2, 3]
Output:
{
Output:
{{
"List 1": [9, 6, 7, 7, 2, 0, 2, 2, 3, 5, 0, 9, 2, 2, 4, 4],
"List 2": [5, 2, 5, 1, 2, 8, 3, 8, 3, 9, 6, 0, 4, 2, 2, 3]
}
}}
</Example>
Input: {input}
@ -74,10 +74,10 @@ Input: {input}
Incorrectly Sorted: {incorrectly_sorted}
```
### Aggregate: aggregate_prompt
### AGGREGATE: aggregate_prompt
Replace `{input_list1}` and `{input_list2}` with the input lists of numbers to be merged. `{length}` is the length of each input list and `{length_combined}` is the length of the combined list.
```
<Instruction> Merge the following 2 sorted lists of length {length} each, into one sorted list of length {length_combined} using a merge sort style approach.
<Instruction> Merge the following 2 sorted lists of length {length} each, into one sorted list of length {length_combined} using a merge sort style approach.
Only output the final merged list without any additional text or thoughts!:</Instruction>
<Approach>
@ -99,7 +99,7 @@ Merged list:
### The GoO Summarised
1. Split the input list into two sub-lists of equal size (split prompt)
2. For each sub-list: Sort the sub-list (sort prompt) five times; score each sort attempt; keep the best
3. Merge the sorted sub-lists into one fully sorted list (merge prompt) 10 times; score each merge attempt; keep the best
3. Merge the sorted sub-lists into one fully sorted list (merge prompt) 10 times; score each merge attempt; keep the best
4. Fix any potential mistakes in the sorted list (improve prompt) 10 times; score each improvement attempt; keep the best
### Input
@ -110,7 +110,7 @@ Merged list:
### Step 1 - Prompt
```
<Instruction> Split the following list of 32 numbers into 2 lists of 16 numbers each, the first list should contain the first 16 numbers and the second list the second 16 numbers.
Only output the final 4 lists in the following format without any additional text or thoughts!:
Only output the final 2 lists in the following format without any additional text or thoughts!:
{
"List 1": [3, 4, 3, 5, 7, 8, 1, ...],
"List 2": [2, 9, 2, 4, 7, 1, 5, ...]
@ -118,7 +118,7 @@ Only output the final 4 lists in the following format without any additional tex
<Example>
Input: [9, 6, 7, 7, 2, 0, 2, 2, 3, 5, 0, 9, 2, 2, 4, 4, 5, 2, 5, 1, 2, 8, 3, 8, 3, 9, 6, 0, 4, 2, 2, 3]
Output:
Output:
{
"List 1": [9, 6, 7, 7, 2, 0, 2, 2, 3, 5, 0, 9, 2, 2, 4, 4],
"List 2": [5, 2, 5, 1, 2, 8, 3, 8, 3, 9, 6, 0, 4, 2, 2, 3]
@ -196,7 +196,7 @@ Input: [0, 5, 6, 7, 1, 4, 5, 9, 4, 6, 2, 5, 8, 6, 2, 6]
Only output the final merged list without any additional text or thoughts!:</Instruction>
<Approach>
To merge the two lists in a merge-sort style approach, foloow these steps:
To merge the two lists in a merge-sort style approach, follow these steps:
1. Compare the first element of both lists.
2. Append the smaller element to the merged list and move to the next element in the list from which the smaller element came.
3. Repeat steps 1 and 2 until one of the lists is empty.

View File

@ -13,6 +13,7 @@ import json
import csv
from typing import Dict, List, Callable, Union
from graph_of_thoughts import controller, language_models, operations, prompter, parser
from . import utils
@ -114,7 +115,7 @@ Incorrectly Sorted: {incorrectly_sorted}
"""
got_split_prompt = """<Instruction> Split the following list of 32 numbers into 2 lists of 16 numbers each, the first list should contain the first 16 numbers and the second list the second 16 numbers.
Only output the final 4 lists in the following format without any additional text or thoughts!:
Only output the final 2 lists in the following format without any additional text or thoughts!:
{{
"List 1": [3, 4, 3, 5, 7, 8, 1, ...],
"List 2": [2, 9, 2, 4, 7, 1, 5, ...]
@ -135,7 +136,7 @@ Input: {input}"""
Only output the final merged list without any additional text or thoughts!:</Instruction>
<Approach>
To merge the two lists in a merge-sort style approach, foloow these steps:
To merge the two lists in a merge-sort style approach, follow these steps:
1. Compare the first element of both lists.
2. Append the smaller element to the merged list and move to the next element in the list from which the smaller element came.
3. Repeat steps 1 and 2 until one of the lists is empty.

View File

@ -140,7 +140,7 @@ Input: {input}"""
Only output the final merged list without any additional text or thoughts!:</Instruction>
<Approach>
To merge the two lists in a merge-sort style approach, foloow these steps:
To merge the two lists in a merge-sort style approach, follow these steps:
1. Compare the first element of both lists.
2. Append the smaller element to the merged list and move to the next element in the list from which the smaller element came.
3. Repeat steps 1 and 2 until one of the lists is empty.

View File

@ -148,7 +148,7 @@ Input: {input}"""
Only output the final merged list without any additional text or thoughts!:</Instruction>
<Approach>
To merge the two lists in a merge-sort style approach, foloow these steps:
To merge the two lists in a merge-sort style approach, follow these steps:
1. Compare the first element of both lists.
2. Append the smaller element to the merged list and move to the next element in the list from which the smaller element came.
3. Repeat steps 1 and 2 until one of the lists is empty.