I realized that while there are many great online resources out on the internet, the chances of quality information being present in a book is far higher than it being present in a tweet or an article. The two biggest problems with books that I found were that:
- they often cost money
- some are dense and take a while to read to extract and consume the main ideas behind the book.
So, I created knowledgebase so that I (and others) can access any book for free using online libraries and read the core information from those books.
The objective of knowledgebase is to solve the two outlined problems, to make books freely accessible and easy to consume. Knowledgebase can access almost any book in existence and produces a shortened version of the book containing the main points that can be read in 1-2 minutes.
- Install the dependencies by running
npm install -r requirements.txt
- Set the OpenAI API Key in the .env file or copy paste it directly into main.py line 34.
- Run
main.py
and query it title of any book you want - Wait 1-5 minutes (depending on the length of the book)
- navigate to
/books
by doingcd books
. - There will be an AI-generated shortened version of the book inside named
knowledge.txt
.
Due to copyright issues that could get me and the users in trouble, the books are instantly deleted after the summary is created. Knowledgebase takes only the knowledge and insights from a book and shares them.
I'm currently working on improving the quality of the summaries by using my own implementation of summarization and QA instead of using langchain.
Updates and improvements will be made soon but meanwhile, here is a functional version of Knowledgebase.