Spaces:
Runtime error
Runtime error
update readme
Browse files
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
|
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
|
28 |
-
* `READTHEDOCS_URL
|
29 |
-
* `READTHEDOCS_VERSION
|
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
|
133 |
|
134 |
-
|
|
|
|
|
|
|
|
|
|
|
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
|