Skip to content

ubc/tlef-qdrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Qdrant Vector Database for Local Development

This project provides a ready-to-use local development environment for the Qdrant vector database using Docker Compose.

Prerequisites

Before you begin, ensure you have the following installed on your system:

Getting Started

Follow these steps to start the Qdrant service on your local machine.

0. Clone this repo locally

In a directory you want to place this project, run: git clone https://github.com/ubc/tlef-qdrant

1. Start the Service

Navigate to the root of this project directory in your terminal and run the following command to start the Qdrant container in detached mode (it will run in the background):

docker-compose up -d

2. Verify the Service is Running

You can check the status of the running container with:

docker-compose ps

You should see a service named qdrant-local-dev with a status of Up.

3. Access the Qdrant Web UI

Once the service is running, you can access the Qdrant Web UI in your browser at:

http://localhost:6333/dashboard

This dashboard allows you to view collections, search points, and interact with your vector database.

Service Configuration

API Endpoints

The Qdrant service exposes two main ports on your local machine:

  • Port 6333 (HTTP): The REST API endpoint for all database operations. You will use this for making HTTP requests to create collections, add points, search, etc. The Web UI also runs on this port.
  • Port 6334 (gRPC): A high-performance binary protocol used by the official Qdrant client libraries (e.g., for Python, TypeScript/JavaScript).

API Key Authentication

This service is configured to require an API key for all requests. This is a security best practice.

  • Your API Key: The key is defined in the docker-compose.yml file.
  • How to Use: You must include this key in the api-key header of your HTTP requests.

Example using curl:

# This command retrieves cluster information and should succeed
curl http://localhost:6333/cluster \
  --header 'api-key: super-secret-dev-key'

# This command will fail with a 401 Unauthorized error
curl http://localhost:6333/cluster

Data Persistence

All data created in your Qdrant instance (collections, vectors, etc.) is stored in the ./qdrant_data directory within this project.

This means your data will persist even if you stop and restart the container. If you want to start with a fresh, empty database, you can stop the service and delete this directory.

Managing the Service

Stopping the service and viewing logs:

Stop the Service

To stop the Qdrant container without deleting your data, run:

docker-compose down

View Logs

To view the real-time logs from the Qdrant service for debugging, run:

docker-compose logs -f

Press Ctrl+C to stop viewing the logs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors