ChromaDB UI is a web application for interacting with the ChromaDB vector database using a user-friendly interface.
Follow these steps to run ChromaDB UI locally.
- Clone the repository
git clone https://github.com/BlackyDrum/chromadb-ui.git
cd chromadb-ui- Install dependencies
npm install- Start the development server
VITE_PORT=8090 npm run devThis repository includes a docker-compose.yml file that simplifies starting a ChromaDB container.
- Ensure Docker is installed and running on your machine.
- Start the ChromaDB container using the following command
docker-compose up -dThis will start a ChromaDB instance and expose it on the appropriate port.
You can also run ChromaDB UI using Docker. The Docker image is built and pushed to the GitHub Container Registry.
docker pull ghcr.io/<your-github-username>/chromadb-ui:latestdocker run -e VITE_PORT=8090 -p 8090:80 ghcr.io/<your-github-username>/chromadb-ui:latestReplace <your-github-username> with your actual GitHub username.
If you encounter issues such as CORS errors while running the application, you can resolve them by changing the port configuration:
- Update the Docker Compose file
Modify theCHROMA_SERVER_CORS_ALLOW_ORIGINSenvironment variable to include the new port:
environment:
- CHROMA_SERVER_CORS_ALLOW_ORIGINS=["http://localhost:8090"]- Update the
package.json
Change the dev script to specify the new port
"scripts": {
"dev": "vite --port $VITE_PORT"
}After making these changes, restart both the Docker container and the Vite development server. This should resolve the CORS issue.