File size: 1,537 Bytes
3b8df9e
 
 
 
 
 
 
 
 
49b9b9f
3b8df9e
 
d93c42d
3b8df9e
25d6a39
 
 
 
 
 
 
 
 
 
d93c42d
 
 
 
 
 
 
 
25d6a39
 
d93c42d
 
 
25d6a39
 
 
 
 
 
 
 
e677b67
25d6a39
e677b67
25d6a39
 
e677b67
25d6a39
 
d93c42d
 
 
 
 
 
 
 
 
 
 
 
696f5ad
 
 
 
 
 
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
68
69
70
71
72
---
title: Chatbot
emoji: 🫑
colorFrom: green 
colorTo: indigo
sdk: gradio
sdk_version: 3.23.0
app_file: chatbot/app.py
pinned: false
license: unknown
---

# Vegan Recipe Chatbot

![Screenshot of Chatbot initial interface](docs/assets/chatbot_init.png)

## Quickstart

`git clone` the repo  

```sh
cd lv-recipe-chatbot
```  

Make sure to use the version of python specified in `py_version.txt`  
Create a virtual environment.

```sh
python3 -m venv env
```

Activate the env and install dependencies.

```sh
source env/bin/activate
pip install -r requirements.txt
pip install -r requirements/dev.txt
```

Put API secrets in .env

```sh
cp .env.example .env
```

Edit .env with your secret key(s). Only `OPEN_AI_KEY` is required.

Then start the Gradio demo from within the virtual environment.  

```sh
python3 -m chatbot.app
```

## Dependencies

If a new dependency for devlepment is helpful for developers, add it to `dev.txt`.  
If it is a dependency for the app that is imported in source code, add it to `core.txt`.  
Then run:

```sh
pipreqs --force
```

This will update our `requirements.txt` to include the depenency as it should be pinned in the environment.  

## Useful links

* [Task Matrix (Formerly Visual ChatGPT)](https://github.com/microsoft/TaskMatrix)
* [LangChain](https://python.langchain.com/en/latest/index.html)
* [LLM Prompt Engineering](https://www.promptingguide.ai)
* [OpenAI best practices for prompts](https://help.openai.com/en/articles/6654000-best-practices-for-prompt-engineering-with-openai-api)