Skip to content

Commit

Permalink
Merge pull request #47 from video-db/ashish-spext-patch-1
Browse files Browse the repository at this point in the history
Update README.md with Railway URL and minor spacing
  • Loading branch information
ashish-spext authored Oct 30, 2024
2 parents 5f9d8d8 + dc83931 commit 8b9b446
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

<p align="center">
<p align="center">
<a href="https://render.com/deploy?repo=https://github.com/video-db/Director" target="_blank" rel="nofollow"><img src="https://render.com/images/deploy-to-render-button.svg" alt="Deploy to Render"></a>
<a href="https://railway.app/">
<img src="https://railway.app/button.svg" alt="Deploy on Railway">
<a href="https://render.com/deploy?repo=https://github.com/video-db/Director" target="_blank" rel="nofollow">
<img src="https://render.com/images/deploy-to-render-button.svg" alt="Deploy to Render">
</a>
<a href="https://railway.app/template/QJbo7o" target="_blank" rel="nofollow">
<img src="https://railway.app/button.svg" alt="Deploy on Railway">
</a>
</p>

Expand Down Expand Up @@ -61,6 +63,7 @@ https://github.com/user-attachments/assets/8b97a9bf-5c81-4a0d-8863-9415552eba57
- **🎨 Innovative User Experience:** Complete framework for interacting with your media library with chat based UI, Video player and next-gen interactions that can help you create the experience you need.
- **🔍 Media Analysis:** Your video infra is taken care by [VideoDB](https://videodb.io). Connect with popular LLMs, Databases, and GenAI APIs seamlessly.
- **🧩 Extensible Architecture:** Easily add new capabilities through tools and modules. Run locally or deploy on your own cloud.

![Director architecture](https://github.com/user-attachments/assets/9afb2783-66db-4899-9308-03cbd12e74d7)


Expand Down Expand Up @@ -96,7 +99,10 @@ cd Director
> - Install Python and pip
> - Set up virtual environments and install dependencies for frontend and backend
Supported platforms: Mac ✔ Linux ✔
Supported platforms:
- Mac
- Linux
- Windows (WSL)

**3. Configure the environment variables:**
Edit the `.env` files to add your API keys and other configuration options.
Expand Down Expand Up @@ -168,6 +174,8 @@ To create a new agent in Director, follow these steps:
7. **Register the agent**:
- Import your new agent class in `Director/backend/director/handler.py`
- Add it to the `self.agents` list in `ChatHandler`


![director_reasoning_engine](https://github.com/user-attachments/assets/13a92f0d-5b66-4a95-a2d4-0b73aa359ca6)
Remember to consider creating reusable tools if your agent's functionality could be shared across multiple agents.

Expand Down
14 changes: 13 additions & 1 deletion docs/get_started/railway.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
!!! note

Director will soon be available on the Railway Marketplace for easy deployment.
You need to be connected to GitHub account in https://railway.app/account/plans to perform the deployment.

## Deployment Instructions via Railway Template

1. Go to the [Director's Railway Template](https://railway.app/template/QJbo7o?referralCode=XiD6Mt).
2. Click **Deploy Now**.
3. Set the frontend environment variable `VITE_APP_BACKEND_URL` with a placeholder.
4. For the backend, configure the required environment variables `VIDEO_DB_API_KEY` and `OPENAI_API_KEY`. Optionally, you can configure additional environment variables as needed.
5. Click **Deploy**.
6. Once both services are deployed successfully, click on the backend service and copy the public URL (e.g., `https://backend-production-xxxx.up.railway.app`).
7. Update the frontend's `VITE_APP_BACKEND_URL` variable with the copied backend URL.
8. After updating the `VITE_APP_BACKEND_URL` variable, a **Deploy** option will appear. Click it to re-deploy the frontend.
9. Once deployment is complete, access the application through the frontend's public URL, such as `https://frontend-production-xxxx.up.railway.app`.

## Deployment Instructions via Railway CLI

Expand Down

0 comments on commit 8b9b446

Please sign in to comment.