Welcome to your gateway to leveraging the power of artificial intelligence for quick and meaningful insights into your unstructured documents in Dropbox. This guide will walk you through the process of setting up and running the AI chat tool connected to your Dropbox and OneDrive, allowing you to efficiently summarize and access information in real-time.
What is the Dropbox AI Tool?
The Dropbox AI Chat tool enables users to quickly summarize content and retrieve information from private large unstructured documents stored in their Dropbox account. This tool is equally compatible with OneDrive, making it versatile for cloud storage users.
Imagine having a personal assistant who, within seconds, fetches relevant information from your documents, such as tax details from multiple countries. That’s exactly what this AI-powered tool delivers. It indexes data in real-time immediately after you upload files to your cloud storage.
Demo
Check out how the tool works in the demo below:
How to Run the Tool
There are three ways to run this application:
1. Run with Conda
For a comprehensive walkthrough, check out the video below (takes approximately 7 minutes):
2. Run with Docker
Follow these steps to get started with Docker:
- Create a
.envfile in the root directory of the project: - Copy and paste the configuration below, replacing the
OPENAI_API_TOKENvalue with your received OpenAI API key, and theDROPBOX_LOCAL_FOLDER_PATHwith the path where your Dropbox folder is located.
OPENAI_API_TOKEN=OPENAI_API_KEY
EMBEDDER_LOCATOR=text-embedding-ada-002
EMBEDDING_DIMENSION=1536
MODEL_LOCATOR=gpt-3.5-turbo
MAX_TOKENS=200
TEMPERATURE=0.0
DROPBOX_LOCAL_FOLDER_PATH=REPLACE_WITH_DROPBOX_FOLDER_PATH
docker compose up.localhost:8501 on your browser.3. Run from the Source
To execute the application from source, ensure the following prerequisites are met:
- Python 3.10 or higher is installed on your machine. Check the official Python website for installation.
- Install Pip for package management.
- Create an OpenAI account and generate a new API Key for API access.
- Utilize your Dropbox or OneDrive account.
Step-by-Step Installation:
- Clone the repository:
git clone https://github.com/pathway-labs/dropbox-ai-chat - Navigate to the project folder:
cd dropbox-ai-chat - Create and configure the .env file:
OPENAI_API_TOKEN=OPENAI_API_KEY HOST=0.0.0.0 PORT=8080 EMBEDDER_LOCATOR=text-embedding-ada-002 EMBEDDING_DIMENSION=1536 MODEL_LOCATOR=gpt-3.5-turbo MAX_TOKENS=200 TEMPERATURE=0.0 DROPBOX_LOCAL_FOLDER_PATH=YOUR_LOCAL_DROPBOX_PATH - (Optional) Create a new virtual environment:
python -m venv pw-env source pw-env/bin/activate - Install app dependencies:
pip install --upgrade -r requirements.txt - Run the Pathway API:
python main.py - Run the Streamlit UI:
streamlit run ui.py
Troubleshooting
If you encounter any issues during installation or execution, here are a few troubleshooting ideas:
- Make sure your Python and Pip installations are up to date.
- Verify that your OpenAI API key is valid and has access permissions.
- Check that your environment variables are set correctly in the
.envfile.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Conclusion
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

