Commit
·
8108862
1
Parent(s):
3a24942
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: other
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
thumbnail: https://h2o.ai/etc.clientlibs/h2o/clientlibs/clientlib-site/resources/images/favicon.ico
|
| 9 |
+
tags:
|
| 10 |
+
- gpt
|
| 11 |
+
- llm
|
| 12 |
+
- large language model
|
| 13 |
+
---
|
| 14 |
+
# h2oGPT DataBase Data Card
|
| 15 |
+
## Summary
|
| 16 |
+
|
| 17 |
+
H2O.ai's Chroma database files for h2oGPT for LangChain integration. Sources are generated and processed by [get_db()](https://github.com/h2oai/h2ogpt/blob/40780bc6f4197e7f54753d40adafabe7c6e582f0/gpt_langchain.py#L491-L492)
|
| 18 |
+
|
| 19 |
+
| File |Purpose | Source | License
|
| 20 |
+
|-------------|----------------|-------------------|----------
|
| 21 |
+
|[db_dir_DriverlessAI_docs.zip](db_dir_DriverlessAI_docs.zip) | DriverlessAI Documentation Q/A | [Source](https://github.com/h2oai/h2ogpt/blob/40780bc6f4197e7f54753d40adafabe7c6e582f0/gpt_langchain.py#L469-L473) | CC-BY-NC
|
| 22 |
+
|[db_dir_UserData.zip](db_dir_UserData.zip) | Example PDFs and Text Files Q/A | [Source](https://github.com/h2oai/h2ogpt/blob/40780bc6f4197e7f54753d40adafabe7c6e582f0/gpt_langchain.py#L474-L478) | ArXiv
|
| 23 |
+
|[db_dir_github_h2oGPT.zip](db_dir_github_h2oGPT.zip) | Example PDFs and Text Files Q/A | [Source](https://github.com/h2oai/h2ogpt/blob/40780bc6f4197e7f54753d40adafabe7c6e582f0/gpt_langchain.py#L463-L468) | Apache V2
|
| 24 |
+
|[db_dir_wiki.zip](db_dir_wiki.zip) | Example subset of Wikipedia (from API) Q/A | [Source](https://github.com/h2oai/h2ogpt/blob/40780bc6f4197e7f54753d40adafabe7c6e582f0/gpt_langchain.py#L463-L468) | Wikipedia CC-BY-SA
|
| 25 |
+
|[db_dir_wiki_full.zip](db_dir_wiki.zip) | All Wikipedia as of 04/01/2023 for articles with >5k views for Q/A | [Source](https://github.com/h2oai/h2ogpt/blob/40780bc6f4197e7f54753d40adafabe7c6e582f0/gpt_langchain.py#L448-L457) | Wikipedia CC-BY-SA
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
UserData can be generated for any collection of private offline docs by running [make_db.py](https://github.com/h2oai/h2ogpt/blob/8bde589f1c532c6fb6badb313b073761ddc31f73/make_db.py#L15-L22). For quickly using a private document collection for Q/A, place documents (PDFs, text, etc.) into a folder called `user_path` and run
|
| 29 |
+
```bash
|
| 30 |
+
python make_db.py
|
| 31 |
+
```
|
| 32 |
+
To use the chatbot with such docs, run:
|
| 33 |
+
```bash
|
| 34 |
+
python generate.py --base_model=h2oai/h2ogpt-oig-oasst1-512-6.9b --langchain_mode=UserData
|
| 35 |
+
```
|
| 36 |
+
using [h2oGPT](https://github.com/h2oai/h2ogpt) .
|
| 37 |
+
|
| 38 |
+
See also LangChain example use with [test_langchain_simple.py](https://github.com/h2oai/h2ogpt/blob/4637531b928dfa458d708615ebd2cb6454d23064/tests/test_langchain_simple.py)
|
| 39 |
+
|