OneDrive
Upload documents from OneDrive.
What is a Micrsoft OneDrive?
Node in Stack AI
OneDrive is the file storage and synchronization service developed by Microsoft. It allows users to store any type of file in a cloud storage.
In Stack AI, you can connect your OneDrive as a knowledge base by using this node and linking it to an existing account.
How to use it?
How to connect with other nodes
To use the OneDrive node, you must establish connections to both its input and output edges:
- Input: This node necessitates a text input. Typically, you would connect the input to an Input node or an LLM. Through this input, you will need to provide the text query that you want to search for in your OneDrive.
- Output: This node outputs chunks of information after having filtered the information in OneDrive based on your query (your input). Typically, you would connect the output to an LLM or Output node.
OneDrive node authentication and indexing
To authenticate to your OneDrive organization account, you must follow these steps:
-
Go to App Registrations in Azure: visit your Azure Portal and go to “App Registrations” here.
-
Create App: Click on “New Registration”. Add a name to your app and select “Accounts in this organizational directory only (Default Directory only - Single tenant)”.
-
Get Client ID and Tenant ID: get your client and tenant id from the “Essentials” section. You will find them under “Application (client) ID” and “Directory (tenant) ID ”.
- Create a client secret: Navigate to “Certificates & Secrets” then click on “New client secret”. Give an expiration date to your secret. Finally, you will find the client secret in the “Value” field of the secret.
- Add Scopes: Naviate to “App Permissions” and then click on “Add a permission”. Click on “Microsoft Graph” and select “Application Permissions”. Then select the following scopes: User.Read.All , User.ReadBasic.All, Files.Read.All. Then click on “Add Permissions”. Finally click on “Grant Admin Consent for Default Directory”.
Now you can proceed to add your node in Stack AI add add the value of your client_id, client_secret, tenant_id, user, and folder.