danishmuhammad commited on
Commit
9cb965d
·
verified ·
1 Parent(s): 2cac305

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -21,7 +21,7 @@ function sendMessage() {
21
 
22
  // Detect objects in the image
23
  async function getAnswer(question) {
24
- const context = 'Titration is the slow addition of one solution of a known concentration (called a titrant) to a known volume of another solution of unknown concentration until the reaction reaches neutralization, which is often indicated by a color change. The solution called the titrant must satisfy the necessary requirements to be a primary or secondary standard. In a broad sense, titration is a technique to determine the concentration of an unknown solution.';
25
  const output = await answerer(question, context);
26
  setTimeout(function() {
27
  chatBox.innerHTML += "<p class='bot-message'><strong>Chatbot:</strong> " + output.answer + "</p>";
 
21
 
22
  // Detect objects in the image
23
  async function getAnswer(question) {
24
+ const context = 'Chemistry is the study of the properties of matter, how matter changes and what it’s made of.We can break down almost everything in the universe into tiny particles called atoms. There are 119 types of atoms in the universe. Groups of atoms bonded together are called molecules. In a chemical reaction, molecules rearrange themselves to make multitudes of materials and substances that exist today. Every material has a specific composition of atoms which we express as a chemical formula.H2O is the chemical formula for water.This means that a water molecule has two hydrogen (H) atoms and one oxygen (O) atom.In chemistry, you will learn the formulae for various materials and how to combine molecules in reactions. You will also learn how atoms make electricity and energy.The topics covered in chemistry come under three main sections: Physical Chemistry, Inorganic Chemistry and Organic Chemistry.physical chemistry is a study of how atoms behave. If you were to look into an atom you would see that it’s made of other tiny sub-particles called electrons, protons and neurons. Every atom has a unique arrangement of sub-particles (Atomic Structure). Atomic structure affects how atoms bond with each other (Atomic Bonding) and how they respond to heat (Thermodynamics).In inorganic chemistry, we will explore the periodic table. You will learn how we ended up with all the elements we see on it today and discover why Mendeleev arranged the elements that way. You will also learn about the similarities and differences in their properties, and how we use them in chemistry.Organic chemistry is the study of materials that contain carbon. ‘Organic’ means derived from living things. We call this field organic chemistry because scientists previously thought that we could only find organic compounds in living matter and they couldn’t be made artificially. Today, we know this is not true - we can manufacture numerous organic compounds in laboratories.Even though organic chemistry mostly focuses on carbon, it is the second-largest section in chemistry. This is because carbon can combine with other elements to form a vast array of fascinating molecules, structures and compounds! Carbon bonds covalently with elements like hydrogen, oxygen and nitrogen to make long complex repeating chains that form a variety of fantastic materials that we use today. Among the materials you will learn about in organic chemistry are alcohols and polymers. ';
25
  const output = await answerer(question, context);
26
  setTimeout(function() {
27
  chatBox.innerHTML += "<p class='bot-message'><strong>Chatbot:</strong> " + output.answer + "</p>";