English | 中文
This project is an OpenAI-powered website that integrated with OpenAI's capabilities of text summarization and question answer generation with given context. Both .pdf
and .epub
formats are supported. Summaries and conversations can be mangaged locally. This website is used for Free, without having to signup or signin. This repo is the source code of the front side. visit website>>
- Front side
- Reactjs v18、dexie v4、Typescript v5
- Server side
- python v3.12、gunicorn、fastapi、langchain
Book uploading page
Book detail page
Each summarizing or Q&A process may takes few minutes mainly depending on your file size as well as OpenAI model's processing efficiency. It's necessary for us to have a grasp of what's going on under the hood. Below is a diagram for the work flow.
- Before we start, you need to prepare a .pdf or .epub file. If you don't have one, just click here to download a sample pdf book. After uploading, server will take care of everything and you just need to wait. If you are not a developer, just ignore the following time-consuming steps.
- Server will extract the whole texts from the book uploaded and use proper Text Splitter to split the texts into pieces of document.
Embeddings
generated by utilizing OpenAI embedding.Vectors
are created byPinecone
orEmbedding
- Server will return the answer or summary depending on user actions.