jerpint commited on
Commit
4ac3999
β€’
1 Parent(s): 243f480

update readme

Browse files
Files changed (2) hide show
  1. README.md +13 -7
  2. app.py +7 -2
README.md CHANGED
@@ -14,7 +14,7 @@ license: mit
14
 
15
  ## Introduction πŸ“š
16
 
17
- RAGTheDocs is an open-source library that allows you to deploy retrieval augmented generation (RAG) on any readthedocs documentation with a one-click deploy on huggingface spaces!
18
 
19
  ## Usage πŸ‘‰
20
 
@@ -24,12 +24,9 @@ RAGTheDocs is an open-source library that allows you to deploy retrieval augment
24
  ![image](https://github.com/jerpint/buster/assets/18450628/0c89038c-c3af-4c1f-9d3b-9b4d83db4910)
25
 
26
  3) Set your environment variables:
27
- * `OPENAI_API_KEY`: Needed for the app to work, e.g. `sk-...`
28
- * `READTHEDOCS_URL`: The url of the website you are interested in scraping
29
- * `READTHEDOCS_VERSION`: This is important **only** if there exist multiple versions of the docs (e.g. "en/v0.2.7" or "en/latest"). If left empty, it will scrape all available versions (there can be many for open-source projects!).
30
-
31
- **WARNING** This library is experimental and automatically calls OpenAI APIs for you. Use at your own risk! ⚠️
32
-
33
 
34
  ## Features πŸš€
35
 
@@ -38,3 +35,12 @@ RAGTheDocs is an open-source library that allows you to deploy retrieval augment
38
  - **RAG Interface:** It comes built-in with a gradio UI for users to interact with [Buster πŸ€–](https://github.com/jerpint/buste) our RAG agent.
39
 
40
  - **Customization Options:** Tailor RAGtheDocs prompts and settings with customizable settings and options.
 
 
 
 
 
 
 
 
 
 
14
 
15
  ## Introduction πŸ“š
16
 
17
+ RAGTheDocs is an open-source library that allows you to **one-click deploy** retrieval augmented generation (RAG) on any readthedocs documentation on [huggingface πŸ€— spaces](https://huggingface.co/spaces/jerpint/RAGTheDocs)!
18
 
19
  ## Usage πŸ‘‰
20
 
 
24
  ![image](https://github.com/jerpint/buster/assets/18450628/0c89038c-c3af-4c1f-9d3b-9b4d83db4910)
25
 
26
  3) Set your environment variables:
27
+ * `OPENAI_API_KEY` (required): Needed for the app to work, e.g. `sk-...`
28
+ * `READTHEDOCS_URL` (required): The url of the website you are interested in scraping
29
+ * `READTHEDOCS_VERSION` (optional): This is important **only** if there exist multiple versions of the docs (e.g. "en/v0.2.7" or "en/latest"). If left empty, it will scrape all available versions (there can be many for open-source projects!).
 
 
 
30
 
31
  ## Features πŸš€
32
 
 
35
  - **RAG Interface:** It comes built-in with a gradio UI for users to interact with [Buster πŸ€–](https://github.com/jerpint/buste) our RAG agent.
36
 
37
  - **Customization Options:** Tailor RAGtheDocs prompts and settings with customizable settings and options.
38
+
39
+ ## Disclaimers ❗
40
+
41
+ * This is a quickly hacked together side-project. This code should be considered experimental at best.
42
+
43
+ * This library will automatically call OpenAI APIs for you (for embeddings and chatGPT).
44
+
45
+ * Use at your own risk! ⚠️
46
+
app.py CHANGED
@@ -129,9 +129,14 @@ with demo:
129
  """
130
  ## About
131
  [RAGTheDocs](https://github.com/jerpint/RAGTheDocs) allows you to ask questions about any documentation hosted on readthedocs.
132
- Simply clone this space and point it to the right URL!
133
 
134
- Try it out by asking a question below about [orion](https://orion.readthedocs.io/), an open-source hyperparameter optimization library.
 
 
 
 
 
135
 
136
  ## How it works
137
  This app uses [Buster πŸ€–](https://github.com/jerpint/buster) and ChatGPT to search the docs for relevant info and
 
129
  """
130
  ## About
131
  [RAGTheDocs](https://github.com/jerpint/RAGTheDocs) allows you to ask questions about any documentation hosted on readthedocs.
132
+ Simply clone this space and set the environment variables:
133
 
134
+ * `OPENAI_API_KEY` (required): Needed for the app to work, e.g. `sk-...`
135
+ * `READTHEDOCS_URL` (required): The url of the website you are interested in scraping (must be built with
136
+ sphinx/readthedocs)
137
+ * `READTHEDOCS_VERSION` (optional): This is important **only** if there exist multiple versions of the docs (e.g. "en/v0.2.7" or "en/latest"). If left empty, it will scrape all available versions (there can be many for open-source projects!).
138
+
139
+ Try it out by asking a question below πŸ‘‡ about [orion](https://orion.readthedocs.io/), an open-source hyperparameter optimization library.
140
 
141
  ## How it works
142
  This app uses [Buster πŸ€–](https://github.com/jerpint/buster) and ChatGPT to search the docs for relevant info and