Building the app without Dockerization
Last updated
Last updated
Here, you can explore a video tutorial by Richard Pelgrim, a Developer Advocate in the stream data processing space, demonstrating how they harnessed the Dropbox document sync application to create a RAG app.
Link to the Project
The repository being referred to can be found here - https://github.com/pathway-labs/dropbox-ai-chat. Make sure to star it.
If you struggle to build the application with the help of README on the GitHub repo above, the video and the description below should help you.
Navigating the maze of new regulations, like the EU AI Act, can be a complex challenge for founders and data practitioners. This app which leverages the Dropbox example, aims to make understanding these regulations more straightforward. Imagine a tool that helps you dissect and comprehend these intricate policies, easing compliance and being informed.
As you explore this application, think of the diverse scenarios you can open just with the Dropbox AI Chat example that we're seeing here.
Let's analyze a few elements from this video.
Create a .env
file in the root directory and populate it with your configurations. Make sure to replace {OPENAI_API_KEY}
it with your actual OpenAI API key.
Make sure to replace DROPBOX_LOCAL_FOLDER_PATH with your local Dropbox folder path; optionally, you can customize other values.
In this case, Richard has used Conda so it's not necessary. To create an isolated environment, execute:
Navigate to the root directory and execute main.py
.
Run the Streamlit app using the following command:
Access the UI at http://localhost:8501/
on your browser.
If you look closely at the repo and visit api.py
, you'll be able to connect the dots from what we've learned. Here:
The prompt is processed as embeddings and used as embedded_query.
The data we're getting from our data source, (i.e., Dropbox) is converted into smaller chunks with the help of Pathway (pw) and then converted to embeddings and stored in index.
Using these, we're creating the augmented prompt with the help of retrieved information and feeding that into GPT-3.5 turbo.
Following these steps, you can get the Dropbox AI Chat tool up and running.
However, suppose you're facing issues downloading the dependencies or running the application on your machine. In that case, it might be worthwhile to check the next module, which provides a comprehensive guide for implementing this through Docker.
With this, your app should be up and running.