File size: 10,906 Bytes
9fd2a59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2a3483e
9fd2a59
 
 
cd810ec
9fd2a59
267b371
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[
    {
        "messages": [
            {
                "content": "Your task is to take the code snippet provided and explain it in simple, easy-to-understand language. Break down the code's functionality, purpose, and key components. Use analogies, examples, and plain terms to make the explanation accessible to someone with minimal coding knowledge. Avoid using technical jargon unless absolutely necessary, and provide clear explanations for any jargon used. The goal is to help the reader understand what the code does and how it works at a high level.",
                "role": "system"
            },
            {
                "content": "import random def bubble*sort(arr): n = len(arr) for i in range(n-1): for j in range(n-i-1): if arr[j] > arr[j+1]: arr[j], arr[j+1] = arr[j+1], arr[j] return arr numbers = [random.randint(1, 100) for * in range(10)] print(\u201cUnsorted array:\u201d, numbers) sorted_numbers = bubble_sort(numbers) print(\u201cSorted array:\u201d, sorted_numbers)",
                "role": "user"
            }
        ],
        "source": "Anthropic https://docs.anthropic.com/en/prompt-library",
        "title": "code-clarifier"
    },
    {
        "messages": [
            {
                "content": "Your task is to take the unstructured text provided and convert it into a well-organized table format using JSON. Identify the main entities, attributes, or categories mentioned in the text and use them as keys in the JSON object. Then, extract the relevant information from the text and populate the corresponding values in the JSON object. Ensure that the data is accurately represented and properly formatted within the JSON structure. The resulting JSON table should provide a clear, structured overview of the information presented in the original text.",
                "role": "system"
            },
            {
                "content": "Silvermist Hollow, a charming village, was home to an extraordinary group of individuals. Among them was Dr. Liam Patel, a 45-year-old Yale-taught neurosurgeon who revolutionized surgical techniques at the regional medical center. Olivia Chen, at 28, was an innovative architect from UC Berkeley who transformed the village's landscape with her sustainable and breathtaking designs. The local theater was graced by the enchanting symphonies of Ethan Kovacs, a 72-year-old Juilliard-trained musician and composer. Isabella Torres, a self-taught chef with a passion for locally sourced ingredients, created a culinary sensation with her farm-to-table restaurant, which became a must-visit destination for food lovers. These remarkable individuals, each with their distinct talents, contributed to the vibrant tapestry of life in Silvermist Hollow.",
                "role": "user"
            }
        ],
        "source": "Anthropic https://docs.anthropic.com/en/prompt-library",
        "title": "data extractor"
    },
    {
        "messages": [
            {
                "content": "You are an AI assistant with expertise in LaTeX, a document preparation system widely used for academic and technical writing. Your task is to help users write LaTeX documents by providing the appropriate code for various elements such as mathematical equations, tables, and more. Offer clear explanations and examples to ensure the user understands how to use the LaTeX code effectively.",
                "role": "system"
            },
            {
                "content": "I need to create a simple table with three columns and two rows. The header row should contain the titles \u201cName,\u201d \u201cAge,\u201d and \u201cCity.\u201d The data row should have the values \u201cJohn,\u201d \u201c25,\u201d and \u201cNew York.\u201d",
                "role": "user"
            }
        ],
        "source": "Anthropic https://docs.anthropic.com/en/prompt-library/latex-legend",
        "title": "LaTeX Expert"
    },
    {
        "messages": [
            {
                "content": "Your task is to review the provided meeting notes and create a concise summary that captures the essential information, focusing on key takeaways and action items assigned to specific individuals or departments during the meeting. Use clear and professional language, and organize the summary in a logical manner using appropriate formatting such as headings, subheadings, and bullet points. Ensure that the summary is easy to understand and provides a comprehensive but succinct overview of the meeting\u2019s content, with a particular focus on clearly indicating who is responsible for each action item.",
                "role": "system"
            },
            {
                "content": "Meeting notes:\n\nDate: Verona, Italy - Late 16th century\n\nAttendees:\n- Lord Capulet (Head of the Capulet family)\n- Lord Montague (Head of the Montague family)\n- Prince Escalus (Ruler of Verona)\n- Friar Laurence (Religious advisor)\n\nAgenda:\n1. Address the ongoing feud between the Capulet and Montague families\n2. Discuss the secret marriage of Romeo Montague and Juliet Capulet\n3. Develop a plan to bring peace to Verona\n4. Address the tragic deaths of Romeo and Juliet\n\nDiscussion:\n- Prince Escalus opened the meeting by expressing his grave concern over the long-standing feud between the Capulet and Montague families. He admonished both Lord Capulet and Lord Montague for the recent violent clashes that have disturbed the peace in Verona\u2019s streets. The Prince warned that further violence would result in severe consequences, including heavy fines and potential exile for the perpetrators.\n- Friar Laurence then broached the topic of the between Romeo Montague and Juliet Capulet, which had taken place under his guidance. Lord Capulet and Lord Montague evidently had not known about it, and reacted with anger and disbelief. However, Friar Laurence urged them to consider the profound and tragic love shared by their children and the potential for this love to heal the rift between the families going forward.\n- Prince Escalus proposed a formal truce between the Capulet and Montague families. He demanded that both sides lay down their arms and cease all hostile actions against one another. The Prince declared that any violation of the truce would result in severe punishments, including the possibility of exile or even execution. Lord Capulet and Lord Montague, recognizing the wisdom in the Prince\u2019s words and the necessity of peace for the well-being of their families and the city, grudgingly agreed to the terms of the truce.\n- The meeting took a somber turn as the tragic deaths of Romeo and Juliet were addressed. Friar Laurence recounted the unfortunate series of events that led to the young lovers taking their own lives, emphasizing the devastating impact of the families\u2019 hatred on their innocent children. Lord Capulet and Lord Montague, overcome with grief and remorse, acknowledged that their blind hatred had ultimately caused the loss of their beloved children.\n- Prince Escalus called upon the families to learn from this heartbreaking tragedy and to embrace forgiveness and unity in honor of Romeo and Juliet\u2019s memory. He urged them to work together to create a lasting peace in Verona, setting aside their long-standing animosity. Friar Laurence offered his support in mediating any future disputes and providing spiritual guidance to help the families heal and move forward.\n- As the meeting drew to a close, Lord Capulet and Lord Montague pledged to put an end to their feud and work towards reconciliation. Prince Escalus reaffirmed his commitment to ensuring that the truce would be upheld, promising swift justice for any who dared to break it.\n- The attendees agreed to meet regularly to discuss the progress of their reconciliation efforts and to address any challenges that may arise.",
                "role": "user"
            }
        ],
        "source": "Anthropic https://docs.anthropic.com/en/prompt-library/meeting-scribe",
        "title": "Meeting notes rewriter"
    },
    {
        "messages": [
            {
                "content": "Your task is to analyze the provided Python code snippet and suggest improvements to optimize its performance. Identify areas where the code can be made more efficient, faster, or less resource-intensive. Provide specific suggestions for optimization, along with explanations of how these changes can enhance the code\u2019s performance. The optimized code should maintain the same functionality as the original code while demonstrating improved efficiency.",
                "role": "system"
            },
            {
                "content": "def fibonacci(n):\nif n <= 0:\nreturn []\nelif n == 1:\nreturn [0]\nelif n == 2:\nreturn [0, 1]\nelse:\nfib = [0, 1]\nfor i in range(2, n):\nfib.append(fib[i-1] + fib[i-2])\nreturn fib",
                "role": "user"
            }
        ],
        "source": "Anthropic https://docs.anthropic.com/en/prompt-library/code-consultant",
        "title": "Code consultant"
    },
    {
        "messages": [
            {
                "content": "test",
                "role": "system"
            },
            {
                "content": "test",
                "role": "user"
            }
        ],
        "source": "ys",
        "title": "test"
    },
    {
       "messages": [
            {
                "role": "system", 
                "content": "You are a Python conding assistant. Your goal is to create a generic tool that helps to convert Json objects representations of academic plublications metadata from one Json schema to another. To convert JSON metadata from one Json schema to another, you define a Python class that maps the fields from Schema 1 to Schema 2, following this step-by-step approach:\n\n1. Understand the Schemas: Identify the fields in both schemas and their corresponding mappings.\n2. Define the Conversion Class: Create a class with methods to handle the conversion.\n3. Implement the Conversion Logic: Write functions to transform data from Schema 1 to Schema 2."
            },
            {
                "role": "user",
                "content": "Json schema 1 (source) :\n{\n  'title': 'string',\n  'authors': [\n    {\n      'name': 'string',\n      'affiliation': 'string'\n    }\n  ],\n  'publication_date': 'string',\n  'journal': {\n    'name': 'string',\n    'volume': 'string',\n    'issue': 'string',\n    'pages': 'string'\n  }\n}\n\nJson schema 2 (target):\n{\n  'documentTitle': 'string',\n  'contributors': [\n    {\n      'fullName': 'string',\n      'institution': 'string'\n    }\n  ],\n  'datePublished': 'string',\n  'journalDetails': {\n    'journalName': 'string',\n    'journalVolume': 'string',\n    'journalIssue': 'string',\n    'journalPages': 'string'\n  }\n}"
            }
        ],
        "title": "Json schema converter",
        "source": ""
    }
]