Giter Club home page Giter Club logo

knowledge's Introduction

Knowledge Chat- Store, Chat, and Summarize Personal Documents

This Flask App allows you to upload your personal PDFs, chat with your documents, and obtain a summary of them.

Prerequisites

  • langchain
  • pinecone
  • langchai
  • Pinecone API Key
  • OpenAI API key

Installation

  1. Clone the repository to your local machine:
  2. Install the required Python packages using pip: pip install -r requirements.txt
  3. Set up your OpenAI API key:
    1. Visit the OpenAI website and create an account.
    2. Obtain an API key.
    3. Set the environment variable OPENAI_API_KEY to your API key.
  4. Create a new pinecone account/index/ and API key
    1. Visit the pincone website and create an account.
    2. Obtain an API key.
    3. Create a new index called "my-knowledgebase" with 1536 dimensions.
    4. Set the environment variable PINECONE_API_KEY to your API Key.
    5. Alter the application.py pinecone.init to reflect your pinecone environment.

Getting Started

  1. Run the Flask application: application.py.run()
  2. Access the application in your web browser at http://localhost:5000.
  3. Upload your first PDF by navigating to the upload tab and adding your document to your vault.
    1. The document will now be converted to embedding vectors in your pinecone index.
    2. The PDF will also be saved in the knowledge folder to be able to access it later.
  4. After your documents have been uploaded you know have the option to ask them questions or summarize them.
    1. To ask questions: Navigate to the home page Knowledge Chat and start typing
    2. To summarize documents: Navigate to the Summarize chat and select your document with the prompt of how you are looking to summarize it.

License

This project is licensed under the MIT License.

knowledge's People

Contributors

tburger101 avatar

Watchers

 avatar

knowledge's Issues

upload-form

hello,I have a problem about upload.html, I can‘t find form id is “upload-form”, but you use it in document.getElementById()(ps: line55). So are there any problems here? Thank you

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.