Skip to content

Interactive ChatGPT model for querying Google Drive content. Extract insights from your documents effortlessly.

Notifications You must be signed in to change notification settings

fonckchain/gdrive-chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT

ChatGPT + Google Drive App with LangChain and Python

This project demonstrates how to build a Python app powered by GPT and Google Drive. This combination is made possible by LangChain's Google Drive document loader and serves as a foundation for an infinite number of great apps

💡 Why LangChain?

LangChain is a framework for building complex LLM powered apps. It provides functionalities like:

  • Importing and transforming data so that it's usable with ChatGPT.
  • Allowing your LLM powered app to interact with the outside world.
  • Making it easy to swap out your current LLM for a new one without rewriting a lot of code.
  • Providing retries with exponential backoffs for free.

🚀 Getting Started

🔍 Prerequisites

  • Python 3.6 or higher
  • OpenAI account
  • Google Drive API credentials

📦 Installation

  1. Clone the repo:

    git clone https://github.com/fonckchain/gdrive-chatgpt
  2. Install the required Python packages:

    pip install openai langchain pypdf2 chroma tiktoken google-api-python-client google-auth-httplib2 google-auth-oauthlib
  3. Set your OpenAI API key as an environment variable:

    export OPENAI_API_KEY='your-api-key'

🛠️ Usage

  1. Replace YOUR_FOLDER_ID in the folder_id variable with your Google Drive folder ID.

  2. "Run python file"

  3. When prompted, enter your query.

📬 Contact

If you have any questions, feel free to contact me at [email protected]

🙏 Acknowledgements

About

Interactive ChatGPT model for querying Google Drive content. Extract insights from your documents effortlessly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published