https://drive.google.com/file/d/1f-ouxQCkqbmONIUNdAnq0MYBJTxG8Yh1/view?usp=sharing
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
This project includes integration with ArangoDB, a multi-model database. Follow these instructions to set up and use ArangoDB within the project.
- Docker installed and configured to work with WSL2 (for Windows users)
- Python 3.x
- pip (Python package manager)
-
Install the required Python packages:
pip install python-arango docker -
Build the ArangoDB Docker image:
cd arangodb docker build -t arangodb-custom . -
Use the
arangodb_manager.pyscript to manage the ArangoDB container:python arangodb/arangodb_manager.pyThis script provides options to:
- Start the ArangoDB container
- Stop the ArangoDB container
- Ensure the ArangoDB container is running
The script automatically handles data persistence by mounting a volume.
The arangodb_manager.py script simplifies the process of managing the ArangoDB container. Here's how to use it:
-
To start the container:
python arangodb/arangodb_manager.pyThen select option 1.
-
To stop the container:
python arangodb/arangodb_manager.pyThen select option 2.
-
To ensure the container is running (starts it if not already running):
python arangodb/arangodb_manager.pyThen select option 3.
Use the arangodb_client.py script to interact with ArangoDB:
python arangodb/arangodb_client.py
This script demonstrates how to connect to ArangoDB, create a database and collection, and insert a document.
You can access the ArangoDB web interface by navigating to http://localhost:8529 in your web browser. Use the following credentials:
- Username: root
- Password: password123 (as set in the Dockerfile)
Remember to secure your ArangoDB instance properly in a production environment. The current setup is for development purposes only.