GithubHelp home page GithubHelp logo

fraserxu / book-gpt Goto Github PK

View Code? Open in Web Editor NEW
432.0 432.0 47.0 715 KB

Drop a book, start asking question.

Home Page: https://book-gpt.fraserxu.dev

TypeScript 98.32% JavaScript 1.63% CSS 0.05%

book-gpt's Introduction

Hi there ๐Ÿ‘‹

Hi this is Fraser.

I'm a web developer from China, now living and working in Melbourne. I'm currently working as a lead engineer for Envato.

The main project I'm working on now is Envato Elements, before that I also worked on Milkshake and Envato Market.

book-gpt's People

Contributors

fraserxu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

book-gpt's Issues

something went wrong

Screenshot 2023-03-06 at 4 42 54 pm

Screenshot 2023-03-06 at 5 29 21 pm

it would help me if this error was actually returned in the client - rather than having to debug app.
'PineconeClient: Error calling upsert: PineconeClient: Error calling upsertRaw: FetchError: The request failed and the interceptors did not return an alternative response '

UX - add - Success states

Right now there is no way for the user to know when a PDF is uploaded or credentials updated.
Have a settings icon which takes in API credentials.
Only after the user uploads a pdf/txt, ("PDF successfully uploaded") enable the chat, else it is confusing.

here is a quick scribble as a starting point

image

image

In Future, maybe let the user add different books and have different chatbots interacting with them. Unique URL which. the user can bookmark for each (protected. by auth)

image

Cost estimate

Estimate the cost of processing the pdf file with openai and pinecone, confirm it with the user and then start to digest it to prevent the costs going to the roof.
thank you

Request failed with status code 429 - Has this Error 429 Been Fixed?

fraserxu,
I followed the instructions to set up the account and tried to upload a PDF and received this error message. Have you determined the cause for the error. As far as Pinecone AI issues, it appears in the example that you provided that you were using a Free Account with an expiry date 14 days later, Mine was a 7 day free trial but it shouldn;t ake a difference unless you have tested your app while utilizing a Free Pinecone AI Starter Membership.
Regardless, any feedback would be greatly appreciated as this is a service that is very unique and it would be great to be able to utilize it!

Thank you for your efforts, they are greatly appreciated.

Environment Variables for Devs

Would like to play around with this repo on local. Perhaps a little how-to on implementing environment variables to set the API keys over the user adding them.

Pinecone environment is hardcoded and users based out of West Coast cannot use the app

The problem is that in Pinecone I couldn't find an option to pick environment and every index I create has "us-east-1-aws" environment. So the application throws an error:

PineconeClient: Error getting project name: SyntaxError: Unexpected token 'A', "API key is"... is not valid JSON

To fix this problem I moved Pinecone environment to credentials (the same way you do with API keys). How can I create a pull request with this fix?

Multiple model support

I want to be able to select between GPT 3.5 and 4.

Maybe you can add it to the Credentials part.

GPT-4 support please

Needs updating langchain and maybe changing some parameters in the openai API? I couldn't find it anywhere

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.