21 lines
360 B
Markdown
21 lines
360 B
Markdown
## Start postgres with pgvector
|
|
docker-compose up -d
|
|
|
|
Then create a new db called "rag", and run this SQL:
|
|
|
|
```sql
|
|
CREATE EXTENSION vector;
|
|
```
|
|
|
|
Finally run the content of db.sql.
|
|
|
|
## Run backend
|
|
```bash
|
|
conda activate llm-api
|
|
python -m uvicorn backend:app --host 0.0.0.0 --reload --reload-include config.yml
|
|
```
|
|
|
|
## Run frontend
|
|
```bash
|
|
python frontend.py
|
|
``` |