Summarize your long article on a static website. No backend, no telemetry, no data piracy, all on your browser.
Take out your OpenAI API KEY, then just open the website.
Or run locally:
git clone https://github.com/cgjosephlee/summarizeGPT.git
npm i
npm run dev
Provide url parameters to configure.
very long article
https://summarize-gpt-seven.vercel.app/?api_key=YOUR_KEY&model=gpt-3.5-turbo-16k&chunkSize=10000&chunkOverlap=1000
super long article
https://summarize-gpt-seven.vercel.app/?api_key=YOUR_KEY&model=gpt-4-32k&chunkSize=25000&chunkOverlap=1000
refine chain
https://summarize-gpt-seven.vercel.app/?api_key=YOUR_KEY&model=gpt-4&t=0.1&type=refine
params | default |
---|---|
api_key | null |
model | gpt-3.5-turbo |
t (temperature) | 0.2 |
type | map_reduce (stuff, refine) |
chunkSize | 1000 |
chunkOverlap | 100 |
You may edit the prompts and run locally for now.
- https://python.langchain.com/docs/modules/chains/popular/summarize
RecursiveCharacterTextSplitter
is ported to vanilla javascript.- Chain is decomposed to several api calls.