This Flask App allows you to upload your personal PDFs, chat with your documents, and obtain a summary of them.
- langchain
- pinecone
- langchai
- Pinecone API Key
- OpenAI API key
- Clone the repository to your local machine:
- Install the required Python packages using pip: pip install -r requirements.txt
- Set up your OpenAI API key:
- Visit the OpenAI website and create an account.
- Obtain an API key.
- Set the environment variable OPENAI_API_KEY to your API key.
- Create a new pinecone account/index/ and API key
- Visit the pincone website and create an account.
- Obtain an API key.
- Create a new index called "my-knowledgebase" with 1536 dimensions.
- Set the environment variable PINECONE_API_KEY to your API Key.
- Alter the application.py pinecone.init to reflect your pinecone environment.
- Run the Flask application: application.py.run()
- Access the application in your web browser at http://localhost:5000.
- Upload your first PDF by navigating to the upload tab and adding your document to your vault.
- The document will now be converted to embedding vectors in your pinecone index.
- The PDF will also be saved in the knowledge folder to be able to access it later.
- After your documents have been uploaded you know have the option to ask them questions or summarize them.
- To ask questions: Navigate to the home page Knowledge Chat and start typing
- To summarize documents: Navigate to the Summarize chat and select your document with the prompt of how you are looking to summarize it.
This project is licensed under the MIT License.