File size: 992 Bytes
fad6fa1
5a67683
b1fe073
fad6fa1
b1fe073
fad6fa1
cca4857
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b1fe073
 
 
 
cca4857
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
title: discord-bot
app_file: app/__main__.py
sdk: gradio
sdk_version: 4.26.0
---
# Capstone Project

## Requirements

* [Docker](https://www.docker.com/).
* [Docker Compose](https://docs.docker.com/compose/install/).
* [Poetry](https://python-poetry.org/) for Python package and environment management.


## Installation

### Set up virtual environment

```shell
python -m venv venv
. venv/bin/activate
```

### Install dependencies

- Install poetry: https://python-poetry.org/
- Install dependencies

```shell
poetry install
```

#### Local Requirements
```shell
poetry install --with local
```

Download embedding and(or) LLM models
```shell
bash prestart.sh
```
Download web images and creating indices
```shell
bash index.sh
```

### Install `pre-commit` hooks

```shell
pre-commit install
```

## Running
```shell
docker compose up -d
poetry run python -m app
```

## URLs
### Development URLs
#### Gradio UI
http://localhost:8000

#### API Documentation
http://localhost:8000/docs