Skip to content

helsingborg-stad/F-AI

Repository files navigation

Getting started

Try it on Elastx

  1. Sign up on Elastx https://elastx.se/se/signup
  2. Click button below 👇 to install demo

Install demo

Development (macOS)

brew install libmagic
brew install [email protected]
curl -sSL https://install.python-poetry.org | python3 -
git clone https://github.com/helsingborg-stad/F-AI.git

Backend 🤖

cd F-AI/fai-rag-app/fai-backend
poetry shell && poetry install --with dev,test,unstructured

Setup mongodb as needed.

cp .env.example .env

Edit .env to fit your needs

python -m fai_backend.main

Frontend 🎸

cd F-AI/fai-rag-app/fai-frontend
npm i
npm run dev

View in browser 🚀

open http://localhost:8000
API Docs
open http://localhost:8000/docs
API Root Endpoint 🤩
open http://localhost:8000/api