LOUIS SANNA commited on
Commit
a193066
1 Parent(s): 3657397

feat(README)

Browse files
Files changed (1) hide show
  1. README.md +41 -8
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: AnythingQ&A
3
- emoji: 🌍
4
  colorFrom: blue
5
  colorTo: red
6
  sdk: gradio
@@ -9,14 +9,47 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- # Anything Q&A
13
 
14
- A clone of the amazing https://huggingface.co/spaces/Ekimetrics/climate-question-answering.
15
 
16
- We abstracted the code so it's easy to build another tool based on another domain.
17
 
18
- ## Build vector index
 
19
 
20
- ```bash
21
- python -m anyqa.build_index
22
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: AnythingQ&A
3
+ emoji:
4
  colorFrom: blue
5
  colorTo: red
6
  sdk: gradio
 
9
  pinned: false
10
  ---
11
 
12
+ ## Anything Q&A
13
 
14
+ This tool serves as a customizable version of the amazing ClimateQA by Ekimetrics. It allows you to rapidly create a new question-answering tool using any set of documents as a data source.
15
 
16
+ ## Quick Start
17
 
18
+ 0. **Fork the Repository**
19
+ Fork the original HuggingFace space: [Anything Q&A on HuggingFace](https://huggingface.co/spaces/LouisSanna/anything-question-answering).
20
 
21
+ 1. **Install Dependencies**
22
+
23
+ ```shell
24
+ pip install -r requirements.txt
25
+ ```
26
+
27
+ 2. **Add your data.**
28
+ Place the PDFs to be used as sources in the data folder. The subfolder and file names will be used as default identifiers by the tool.
29
+
30
+ ```txt
31
+ data/
32
+ type_1/
33
+ source_1.pdf
34
+ source_2.pdf
35
+ type_2/
36
+ source_3.pdf
37
+ ```
38
+
39
+ 3. **Build the index of semantic vectors**
40
+
41
+ ```bash
42
+ python -m anyqa.build_index
43
+ ```
44
+
45
+ 4. **Launch the app**
46
+
47
+ ```shell
48
+ python app.py
49
+ ```
50
+
51
+ And you're done!
52
+
53
+ ## Deployment
54
+
55
+ Deploying via Hugging Face Spaces is the most straightforward approach. Simply push your code to a HuggingFace Gradio space, and it will function as is.