REST API for exploring Large Language Models (LLMs).
This project is fueled by the FastAPI web-framework, boasting a straightforward web-interface for user interaction alongside robust REST API support. The data is managed in a Postgres database.
- User registration, authentication, and authorization;
- Confirmation email dispatch upon new user registration;
(Add relevant features here)
- Python;
- FastAPI web-framework;
- Docker, Docker Hub;
- Pycharm IDE;
- Sphinx documentation builder;
- Postgres database engine;
-
Clone the repository and navigate to its root directory:
git clone git@github.com:svybu/llmexplorer.git
cd llmexplorer -
Create virtual environment and activate it:
withpoetry:
poetry shell -
Install packages:
poetry update -
Copy file
env_sampleto.envand change values to fit your needs -
You should have PosgreSQL database engine running. As a good example we recomment to run
postgresindockercontainer. For that purpose the repository has itsdocker-compose.yamlfile. Just run a command:
docker-compose up -d
... -
Generate a new migration file if you have made changes to your models:
alembic revision --autogenerate -m "Your message about the migration" -
Apply migrations:
alembic upgrade head -
Start the app by typing:
python run.py -
Browse the app on
http://127.0.0.1:8080