Personal Question and Answer Search Engine
Search engines are great for finding lots of useful information, but they often provide you with too much information. It can take time to sort through it to find what you need. Most people end up doing the same search over again because they don't remember everything. I started adding useful information to a file so it would be easy to find but it became harder and harder to find what I was looking for.
A personal question and answer search engine makes it easier to find what you are looking for. Type a question. If the answer you want is not there find it. Then add it so it will be there next time. I made a simple question and answer search engine because I don't have a photographic memory. Computers don't forget. They can remember everything you add to them and my computer program makes it easy to find the information I am looking for.
If you don't remember everything then get your computer to remember for you.
A knowledge base is a collection of knowledge stored in a file. They can be used to store many bits of useful information, including answers to frequently asked questions. While taking notes you may type or paste information into a text editor like Notepad or Wordpad. For this program you ask a question then you add the answer to a text box. Instead of just taking notes you are adding content to the search engine so it is easier to find.
Ideas for a Knowledge Base
AI computer players
facts and trivia
frequently asked questions
HTML Page with Buttons
Autocomplete gives the user the option of completing words or sentences. You need it so you can match new questions with ones that have already been asked. It saves time and shows the user a list of similar question that have already been asked. The autocomplete function is the main function. If I start typing "How to" it would give me a list of questions that contain the words "how to".
Functions autocomplete needs
Saving the Knowledge
When you ask and answer questions the information is saved automatically using 'localStorage'. It stores the information for the current knowledge base on your computer. Only the current browser can access it. So if you made the knowledge base in Chrome you can't access it in Firefox. You can also save and load using text files. Saving and loading text files is done manually with the 'Backup' and 'Restore' buttons.
A knowledge base that is saved to a text file can be accessed by different browsers. You could even e-mail it to someone that has this program on their computer.
Read More From Owlcation
Save & Load Local
Save & Load to text files
Functions to Remove Questions
Runs When Page Finishes Loading
How to Copy and Paste Code
You should see the question and answer search engine. The knowledge base will be empty. So you will need to fill it by asking and answering questions. It is intended to be used as an offline webpage. You open it in a web browser but you don't need to be online.
Load data from a text file online.
Sharing & Using Your Knowledge Base
This program is good for getting your computer to remember things for you. You can also share your knowledge or get other people to share information by sharing the text files created with the "Backup" button. The easiest way would be to email the file. Another way to share a knowledge base is to load it into a web page. Upload a text file with the questions and answers. Then get a web page to load the information using the onload function and fetch code shown above.
After creating a knowledge base you can get other web pages and programs to load and use the data. You could use it for games, chat bots, a FAQ page, help pages, expert systems, etc. Instead of just answering questions you ask the program could fill in for you in your absence. A computer program could make decisions based on your knowledge and respond the way you would.
This content is accurate and true to the best of the author’s knowledge and is not meant to substitute for formal and individualized advice from a qualified professional.
© 2019 Michael H
Michael H (author) from Canada on December 22, 2019:
Type a question like "How to convert 2D image to 3D?" and press enter. The answer area will be blank. To add an answer you need to click on the answer area, add the answer and click the "Answer" button.
Navneet on December 21, 2019:
How can I add questions in it?
Navneet on December 21, 2019:
Sir it's not working can I get whole code in a single html file?