Spaces:
Sleeping
Sleeping
Update initial readme
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: 📉
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
@@ -8,111 +8,4 @@ pinned: false
|
|
8 |
license: apache-2.0
|
9 |
---
|
10 |
|
11 |
-
#
|
12 |
-
|
13 |
-
In today's breakout rooms, we will be following the processed that you saw during the challenge - for reference, the instructions for that are available [here](https://github.com/AI-Maker-Space/Beyond-ChatGPT/tree/main).
|
14 |
-
|
15 |
-
Today, we will repeat the same process - but powered by our Pythonic RAG implementation we created last week.
|
16 |
-
|
17 |
-
You'll notice a few differences in the `app.py` logic - as well as a few changes to the `utilities_2` package to get things working smoothly with Chainlit.
|
18 |
-
|
19 |
-
## Reference Diagram (It's Busy, but it works)
|
20 |
-
|
21 |
-
![image](https://i.imgur.com/IaEVZG2.png)
|
22 |
-
|
23 |
-
## Deploying the Application to Hugging Face Space
|
24 |
-
|
25 |
-
Due to the way the repository is created - it should be straightforward to deploy this to a Hugging Face Space!
|
26 |
-
|
27 |
-
> NOTE: If you wish to go through the local deployments using `chainlit run app.py` and Docker - please feel free to do so!
|
28 |
-
|
29 |
-
<details>
|
30 |
-
<summary>Creating a Hugging Face Space</summary>
|
31 |
-
|
32 |
-
1. Navigate to the `Spaces` tab.
|
33 |
-
|
34 |
-
![image](https://i.imgur.com/aSMlX2T.png)
|
35 |
-
|
36 |
-
2. Click on `Create new Space`
|
37 |
-
|
38 |
-
![image](https://i.imgur.com/YaSSy5p.png)
|
39 |
-
|
40 |
-
3. Create the Space by providing values in the form. Make sure you've selected "Docker" as your Space SDK.
|
41 |
-
|
42 |
-
![image](https://i.imgur.com/6h9CgH6.png)
|
43 |
-
|
44 |
-
</details>
|
45 |
-
|
46 |
-
<details>
|
47 |
-
<summary>Adding this Repository to the Newly Created Space</summary>
|
48 |
-
|
49 |
-
1. Collect the SSH address from the newly created Space.
|
50 |
-
|
51 |
-
![image](https://i.imgur.com/Oag0m8E.png)
|
52 |
-
|
53 |
-
> NOTE: The address is the component that starts with `[email protected]:spaces/`.
|
54 |
-
|
55 |
-
2. Use the command:
|
56 |
-
|
57 |
-
```bash
|
58 |
-
git remote add hf HF_SPACE_SSH_ADDRESS_HERE
|
59 |
-
```
|
60 |
-
|
61 |
-
3. Use the command:
|
62 |
-
|
63 |
-
```bash
|
64 |
-
git pull hf main --no-rebase --allow-unrelated-histories -X ours
|
65 |
-
```
|
66 |
-
|
67 |
-
4. Use the command:
|
68 |
-
|
69 |
-
```bash
|
70 |
-
git add .
|
71 |
-
```
|
72 |
-
|
73 |
-
5. Use the command:
|
74 |
-
|
75 |
-
```bash
|
76 |
-
git commit -m "Deploying Pythonic RAG"
|
77 |
-
```
|
78 |
-
|
79 |
-
6. Use the command:
|
80 |
-
|
81 |
-
```bash
|
82 |
-
git push hf main
|
83 |
-
```
|
84 |
-
|
85 |
-
7. The Space should automatically build as soon as the push is completed!
|
86 |
-
|
87 |
-
> NOTE: The build will fail before you complete the following steps!
|
88 |
-
|
89 |
-
</details>
|
90 |
-
|
91 |
-
<details>
|
92 |
-
<summary>Adding OpenAI Secrets to the Space</summary>
|
93 |
-
|
94 |
-
1. Navigate to your Space settings.
|
95 |
-
|
96 |
-
![image](https://i.imgur.com/zh0a2By.png)
|
97 |
-
|
98 |
-
2. Navigate to `Variables and secrets` on the Settings page and click `New secret`:
|
99 |
-
|
100 |
-
![image](https://i.imgur.com/g2KlZdz.png)
|
101 |
-
|
102 |
-
3. In the `Name` field - input `OPENAI_API_KEY` in the `Value (private)` field, put your OpenAI API Key.
|
103 |
-
|
104 |
-
![image](https://i.imgur.com/eFcZ8U3.png)
|
105 |
-
|
106 |
-
4. The Space will begin rebuilding!
|
107 |
-
|
108 |
-
</details>
|
109 |
-
|
110 |
-
## 🎉
|
111 |
-
|
112 |
-
You just deployed Pythonic RAG!
|
113 |
-
|
114 |
-
Try uploading a text file and asking some questions!
|
115 |
-
|
116 |
-
## 🚧CHALLENGE MODE 🚧
|
117 |
-
|
118 |
-
For more of a challenge, please reference [Building a Chainlit App](./BuildingAChainlitApp.md)!
|
|
|
1 |
---
|
2 |
+
title: AI Mentor
|
3 |
emoji: 📉
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
|
|
8 |
license: apache-2.0
|
9 |
---
|
10 |
|
11 |
+
# AI Mentor - An Employees Guide to AI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|