Skip to content

ks6088ts-labs/summarizer

Repository files navigation

test release

summarizer

A summarizer service using Azure OpenAI Service

Prerequisites

Usage

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

Install dependencies

To install dependencies, just run the following command.

$ make install-deps

Run CI test

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).

Run API server

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).

Run notebook

To run notebook, run the following command.

$ make jupyterlab

Run scripts

To run scripts, run the following command.

$ poetry run python scripts/TAGET_SCRIPT.py