OctoAI Logo
Back to demos & webinarsPDF Summarizer
ToolsNodeJS, PDF-parse
SolutionsText Gen
Date PublishedJan 26, 2024
PublisherThierry Moreau

PDF Summarizer

Learn how to build a simple NodeJS app that summarizes any PDFs uploaded by users. Get a summary of all kinds of different content types, from manuals to resumes. You will be using the OctoAI Text Gen Solution to run the open source LLM of your choice behind the scenes for summarization. You will get a sense of how to start using LLMs in language workflows.

Repo

OctoAI Simple Chat app screenshot showing example prompts from a user and answers from the Chatbot app powered by Llama 2 70B, OctoAI, and LangChain

Build with PDF Summarizer

We built the PDF Summarizer to show the possibilities of using an LLM for all kinds of natural language processing, in this case summarization. From instruction manuals to short form content, see how easy it can be to incorporate this into your use case.

Prerequisites to get started

Before trying to setup or run this app you will need to do the following:

Start building

  • Run npm install to install modules

  • Place .pdf files in the files folder

  • Rename .env example to .env

  • Input your OctoAI API token in the .env file

  • Run npm start in the terminal

Share what you build

We are excited to see what you build – feel free to show us in our Discord, and see what other community members are creating.

Your choice of models on our SaaS or in your environment

Run any model or checkpoint on our efficient, reliable, and customizable API endpoints. Sign up and start building in minutes.