llm-wizard commited on
Commit
b663f5c
β€’
1 Parent(s): 51181a5

Deploying Pythonic RAG

Browse files
Files changed (1) hide show
  1. README.md +44 -11
README.md CHANGED
@@ -1,21 +1,13 @@
1
  ---
2
- <<<<<<< HEAD
3
  title: DeployPythonicRAG
4
  emoji: πŸ“‰
5
  colorFrom: blue
6
  colorTo: purple
7
- =======
8
- title: CoolNewSpace
9
- emoji: πŸ“Š
10
- colorFrom: red
11
- colorTo: blue
12
- >>>>>>> e1768996a3679818b5f3502b84596ca67b3d0a2e
13
  sdk: docker
14
  pinned: false
15
  license: apache-2.0
16
  ---
17
 
18
- <<<<<<< HEAD
19
  # Deploying Pythonic Chat With Your Text File Application
20
 
21
  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).
@@ -23,6 +15,47 @@ In today's breakout rooms, we will be following the processed that you saw durin
23
  Today, we will repeat the same process - but powered by our Pythonic RAG implementation we created last week.
24
 
25
  You'll notice a few differences in the `app.py` logic - as well as a few changes to the `aimakerspace` package to get things working smoothly with Chainlit.
26
- =======
27
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
28
- >>>>>>> e1768996a3679818b5f3502b84596ca67b3d0a2e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  title: DeployPythonicRAG
3
  emoji: πŸ“‰
4
  colorFrom: blue
5
  colorTo: purple
 
 
 
 
 
 
6
  sdk: docker
7
  pinned: false
8
  license: apache-2.0
9
  ---
10
 
 
11
  # Deploying Pythonic Chat With Your Text File Application
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).
 
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 `aimakerspace` package to get things working smoothly with Chainlit.
18
+
19
+ ## Deploying the Application to Hugging Face Space
20
+
21
+ Due to the way the repository is created - it should be straightforward to deploy this to a Hugging Face Space!
22
+
23
+ <details>
24
+ <summary>Creating a Hugging Face Space</summary>
25
+
26
+ 1. Navigate to the `Spaces` tab.
27
+
28
+ ![image](https://i.imgur.com/aSMlX2T.png)
29
+
30
+ 2. Click on `Create new Space`
31
+
32
+ ![image](https://i.imgur.com/YaSSy5p.png)
33
+
34
+ 3. Create the Space by providing values in the form. Make sure you've selected "Docker" as your Space SDK.
35
+
36
+ ![image](https://i.imgur.com/6h9CgH6.png)
37
+
38
+ </details>
39
+
40
+ <details>
41
+ <summary>Adding this Repository to the Newly Created Space</summary>
42
+
43
+ 1. Collect the SSH address from the newly created Space.
44
+
45
+ ![image](https://i.imgur.com/Oag0m8E.png)
46
+
47
+ > NOTE: The address is the component that starts with `[email protected]:spaces/`.
48
+
49
+ 2. Use the command:
50
+
51
+ ```bash
52
+ git remote add hf HF_SPACE_SSH_ADDRESS_HERE
53
+ ```
54
+
55
+ 3. Use the command:
56
+
57
+ ```bash
58
+ git pull hf main --no-rebase --allow-unrelated-histories -X ours
59
+ ```
60
+
61
+ 4.