Skip to content

Gusse-dev/API_VDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Excercise - Vectordatabase WebAPI

This projects implements a REST-API that interacts with a vector database.

About

API_VDB is a python-based project built with FastAPI and ChromaDB. It enables the user to upload text documents into a vector database and search for the most similar documents.


API-Features

  • Upload documents [txt, md, pdf]
  • Delete Documents
  • List all uploaded documents
  • Text search that returns the most relevant document

Prerequisites

Installation

Steps (local deployment)

git clone https://github.com/Gusse-dev/API_VDB
python -m venv env
env/Scripts/activate
pip install -r ./requirements.txt 
# pip install -r ./requirements_windows.txt if running on windows
fastapi run app/main.py

Steps (container deployment)

git clone https://github.com/Gusse-dev/API_VDB
docker build . -t api_vdb   
docker run -d --name api_vdb -p 8000:8000 api_vdb 
# docker start api_vdb
docker stop api_vdb

Info: Using the API inside the container for the first time might take a while, as the language model for the vector database needs to downloaded.

Documentation

View the Swagger-Documentation by running the app and accessing http://127.0.0.1:8000/docs#
It is also provides an interface to test the functionality of the API.
Authorization can be done by using the top right 'authorize' icon and entering a valid username and password.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors