A summarizer service using Azure OpenAI Service
- Python (3.10+) as a primary language
- Poetry as a package manager
- GNU Make as a task runner
All tasks are defined in Makefile.
To see all tasks, run the following command.
$ make
ci-test run CI test
docker-build docker build
docker-run docker run
format format codes
info show info
install-deps install dependencies
jupyterlab run jupyterlab server
lint lint codes
server run server
test test codes
To install dependencies, just run the following command.
$ make install-deps
To make sure that your code is working as expected, you should run CI test before committing your code. To run the whole CI test, just run the following command.
$ make ci-test
This task is also executed on GitHub Actions (see test.yml).
To run API server, you need to set environment variables.
Create *.env
files with reference to *.env.sample
files.
For example, just copy azure_ai_search.env.sample to azure_ai_search.env
and edit it to fit your environment.
Then, run the following command to start API server.
$ make server
Playground for each API is live at /FEATURE/playground
(e.g. /search/playground
).
To run notebook, run the following command.
$ make jupyterlab
To run scripts, run the following command.
$ poetry run python scripts/TAGET_SCRIPT.py