GitXplorerGitXplorer
c

vectordb

public
5 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
bddd0562c30bdfe4a162a822285eb50304efe363

Add VECTORDB_LOCATION, validate input for VectorDB, and handle errors in main

cchand1012 committed 2 years ago
Verified
a603e832bb7f074e6990e0a1f8930474fc1acf82

Initial commit

cchand1012 committed 2 years ago

README

The README file for this repository.

VectorDB

VectorDB is a super simple vector database API written in Deno using OpenAI embeddings API.

Usage

See the API Documentation.

Building

The only build dependency is Deno. To build the project, run the following commands:

git clone https://github.com/chand1012/vectordb.git
cd vectordb
deno compile --allow-net --allow-write --allow-read --allow-env --output bin/vectordb main.ts

Using with Docker Compose

Here's an example of how to use VectorDB in a Docker Compose project:

version: "3.9"

services:
  vectordb:
    image: ghcr.io/chand1012/vectordb:main
    volumes:
      - ./data:/app/data
    ports:
      - "8000:8000"

Environment Variables

Variable Description Default
OPENAI_API_KEY Your OpenAI API key.
VECTORDB_HOST The host address for VectorDB. 127.0.0.1
VECTORDB_PORT The port VectorDB listens on. 8000
AUTH Optional token for authorization checks. None
VECTORDB_LOCATION The location of the vector database file. data/vector.db