Commit
·
69ea337
1
Parent(s):
3918c08
fix: update readme
Browse files
README.md
CHANGED
@@ -9,4 +9,73 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
+
# HackerEarth Digital Assistant
|
13 |
+
|
14 |
+
HackerEarth's Digital Assistant that helps your answer queries around the HackerEarth's product!
|
15 |
+
|
16 |
+
![HackerEarth's Digital Assistant at work!](https://imgur.com/0S0p0BW.png)
|
17 |
+
|
18 |
+
## Features
|
19 |
+
|
20 |
+
- HackerEarth's digital assistant and salesperson
|
21 |
+
- Supports knowledgebase from the web
|
22 |
+
- Supports knowledgebase provided via PDFs.
|
23 |
+
- Answer all your queries around HackerEarth
|
24 |
+
- Asks user for contact details so that human sale sperson can reach back to the user
|
25 |
+
- Saves the contact detail and intent in a database for reference purpose
|
26 |
+
|
27 |
+
## Environment Variables
|
28 |
+
|
29 |
+
To run this project, you will need to add the following environment variables to your .env file
|
30 |
+
|
31 |
+
`OPENAI_API_KEY`
|
32 |
+
|
33 |
+
`PINECONE_API_KEY`
|
34 |
+
|
35 |
+
`PINECONE_ENVIRONMENT`
|
36 |
+
|
37 |
+
`PINECONE_INDEX`
|
38 |
+
|
39 |
+
You can simply perform the following command to prepare the env template.
|
40 |
+
|
41 |
+
`cp .env.example .env`
|
42 |
+
|
43 |
+
Add the value to the environment variables on your end.
|
44 |
+
|
45 |
+
## Run Locally
|
46 |
+
|
47 |
+
Clone the project
|
48 |
+
|
49 |
+
```bash
|
50 |
+
https://github.com/abhijeetps/hackerearth-digital-assistant
|
51 |
+
```
|
52 |
+
|
53 |
+
Go to the project directory
|
54 |
+
|
55 |
+
```bash
|
56 |
+
cd hackerearth-digital-assistant
|
57 |
+
```
|
58 |
+
|
59 |
+
Install dependencies
|
60 |
+
|
61 |
+
```bash
|
62 |
+
pip install -r requirements.txt
|
63 |
+
```
|
64 |
+
|
65 |
+
Add environment variables to _.env_ file.
|
66 |
+
|
67 |
+
Populate Vector Database with HackerEarth's content.
|
68 |
+
|
69 |
+
```bash
|
70 |
+
python vdb.py
|
71 |
+
```
|
72 |
+
|
73 |
+
Run HackerEarth's chatbot locally:
|
74 |
+
|
75 |
+
```bash
|
76 |
+
streamlit run app.py
|
77 |
+
```
|
78 |
+
|
79 |
+
## Authors
|
80 |
+
|
81 |
+
- [@abhijeetps](https://www.github.com/abhijeetps)
|