From 7ec67eab15f0854eba7e7cd1d981ab79cd6fe640 Mon Sep 17 00:00:00 2001 From: akgom <132290469+akgom@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:03:05 -0400 Subject: [PATCH] Create using-local-ai-models-to-privately-chat-with-One-Drive.md (#2637) * Create using-local-ai-models-to-privately-chat-with-One-Drive.md Signed-off-by: Max Cembalest --- ...models-to-privately-chat-with-One-Drive.md | 116 ++++++++++++++++++ gpt4all-bindings/python/mkdocs.yml | 1 + 2 files changed, 117 insertions(+) create mode 100644 gpt4all-bindings/python/docs/gpt4all_desktop/cookbook/use-local-ai-models-to-privately-chat-with-One-Drive.md diff --git a/gpt4all-bindings/python/docs/gpt4all_desktop/cookbook/use-local-ai-models-to-privately-chat-with-One-Drive.md b/gpt4all-bindings/python/docs/gpt4all_desktop/cookbook/use-local-ai-models-to-privately-chat-with-One-Drive.md new file mode 100644 index 00000000..7e9329ce --- /dev/null +++ b/gpt4all-bindings/python/docs/gpt4all_desktop/cookbook/use-local-ai-models-to-privately-chat-with-One-Drive.md @@ -0,0 +1,116 @@ +# Using GPT4All to Privately Chat with your OneDrive Data + +Local and Private AI Chat with your OneDrive Data + +OneDrive for Desktop allows you to sync and access your OneDrive files directly on your computer. By connecting your synced directory to LocalDocs, you can start using GPT4All to privately chat with data stored in your OneDrive. + +## Download OneDrive for Desktop + +!!! note "Download OneDrive for Desktop" + + 1. **Download OneDrive for Desktop**: + - Visit [Microsoft OneDrive](https://www.microsoft.com/en-us/microsoft-365/onedrive/download). + - Press 'download' for your respective device type. + - Download the OneDrive for Desktop application. + + 2. **Install OneDrive for Desktop** + - Run the installer file you downloaded. + - Follow the prompts to complete the installation process. + + 3. **Sign in and Sync** + - Once installed, sign in to OneDrive for Desktop with your Microsoft account credentials. + - Choose the folders you want to sync to your computer. + +## Connect OneDrive to LocalDocs + +!!! note "Connect OneDrive to LocalDocs" + + 1. **Install GPT4All and Open LocalDocs**: + + - Go to [nomic.ai/gpt4all](https://nomic.ai/gpt4all) to install GPT4All for your operating system. + + - Navigate to the LocalDocs feature within GPT4All to configure it to use your synced OneDrive directory. + + + + + +
+ + Screenshot 2024-07-10 at 10 55 41 AM +
+ + 2. **Add Collection**: + + - Click on **+ Add Collection** to begin linking your OneDrive folders. + + + + + +
+ + Screenshot 2024-07-10 at 10 56 29 AM +
+ + - Name the Collection and specify the OneDrive folder path. + + 3. **Create Collection**: + + - Click **Create Collection** to initiate the embedding process. Progress will be displayed within the LocalDocs interface. + + 4. **Access Files in Chats**: + + - Load a model within GPT4All to chat with your files. + + - In your chat, open 'LocalDocs' using the button in the top-right corner to provide context from your synced OneDrive files. + + + + + +
+ + Screenshot 2024-07-10 at 10 58 55 AM +
+ + 5. **Interact With Your OneDrive**: + + - Use the model to interact with your files directly from OneDrive. + + + + + +
+ + Screenshot 2024-07-10 at 11 04 55 AM +
+ + + + + +
+ + Screenshot 2024-07-10 at 11 06 52 AM + +
+ + 6. **View Referenced Files**: + + - Click on **Sources** below responses to see which OneDrive files were referenced. + + + + + +
+ + Screenshot 2024-07-10 at 11 07 25 AM + +
+ +## How It Works + +OneDrive for Desktop syncs your OneDrive files to your computer, while LocalDocs maintains a database of these synced files for use by your local GPT4All model. As your OneDrive updates, LocalDocs will automatically detect file changes and stay up to date. LocalDocs leverages [Nomic Embedding](https://docs.nomic.ai/atlas/capabilities/embeddings) models to find semantically similar snippets from your files, enhancing the context of your interactions. diff --git a/gpt4all-bindings/python/mkdocs.yml b/gpt4all-bindings/python/mkdocs.yml index 0a0bdef4..3a698cbc 100644 --- a/gpt4all-bindings/python/mkdocs.yml +++ b/gpt4all-bindings/python/mkdocs.yml @@ -16,6 +16,7 @@ nav: - 'Settings' : 'gpt4all_desktop/settings.md' - 'Cookbook': - 'Local AI Chat with your Google Drive': 'gpt4all_desktop/cookbook/use-local-ai-models-to-privately-chat-with-google-drive.md' + - 'Local AI Chat with your OneDrive': 'gpt4all_desktop/cookbook/use-local-ai-models-to-privately-chat-with-One-Drive.md' - 'Python SDK': - 'gpt4all_python/home.md' - 'Monitoring': 'gpt4all_python/monitoring.md'