keepme-backend / README.md
kanha-upadhyay's picture
initial commit
1e0df67
metadata
title: Keepme Backend
emoji: 🏃
colorFrom: green
colorTo: blue
sdk: docker
pinned: false

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

KeepMe

Prerequisites

  • Python 3.11.*
  • Poetry
  • OpenAI API Key
  • Pinecone
  • MongoDB
  • Redis

Installation

  1. Set up a virtual environment using Poetry
poetry install
  1. Create a .env file in the root directory and add the environment variables mentioned in the .env.example file.
cp .env.example .env
  1. Start the FastAPI server
poetry run uvicorn src.app:app --reload

Docker Installation

  1. Build the Docker image
docker build -t keepme-backend .
  1. Run the Docker container
docker run -d -p 7860:7860 --env-file .env keepme-backend

API Documentation

After starting the FastAPI server, you can access the API documentation at http://localhost:8000/docs.