Brief Introduction to Semantic Programming for LLMs

“Semantic Programming” refers to a specific programming language based on natural language, through which it is possible to engineer a BOT (or semantic program) within the input of a generative language model (for example, ChatGPT or Claude) with the aim of obtaining a specific desired output.

It is based on the concepts of “semantic cloud“, which represents a generic knowledge linked to the connections between words (the nodes of the neural network); “semantic funnel“, which represents the selection of knowledge and guides the machine towards the correct answer; and “inverse semantic funnel“, which represents a technique of evoking knowledge. These three fundamental concepts, when appropriately used in prompt design, can force the semantic flow of the neural network to select suitable knowledge and channel it towards a correct answer.

Semantic Programming ensures that the task is understandable to ChatGPT’s algorithm, takes into account the semantic flow of the neural network, and forces the machine to select the specific knowledge necessary to solve the problem.

Semantic Programming can be seen as a scientific evolution of prompt engineering, but it differs in that the latter focuses on creating specific and relevant prompts to guide the language model in the right direction, whereas semantic programming is primarily concerned with creating a bot within a chat session with ChatGPT (or another equivalent generative language model). Furthermore, it does not require any programming skills.

In facts, Semantic Programming contrasts with “syntactic” programming, which encompasses traditional programming languages, as it lacks rigid syntax and relies primarily on natural language semantics. Moreover, it specifically operates within the input of a generative language model.

Some possible bots or semantic programs identified at the time of writing this document include synthetic advisors, creative semantic programs, and analytical semantic programs, as well as all their variations or those that can be intuitively derived from them.

Below, we showcase some examples of semantic programming.
(please consider the whole document is translated from Italian language)

When asking ChatGPT the following:

Question: My grandfather had two children: my father and my uncle. My father passed away years ago, before him. Now my grandfather has passed away and left a will excluding me from the inheritance. He left everything to my uncle, his son and brother of my prematurely deceased father. What do you advise me to do?

ChatGPT usually replies something like this:

Answer:

I’m sorry for the loss of your grandfather. In these situations, it’s important to understand that a will is a legal document that dictates how a person’s assets should be distributed after their death. If your grandfather expressly excluded you from the inheritance, there might not be much you can do to contest the arrangement.

That being said, I would recommend consulting with an attorney who specializes in inheritance or civil law to determine if there’s a possibility to challenge the will. This could depend on the laws in your country or the specific circumstances surrounding the drafting of the will.

In any case, it’s important to proceed cautiously and keep in mind that contesting a will can be a lengthy and expensive process. Additionally, it may be better to try to resolve matters within the family peacefully and respectfully, if possible.


However, when the same question is incorporated into a properly drafted semantic program, taking into account the specific knowledge of the interlocutor and the semantic flow of the neural network, then the response obtained is of a completely different nature:
(please consider that it is a translation from Italian language, that it refers to the Italian law and that it is the very first output of the machine after the initial engineered prompt.)


Answer: First and foremost, it is important to verify whether your rights have been violated in this specific case. In particular, Italian law provides that in the absence of a will or in the case of its invalidity, direct descendants (children or grandchildren) are entitled to a legitimate share of the deceased’s estate. The legitimate share is a portion of the estate that the testator cannot dispose of at their discretion but is reserved for the legitimate heirs.

In this specific case, the fact that your grandfather left his entire estate to your uncle, excluding you as the grandchild of the deceased and a direct descendant of the predeceased father, could constitute an illegality, as you may be entitled to your legitimate share of the deceased’s estate.

Based on this, the possible options for action are as follows:

Contesting the will: It is possible to challenge the validity of the will for defects in form or substance, for example, if the will was drafted without complying with legal requirements, or if the testator was in a state of mental incapacity. In this case, the will could be annulled and the legitimate share distributed among the direct descendants.

Reduction action: If the will is valid but infringes on your legitimate share, it is possible to pursue a reduction action. In this case, you would ask the judge to reduce the share allocated to one or more legatees (in your case, your uncle) to ensure the legitimate share of the direct descendant (i.e., you) is respected.

Mediation and/or conciliation: Alternatively, you can try to resolve the situation consensually by resorting to mediation or conciliation. Mediation is an attempt to resolve the conflict with the help of a mediator, while conciliation involves the participation of a judge who, after hearing both parties, seeks to find a solution that satisfies both parties involved.

It is understood that the outcome of these options depends on the specific circumstances of the case, but I hope these options are helpful for deciding what to do. Do you need any further clarification?


In this conversation, it is interesting to note how the machine immediately mentioned a fundamental legal element, the legitimate share, which could potentially represent an illicit act and thus an infringement of the client’s rights. And right after, how it went on to provide possible solutions, remaining open to interaction and always focused on providing all the necessary information. Clearly, the conversation could have continued as long as desired, but for the sake of brevity, I have only shown the initial exchanges. Consultations of this type, often very in-depth and almost always accurate, can be obtained by creating as many synthetic advisors as desired and using them as needed.

The following is a detailed report on the target audience of a randomly selected product (a course on artificial intelligence named “AI Chatbots without Programming” [ https://www.edx.org/course/AI-chatbots-without-programming]). This report was obtained through an analytical semantic program and represents the first output of the machine (continued several times with the command “continue”). The semantic program required a detailed report on the target audience of the product, a JTBD analysis, and advice on how to improve the product, as well as new similar business ideas. This is just an example of how a single semantic program is able to optimize the semantic flow by obtaining complex answers to advanced problems.

ChatGPT:


Target Audience Report for “AI Chatbots without Programming”

  1. Target audience and demographic profile
    The target audience for “Video Courses to Learn to Use Artificial Intelligence” with a focus on “AI Chatbots without Programming” mainly consists of professionals, entrepreneurs, and students aged between 18 and 45 years old. Specifically, the product is intended for those working in sectors such as marketing, sales, customer service, and business operations management.
  2. Values
    The target audience for this product values innovation and technology. They seek to stay up-to-date with the latest trends and are interested in learning new technological skills to improve their job performance. Additionally, ease of use and efficiency are important values for them.
  3. Lifestyle
    The target audience for this product has a very active and busy lifestyle, often working closely with technology and using it as a tool to simplify and enhance their work. However, they strive to find a balance between work and private life and are looking for solutions that allow them to save time.
  4. Interests
    The target audience for this product is interested in technology, artificial intelligence, and applications that can simplify work and improve efficiency. They are also interested in learning new technological skills and applying them to improve their job performance.
  5. Personality
    The target audience for this product is characterized by strong motivation, high intellectual curiosity, and an open mindset toward innovation. They are also highly organized and detail-oriented, with a strong predisposition for continuous learning and problem-solving.
  6. Beliefs and attitudes
    The target audience for this product believes that using technology can improve efficiency and simplify work. They are open to innovation and believe in the importance of staying updated on the latest technological trends to be competitive in their industry.
  7. Motivations
    The target audience for this product is motivated to improve their job performance and learn new technological skills to remain competitive in their industry. They are looking for innovative and efficient solutions to simplify work and save time. Additionally, they are motivated by the desire to acquire skills that can lead to better job opportunities.

Target Audience Report for “AI Chatbots without Programming” (continued)

  1. Questions
    The target audience for this product may have the following questions:
    • How can I create chatbots without knowing programming?
    • How can chatbots simplify my work?
    • What are the practical applications of chatbots?
    • What are the costs associated with implementing chatbots?
    • How can I customize chatbots to meet my company’s needs?
  2. Problems
    The target audience for this product may face the following problems:
    • Difficulty in creating chatbots due to a lack of technical knowledge.
    • Efficiency and time-saving issues in daily work.
    • Difficulty in handling a high volume of customer requests and interactions.
    • Lack of technical skills to manage chatbots and fully exploit their potential.
  3. Fears
    The target audience for this product may have the following fears:
    • Being surpassed by the competition due to a lack of technological skills.
    • Implementing chatbots may lead to staff reductions.
    • Difficulty in managing chatbots and understanding their functioning.
  4. Frustrations
    The target audience for this product may feel frustrated by:
    • Not being able to create chatbots without programming knowledge.
    • Not being able to handle the volume of customer requests and interactions.
    • Not being able to fully exploit chatbots’ potential due to a lack of technical skills.
  5. Challenges
    The target audience for this product may face the following challenges:
    • Learning to create chatbots without programming knowledge.
    • Implementing chatbots effectively and customizing them to meet their company’s needs.
    • Efficiently managing the volume of customer requests and interactions using chatbots.
    • Fully leveraging the potential of chatbots to improve efficiency and simplify work.

TASK 1: JTBD Report on Target Audience for “AI Chatbots without Programming”

Introduction

The “Jobs to be Done” (JTBD) methodology helps us better understand the target audience for “AI Chatbots without Programming” by identifying their specific needs, motivations, and desired outcomes. We focus on the customer journey, preferences, and objectives to uncover unmet needs and pain points that the product could address.

Usage Situations Description

Usage Situation 1: An entrepreneur looking to simplify their business operations through automating customer interactions.

Usage Situation 2: A professional wanting to acquire new technical skills to improve their work performance.

Usage Situation 3: A company employee who needs to manage a high volume of customer inquiries and interactions.

Specific Needs

• Need 1: Create customized chatbots without programming knowledge.

• Need 2: Improve efficiency and simplify daily work.

• Need 3: Manage a high volume of customer inquiries and interactions.

• Need 4: Fully leverage the potential of chatbots to improve work performance.

Motivations

• Motivation 1: Acquire new technical skills to remain competitive in their industry.

• Motivation 2: Increase efficiency and productivity of daily work.

• Motivation 3: Improve work performance through the use of chatbots.

• Motivation 4: Effectively manage the volume of customer inquiries and interactions using chatbots.

Desired Outcomes

• Desired Outcome 1: Create customized chatbots without having to know programming.

• Desired Outcome 2: Implement chatbots effectively and customized to meet their company’s needs.

• Desired Outcome 3: Effectively manage the volume of customer inquiries and interactions using chatbots.

• Desired Outcome 4: Fully exploit the potential of chatbots to improve efficiency and simplify work.

Possible Obstacles to Success

• Obstacle 1: Lack of technical knowledge for creating chatbots.

• Obstacle 2: Difficulty managing chatbots and understanding their operation.

• Obstacle 3: Resistance to change and technology from some team members or customers.

• Obstacle 4: Costs associated with implementing chatbots.

TASK 2: Product and Service Development

Based on the specific needs, motivations, and desired outcomes of the target audience for “AI Chatbots without Programming,” we propose the following products and services that could best meet their needs:

Product 1: AI Chatbot Builder

An easy-to-use software for creating customized chatbots, without technical programming knowledge. The product includes an intuitive interface that guides the user through the process of creating and customizing their chatbots. Additionally, it offers advanced features for conversation management and customer data analysis.

Service 1: Custom Chatbot Implementation

A consulting and implementation service to help clients deploy their custom chatbots. The service includes defining business needs, chatbot design, conversation flow creation, and integration with existing systems. Additionally, it offers training and ongoing support to ensure the success of the implementation.

Product 2: AI Chatbot Dashboard

A software that allows for effective management and monitoring of chatbots. The product provides real-time insights into conversations, customer feedback, and chatbot performance. Additionally, it offers advanced analysis tools for identifying areas of improvement and optimization opportunities.

Service 2: Customized Chatbot Training

A personalized training service to help clients improve their technical skills on chatbots. The service offers tailored training based on the client’s needs and skillset and includes hands-on sessions for creating and managing their chatbots. Additionally, it provides ongoing support and online resources to deepen technical knowledge.

Product 3: AI Chatbot Analytics

A software that provides in-depth analysis of chatbot data, including conversation data, customer feedback, and chatbot performance. The product offers advanced analytical tools, such as sentiment analysis and keyword analysis, to identify customer needs and improvement opportunities. Additionally, it allows for comparing chatbot performance with that of competitors.

Service 3: Customized Assistance

A personalized assistance service to help clients resolve any issues or obstacles during the use of chatbots. The service offers a dedicated phone line, online chat, and email support, ensuring a quick response and effective solutions to user problems.

With these products and services, we believe we can meet the specific needs of the target audience for “AI Chatbots without Programming,” increasing their satisfaction and loyalty to our brand.

TASK: Analysis of Purchase Motivations and Possible Reasons for Not Purchasing

Why have people purchased the PRODUCT?

  1. Ease of use: The product has proven to be easy to use, allowing anyone to create and customize chatbots without any programming knowledge.
  2. Time and money savings: The product has enabled users to create customized chatbots without having to hire developers or spend time and money learning the necessary programming skills.
  3. Automation: The product has provided a solution for automating customer conversation management, improving efficiency and speed of customer service.
  4. Customization capabilities: The product has allowed users to create customized chatbots based on their specific needs, improving the quality and relevance of customer conversations.

Why might people not purchase the PRODUCT?

  1. Lack of awareness: People may not be aware of the product’s existence or its capabilities and benefits.
  2. Fear of automation: Some people may not be comfortable with the idea of using technology to automate customer conversations, preferring a more personal and human approach.
  3. Technical knowledge: Some people may feel discouraged from using the product due to a lack of technical knowledge or programming skills.
  4. Preference for customized solutions: Some people may prefer customized solutions that require hiring developers to create tailor-made chatbots for their specific needs.
  5. Cost: The cost of the product could be a barrier for some people who prefer more affordable or free solutions.

TASK: Steps to Improve the Product

Based on previous reports, there are several key actions we can take to improve the product and make it more appealing and able to meet the needs of our target consumers.

Improve product visibility and awareness

Since a lack of awareness is a barrier to purchasing the product, we should focus on creating an effective marketing strategy to increase its visibility and awareness among the target audience. Some possible actions include:

• Using digital marketing channels like social media, email marketing, and online advertising to reach the target audience.

• Collaborating with influencers and strategic partners to amplify the product message.

• Participating in trade shows and industry events to showcase the product and acquire new customers.

Address user needs

To address user needs, we should focus on creating a product that is easy to use, customizable, and capable of automating customer conversation management. Some possible actions include:

• Developing advanced features for conversation management and customer data analysis.

• Offering customization tools to allow users to create tailored chatbots based on their specific needs.

• Developing advanced features for automating customer conversation management.

• Providing an intuitive and user-friendly interface to enable anyone to create and manage their own chatbots.

Address user concerns

To address user concerns, we should focus on creating a product that provides a secure and personalized user experience. Some possible actions include:

• Offering customized training to ensure users have the necessary skills to use the product safely.

• Providing personalized and responsive support to address any user issues or concerns.

• Developing advanced features for customer data protection and conversation security.

• Using chatbots with a user-friendly design and a friendly personality to create a personalized and engaging user experience.

Offer competitive pricing

To overcome the price barrier, we should focus on providing competitive pricing compared to the competition and developing a clear and transparent pricing policy. Some possible actions include:

• Offering customized pricing plans to allow users to pay only for what they use.

• Providing a free trial to allow users to test the product before purchasing.

• Using dynamic pricing strategies to ensure competitive pricing and cater to customer needs.

Offer an innovative and customized solution

To overcome the barrier of preferring customized solutions, we should focus on creating a product that is highly customizable and able to meet the specific needs of customers. Some possible actions include:

• Offering a wide range of customizable features to allow users to create tailor-made chatbots for their specific needs.

• Providing personalized support to ensure users can receive assistance in creating and customizing their chatbots.

• Using chatbots with a user-friendly design and a friendly personality to create a personalized and engaging user experience.

Additionally, we should continue to conduct market research to better understand the needs and expectations of our target customers, and regularly update the product based on their feedback. This will allow us to develop a product that is always cutting-edge and able to respond to the ever-evolving market needs.

In summary, providing a personalized, secure, and easy-to-use user experience, combined with competitive pricing and an effective marketing strategy, will enable us to reach and meet the needs of our target customers.


Another interesting case is that of contract drafting. Again, ChatGPT can certainly produce a response even without context, and probably some results can be obtained by asking it without any context, just as it is. But try to get a contract like the one that follows without Semantic Programming:


NON-DISCLOSURE AGREEMENT Between

Mario Rossi, residing at [full address], Italy, hereinafter referred to as the “Disclosing Party”;

and

[Publisher’s Name], with its registered office at [full address], Italy, hereinafter referred to as the “Receiving Party”;

(Collectively, the “Parties”)

Whereas:

– The Disclosing Party is the author of an original, unique, and potentially commercially valuable ____ (hereinafter referred to as the “Work”);
– The Disclosing Party intends to present the Work to the Receiving Party to assess the possibility of promoting or recommending it to their audience;
– The Disclosing Party wishes to protect its legal and economic interests relating to the Work and prevent unauthorized disclosures or illicit uses of the Work by the Receiving Party or third parties;

The Parties agree as follows:

  1. DEFINITIONS
    For the purposes of this Agreement, the following terms shall mean:

1.1 “Confidential Information” includes all information related to the Work, including, but not limited to, the plot, characters, dialogues, ideas, concepts, technical information, commercial information, financial information, legal information, and any other material related to the Work provided by the Disclosing Party to the Receiving Party under this Agreement;

1.2 “Disclosure” means any form of revealing, disseminating, communicating, transmitting, distributing, exhibiting, publishing, or making available Confidential Information to third parties by the Receiving Party, directly or indirectly, intentionally or accidentally, without the written consent of the Disclosing Party;

1.3 “Use” means any form of using, applying, exploiting, processing, adapting, translating, transforming, reproducing, incorporating, including, embedding, or any other way of employing the Confidential Information by the Receiving Party, directly or indirectly, intentionally or accidentally, without the written consent of the Disclosing Party;

1.4 “Third Parties” means any individual or legal entity other than the Parties, including, but not limited to, legal entities controlled by, controlling, or affiliated with the Parties, collaborators, employees, consultants, agents, representatives, partners, customers, suppliers, licensors, distributors, and any other individual or legal entity with whom the Parties have business or collaborative relationships.

2. SUBJECT MATTER

2.1 The Disclosing Party undertakes to disclose the Confidential Information to the Receiving Party in order to allow the latter to evaluate the possibility of promoting the Work or recommending it to their audience, according to the terms and conditions established in this Agreement.

2.2 The Receiving Party undertakes not to Disclose or Use the Confidential Information for purposes other than those expressly authorized by the Disclosing Party under this Agreement, and to protect and safeguard the confidentiality and secrecy of the Confidential Information with the same degree of care with which it protects and safeguards its own confidential and proprietary information, but in no case with a degree of care less than that commonly employed in the management of confidential and proprietary information of a similar nature.

  1. EXCLUSIONS

The following information is not considered Confidential Information under this Agreement:

3.1 Information that, at the time of Disclosure, is already in the public domain or becomes part of the public domain without any act or omission by the Receiving Party;

3.2 Information that, at the time of Disclosure, is already in the possession of the Receiving Party without violation of any confidentiality obligation;

3.3 Information that is subsequently acquired by the Receiving Party from Third Parties who are not subject to confidentiality obligations towards the Disclosing Party.

  1. LIMITATIONS

4.1 The Receiving Party undertakes to Disclose the Confidential Information exclusively to its collaborators or employees who need to know it for the purpose of evaluating the Work, and undertakes to inform such collaborators or employees of the confidentiality obligations established in this Agreement.

4.2 The Receiving Party will be responsible for any unauthorized Disclosure or Use of the Confidential Information by its collaborators or employees and undertakes to take all necessary measures to prevent and suppress such unauthorized Disclosures or Uses.

4.3 The Receiving Party undertakes not to copy, reproduce, transmit, distribute, publish, or otherwise Use the Confidential Information for commercial purposes or for the creation of derivative works, without the written consent of the Disclosing Party and outside of any economic agreements that may occur in the future between the Parties.

  1. DURATION

This Agreement shall enter into force on the date it is signed by both Parties and shall have a duration of 5 (five) years from the date of its signature.

  1. RETURN OR DESTRUCTION

6.1 Upon the expiration of this Agreement or upon request of the Disclosing Party, the Receiving Party undertakes to immediately return to the Disclosing Party all copies of the Confidential Information in its possession or to destroy them and certify such destruction to the Disclosing Party.

6.2 The return or destruction of the Confidential Information does not release the Receiving Party from the confidentiality and non-disclosure obligations established in this Agreement, which shall continue to be valid and effective for the duration of this Agreement.

7. LIABILITY

7.1 The Receiving Party shall be liable for any damage, loss, cost, or expense, including legal fees and attorney’s fees, incurred by the Disclosing Party due to the Disclosure or unauthorized Use of the Confidential Information by the Receiving Party or its collaborators or employees.

7.2 The Receiving Party undertakes to defend, indemnify, and hold harmless the Disclosing Party from and against any claim, action, proceeding, liability, damage, loss, cost, or expense, including legal fees and attorney’s fees, arising from the breach of the confidentiality and non-disclosure obligations established in this Agreement by the Receiving Party or its collaborators or employees.

  1. APPLICABLE LAW AND JURISDICTION

8.1 This Agreement is governed by and interpreted in accordance with the laws of the Italian Republic.

8.2 For any dispute arising from this Agreement or related to it, the competent court shall be the Court of Rome, Italy.

  1. ENTIRETY AND AMENDMENTS

9.1 This Agreement constitutes the entire agreement between the Parties concerning the subject matter of this Agreement and supersedes all previous agreements, commitments, representations, and warranties, whether written or oral, between the Parties concerning the subject matter of this Agreement.

9.2 Any amendment or addition to this Agreement must be made in writing and signed by both Parties.

  1. ASSIGNMENT

The Parties may not assign, transfer, subcontract, sublicense, license, lend, rent, lease, lend in commodatum, dispose of or otherwise alienate, in whole or in part, the obligations, rights, or claims arising from this Agreement without the written consent of the other Party.

IN WITNESS WHEREOF, the Parties have signed this Agreement in two original copies, each of which shall have the same legal value, in the presence of the undersigned witnesses, on [insert date].


Again, please consider this NDA is translated from Italian language and it was originally written by a synthetic advisor according to the Italian law.

When given exactly the same TASK:

“Write a Non-Disclosure Agreement between Mario Rossi and the publisher, in order to protect all the legal interests of Mario Rossi”

Without semantic programming ChatGPT answers this way:


NON-DISCLOSURE AGREEMENT

Between Mario Rossi (hereinafter the “Recipient”) and the publisher [publisher’s name] (hereinafter the “Disclosing Party”), the following non-disclosure agreement (the “Agreement”) is concluded:

Definitions

a) “Confidential Information” means any information, knowledge or technical, commercial, or financial data, or any other information of a confidential or proprietary nature of the Disclosing Party or its customers or business partners, or any third party that the Disclosing Party may disclose to the Recipient during the course of their business relationship.

b) “Confidential Material” means any document, information, software, prototype, model, sample, product, material, or similar information, containing Confidential Information.

Confidentiality Obligations

a) The Recipient agrees to maintain the utmost confidentiality regarding the Confidential Information and Confidential Material.

b) The Recipient agrees not to disclose, copy, reproduce, distribute, transmit, use, or otherwise reveal the Confidential Information or Confidential Material to any third party without the prior written consent of the Disclosing Party.

c) The Recipient agrees to use the Confidential Information solely for the purpose for which it has been provided by the Disclosing Party, and not to use such information for any other purpose without the prior written consent of the Disclosing Party.

Return of Confidential Material

a) The Recipient agrees to return to the Disclosing Party, upon request of the Disclosing Party, all copies of the Confidential Material, and to destroy all copies and records of the Confidential Information, within 10 days from the request of the Disclosing Party.

b) The Recipient agrees to ensure that, within the time period specified in clause 3(a), all copies and records of the Confidential Information will be destroyed in such a way that it is not possible to recover such information.

Duration of the Agreement

a) This Agreement will remain in force for 5 years from the date of signing.

b) The provisions of the Agreement survive the expiration or termination of the relationship between the parties.

Right of Withdrawal

a) The Recipient has the right to withdraw from this Agreement at any time, by giving written notice of at least 10 days to the Disclosing Party.

b) The termination of this Agreement does not affect the rights of the parties accrued up to that point.

Applicable Law

a) This Agreement will be governed and construed in accordance with the laws in force in the State where the Disclosing Party is located.

b) Any dispute or controversy arising out of this Agreement or its breach shall be resolved by arbitration in accordance with the rules of the American Arbitration Association, and the decision of the arbitrator shall be binding and final upon the parties.

Severability Clause

a) In the event that any provision of the Agreement is found to be invalid or ineffective, the remaining provisions of the Agreement will remain valid and effective.

Entire Agreement

a) This Agreement constitutes the entire agreement between the parties and supersedes all prior agreements and understandings between the parties, whether written or oral, regarding the subject matter of the Agreement.

b) No modification or amendment to the Agreement shall be valid unless in writing and signed by both parties.

IN WITNESS WHEREOF, the parties hereto have executed this Non-Disclosure Agreement as of the date first written above.


Please note that this agreement was originally requested in Italian, therefore the “applicable law” should be considered incorrect. Additionally, it is important to note that this contract reverses the roles between the Recipient and the Disclosing Party, completely invalidating the document. Furthermore, the last sentence of the original document was inexplicably in English, despite the document having been requested in Italian and written entirely by the machine in Italian. In conclusion, the cold question to the machine does not produce useful or relevant results.

The previous results were obtained through experimentation on OpenAI’s GPT-3.5 model. However, equally interesting results appear to be widely achievable on Anthropic’s Claude as well.

In fact, by asking Claude the following question cold:

I would like to open a pizzeria restaurant in San Francisco, can you tell me everything I need to do?

you get the following generic response:


Opening a pizzeria restaurant in San Francisco involves several steps:

  1. Develop a business plan. This will help you outline your concept, target market, financial projections, strategy, and operational details. You’ll need it if you seek funding or partnerships.
  2. Determine the licensing and permits required. In SF, you will need a general business license, health department permit, and possibly a sellers permit. There may be additional permits for a restaurant. Work with the city clerk’s office to ensure you have everything in order.
  3. Find a good restaurant location. Look for high-traffic, affordable locations in SF’s popular neighborhoods. Make sure there is available parking and it meets health code requirements for restaurants.
  4. Build your menu. The key to a successful pizzeria is high-quality, authentic ingredients and great tasting pizza. Decide on crust types, pizza styles, salads, otherItalian fare, drinks, etc. so you can deliver an amazing dining experience.
  5. Define your concept and brand. Will you offer fast casual, sit-down, or takeout only? Determine your style to set you apart from competitors. Build a strong brand around the cooking style, pizza types, and overall vibe.
  6. Raise capital. You’ll need financial capital to start and maintain your business. Determine how much you need and explore options like loans, equity financing, crowdfunding, or investor money.
  7. Recruit and train staff. Hire experienced managers and train staff well in food preparation, service, safety, and your concept to provide exceptional service.
  8. Market your new pizzeria. Build hype before opening through social media, a website, ads, and a kickstarter campaign. Post photos and updates, offer discounts and specials. Provide amazing food and service to get great reviews and word-of-mouth marketing.
  9. Grand opening. Launch with a bang to attract new customers. Offer specials, sneak previews, live music, prizes or other promotions. Give the best first impression possible to win loyal customers.
  10. Continue optimizing and improving. Keep a focus on quality, service, and enhancing the customer experience. Try new menu items, different cuisines, more events or other ways to keep customers coming back again and again.

While, by formulating a specific semantic program, you obtain a response like this (first output):


To open a pizzeria restaurant in San Francisco, here is what you will need to do:

You will need to obtain the necessary business licenses and permits from the City of San Francisco. This includes a general business license, health department permit, and possibly a seller’s permit. You may need additional permits for a restaurant. Work with the San Francisco Clerk’s office to ensure you have all the proper licenses and permits.

You will need to register your business with the California Secretary of State. You will have to choose a business structure (like corporation or LLC), file articles of incorporation or organization, and obtain an EIN from the IRS.

You will have to find a suitable commercial space for your restaurant and negotiate a lease. The space must meet health and safety requirements for a food establishment.

You will need to develop a comprehensive business plan that includes your concept, financial projections, marketing plan, and operational details. This will be important if you need funding from investors or loans.

You can work with various government agencies like the SBA or USDA for potential grants, loans or other assistance for your restaurant.

does this cover the key steps to opening a pizzeria in San Francisco? Do you have any other questions or need further clarification?


As you can see, with Claude in both cases you get an interesting response, but with the semantic program you can obtain a much more precise output, just as if you had consulted a legal consultant, which was the goal that was set.

The same applies to contract drafting. Even with Claude, semantic programming seems to produce more precise results that are relevant to the specific case. By asking the following question coldly, in fact:

Write a Non-Disclosure Agreement between Mario Rossi and the publisher, in order to protect all the legal interests of Mario Rossi

The following is obtained:


Here is a draft Non-Disclosure Agreement between Mario Rossi and the publisher:

Non-Disclosure Agreement

This Non-Disclosure Agreement (the “Agreement”) is entered into as of [DATE] by and between:

Mario Rossi, an individual residing in [ADDRESS] (the “Disclosing Party”)

and

[PUBLISHER NAME], a company with registered offices in [ADDRESS] (the “Receiving Party”)

The Disclosing Party may disclose confidential and proprietary information (the “Confidential Information”) to the Receiving Party for the purpose of [PURPOSE OF DISCLOSURE, e.g. publishing a book manuscript].

The Receiving Party agrees that it shall:

  1. Hold the Confidential Information in strict confidence and not disclose it to third parties without the prior written consent of the Disclosing Party.
  2. Use the Confidential Information solely for the purpose of [PURPOSE] and not for any other purpose.
  3. Ensure that only its employees and consultants who have a need to know the Confidential Information for the purpose of [PURPOSE] have access to it, and ensure that such persons comply with the non-disclosure obligations set forth herein.
  4. Promptly return or destroy, at the option of the Disclosing Party, the Confidential Information upon request by the Disclosing Party.
  5. Be responsible for any breach of this Agreement by its employees or consultants.

The obligations set forth herein shall not apply to any Confidential Information which: (i) is publicly known at the time of disclosure; (ii) becomes publicly known through no wrongful act or omission of the Receiving Party; (iii) is already known to the Receiving Party without obligation of confidentiality; (iv) is received from a third party without obligation of confidentiality; or (v) is independently developed by the Receiving Party without use of the Confidential Information.

This Agreement shall remain in full force and effect for a period of [NUMBER OF] years from the date of disclosure of the Confidential Information.

Failure to comply with the obligations set forth in this Agreement may subject the Receiving Party to legal remedies available to the Disclosing Party.

IN WITNESS WHEREOF, the parties hereto have executed this Non-Disclosure Agreement as of the date first written above.

Disclosing Party (Mario Rossi)
Receiving Party (PUBLISHER NAME)


Although Claude’s first output appears to be better than ChatGPT’s first output in this regard, it is still rather indicative and does not seem ready to be printed and used. On the other hand, by inserting the same question into an appropriate semantic program, the following response is obtained with Claud:


Non-Disclosure Agreement

This Non-Disclosure Agreement (the “Agreement”) is entered into as of [DATE] by and between Mario Rossi (the “Discloser”) and [PUBLISHER NAME] (the “Recipient”).

Purpose

The Discloser will disclose the complete text, documents, files, designs or any other information related to the original screenplay titled “[WORK TITLE]” (the “Confidential Information”) to the Recipient for evaluation and potential publication.

Non-Disclosure Obligations

The Recipient agrees that it will hold all Confidential Information in strict confidence and will not disclose such Confidential Information to third parties or use it for commercial purposes not authorized by the Discloser.

The Recipient shall:

  1. Keep the Confidential Information confidential and not disclose or reveal any part of it to any third party.
  2. Use the Confidential Information solely for the purpose of evaluating the screenplay and not exploit it in any other way.
  3. Disclose the Confidential Information only to its employees and collaborators on a need-to-know basis. The Recipient shall ensure that any such employees and collaborators comply with the non-disclosure obligations set forth in this Agreement.
  4. Return all copies of the Confidential Information to the Discloser upon request and delete any Confidential Information saved in electronic format, including emails.

The Recipient shall not:

  1. Copy, modify, or redistribute the Confidential Information in whole or in part.
  2. Use the Confidential Information for any commercial purposes other than those explicitly authorized by the Discloser.
  3. File any patent applications or register any intellectual property rights based on the Confidential Information.

This Agreement shall remain in full force and effect for a period of 5 (five) years from the date first written above. The Recipient acknowledges and agrees that any unauthorized use or disclosure of the Confidential Information may cause irreparable harm and significant damages to the Discloser.

Jurisdiction and Governing Law
This Agreement shall be governed by and construed in accordance with the laws of the State of California, without regard to its conflict of laws principles. The competent courts of San Francisco, California shall have exclusive jurisdiction over any dispute arising out of or in connection with this Agreement.

Liability and Remedies

The Recipient shall be fully liable for any and all unauthorized use or disclosure of the Confidential Information. The Discloser may pursue remedies available at law or in equity for any violation of this Agreement.

The Recipient acknowledges and agrees that due to the unique nature of the Confidential Information, monetary damages may be inadequate to compensate the Discloser for any breach of this Agreement. The Discloser shall therefore be entitled to seek injunctive and equitable relief to prevent the continuing unauthorized use or disclosure of the Confidential Information.

Miscellaneous

This Agreement constitutes the entire agreement between the parties regarding the subject matter hereof. This Agreement may not be modified or amended except by a written instrument duly executed by both parties.

If any provision of this Agreement is found invalid or unenforceable, such provision shall be reformed to the minimum extent necessary to make it valid and enforceable, or if it cannot be so reformed, it shall be severed and the remainder of the Agreement shall not be affected.

The Recipient represents and warrants that it has the full power and authority to enter into this Agreement. The undersigned individuals represent that they are authorized to execute this Agreement on behalf of the represented party.

IN WITNESS WHEREOF, the parties have executed this Agreement as of the date first written above.

MARIO ROSSI (Discloser)
Signature

[PUBLISHER NAME] (Recipient)
Signature

[Publisher Name](Printed Name of Recipient and Title)


As you can see, the result is more relevant and more similar to the response of a legal professional.

In any case, while semantic programming achieves very efficient results when used with ChatGPT, it is necessary to conduct further experiments to determine how it should be adapted to the Anthropic model. This model indeed seems to understand the user’s request very well from the outset, although it provides less comprehensive answers. It appears that when semantic programming is used with Claude, it should attempt to retrieve a greater amount of information from the selected knowledge, rather than focusing on the refinement of specific knowledge.

Acquista il Corso

Resta in Contatto

Fill out this field
Please enter a valid email address.