Skip to content
/ BKMK Public

A chatGPT-powered QA app to interact with your bookmarks using retrieval augmented generation

Notifications You must be signed in to change notification settings

ItsBarryZ/BKMK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BKMK

A chatGPT-powered web app to do Q&A with your bookmarks using retrieval augmented generation

Motivation:

  1. My friend and I both have an overflowing knowledge base stored in our bookmarks. We wanted to have a Bing-like experience interacting with that knowledge base
  2. It's just one of those afternoons where two non-engineers want to build something :3

What we built:

We built a quick and dirty prototype (in under 2 hours!) with the help of chatGPT. It's a locally hosted web app that will index website urls you add semantically based on its content, and answer any questions for you, similar to Bing but personalized to your own knowledge base. It has a lot of limitations (mainly in what it is able to index), but most of the techniques are quite transferrable if you are interested in expanding its capability.

Techniques:

  • Ada-text-embedding-002 with a local store for semantic retrieval
  • Segmentation and recursive summarization to fit long articles into chatgpt context window
  • ChatGPT API + Prompt engineering to explain the task and enforce formatting
  • Used chatGPT GENEROUSLY to learn, code, debug, and iterate (neither of us are engineers by trade)

What you would need to use this:

  • an OPENAI API key: https://openai.com/blog/openai-api, the home page of the web app will prompt you to enter it and you will bear the cost for the usage (embedding cost is basically negligible, our recursive summarizer is costing roughly 1c/query)

enter API key

add article and article store

Different QA results:

About

A chatGPT-powered QA app to interact with your bookmarks using retrieval augmented generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published