Update dataset card: 18 subs, security notes, intended/prohibited use
Browse files
README.md
CHANGED
|
@@ -21,9 +21,11 @@ size_categories:
|
|
| 21 |
|
| 22 |
# sibo-research-db
|
| 23 |
|
| 24 |
-
A searchable SQLite database of **7,
|
| 25 |
|
| 26 |
-
Designed to be queried by AI tools (Claude, ChatGPT/Codex, Cursor, Cline,
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## What's in it
|
| 29 |
|
|
@@ -46,6 +48,7 @@ Designed to be queried by AI tools (Claude, ChatGPT/Codex, Cursor, Cline, etc.)
|
|
| 46 |
| r/Longcovidgutdysbiosis | 36,437 | LC + gut overlap |
|
| 47 |
| r/FunctionalMedicine | 28,322 | Functional / integrative medicine |
|
| 48 |
| r/LeakyGutSyndrome | 11,890 | Intestinal permeability |
|
|
|
|
| 49 |
|
| 50 |
## Schema
|
| 51 |
|
|
@@ -62,7 +65,7 @@ comments (
|
|
| 62 |
)
|
| 63 |
```
|
| 64 |
|
| 65 |
-
Full-text search via FTS5 virtual tables: `posts_fts
|
| 66 |
|
| 67 |
## Download
|
| 68 |
|
|
@@ -70,21 +73,35 @@ Full-text search via FTS5 virtual tables: `posts_fts` (title + selftext) and `co
|
|
| 70 |
# With the Hugging Face CLI
|
| 71 |
hf download toczix/sibo-research-db reddit.db --repo-type dataset --local-dir .
|
| 72 |
|
| 73 |
-
# Or
|
| 74 |
curl -L -o reddit.db https://huggingface.co/datasets/toczix/sibo-research-db/resolve/main/reddit.db
|
| 75 |
```
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
## Use with AI tools
|
| 80 |
|
| 81 |
-
See https://github.com/toczix/sibo-research-db for the MCP server and setup instructions for Claude Desktop, Claude Code, Codex CLI, Cursor, and
|
| 82 |
|
| 83 |
## Use with plain SQL
|
| 84 |
|
| 85 |
```python
|
| 86 |
import sqlite3
|
| 87 |
-
conn = sqlite3.connect("reddit.db")
|
| 88 |
cur = conn.execute("""
|
| 89 |
SELECT c.subreddit, c.body, c.score
|
| 90 |
FROM comments_fts fts
|
|
@@ -97,12 +114,28 @@ for row in cur:
|
|
| 97 |
print(row)
|
| 98 |
```
|
| 99 |
|
| 100 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
-
|
| 103 |
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
## Disclaimer
|
| 107 |
|
| 108 |
-
This is patient-reported experience data.
|
|
|
|
| 21 |
|
| 22 |
# sibo-research-db
|
| 23 |
|
| 24 |
+
A searchable SQLite database of **7,205,554 comments and 695,050 posts** from 18 health-focused subreddits, scraped from the public [arctic-shift](https://arctic-shift.photon-reddit.com) Reddit archive.
|
| 25 |
|
| 26 |
+
Designed to be queried by AI tools (Claude, ChatGPT/Codex, Cursor, Cline, VS Code Copilot) via the [sibo-research-db MCP server](https://github.com/toczix/sibo-research-db), but works as a standalone SQLite + FTS5 database for any kind of analysis.
|
| 27 |
+
|
| 28 |
+
> **Important:** This is patient-reported experience data. It is **not** medical advice and has **not** been clinically validated. People misremember, exaggerate, and miss confounders. Use this to find patterns and leads worth bringing to a doctor or clinical literature — not as a substitute for either.
|
| 29 |
|
| 30 |
## What's in it
|
| 31 |
|
|
|
|
| 48 |
| r/Longcovidgutdysbiosis | 36,437 | LC + gut overlap |
|
| 49 |
| r/FunctionalMedicine | 28,322 | Functional / integrative medicine |
|
| 50 |
| r/LeakyGutSyndrome | 11,890 | Intestinal permeability |
|
| 51 |
+
| r/SiboSuccessStories | 7,301 | Recovery stories — small but high-signal |
|
| 52 |
|
| 53 |
## Schema
|
| 54 |
|
|
|
|
| 65 |
)
|
| 66 |
```
|
| 67 |
|
| 68 |
+
Full-text search via FTS5 virtual tables: `posts_fts(title, selftext)` and `comments_fts(body)`.
|
| 69 |
|
| 70 |
## Download
|
| 71 |
|
|
|
|
| 73 |
# With the Hugging Face CLI
|
| 74 |
hf download toczix/sibo-research-db reddit.db --repo-type dataset --local-dir .
|
| 75 |
|
| 76 |
+
# Or direct
|
| 77 |
curl -L -o reddit.db https://huggingface.co/datasets/toczix/sibo-research-db/resolve/main/reddit.db
|
| 78 |
```
|
| 79 |
|
| 80 |
+
Files:
|
| 81 |
+
|
| 82 |
+
| File | Size | Notes |
|
| 83 |
+
|---|---:|---|
|
| 84 |
+
| `reddit.db` | ~5.4 GB | The full database, ready to query |
|
| 85 |
+
| `reddit.db.zst` | ~2-3 GB | Same DB, zstd-compressed for faster download. Decompress with `zstd -d reddit.db.zst` |
|
| 86 |
+
| `checksums.txt` | small | SHA256 of each release artifact |
|
| 87 |
+
|
| 88 |
+
## Verify after download
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
sqlite3 reddit.db "PRAGMA integrity_check;" # should print "ok"
|
| 92 |
+
sqlite3 reddit.db "SELECT COUNT(*) FROM posts; SELECT COUNT(*) FROM comments;"
|
| 93 |
+
shasum -a 256 reddit.db # compare against checksums.txt
|
| 94 |
+
```
|
| 95 |
|
| 96 |
## Use with AI tools
|
| 97 |
|
| 98 |
+
See [github.com/toczix/sibo-research-db](https://github.com/toczix/sibo-research-db) for the MCP server and setup instructions for Claude Desktop, Claude Code, Codex CLI, Cursor, Cline, and VS Code Copilot Agent.
|
| 99 |
|
| 100 |
## Use with plain SQL
|
| 101 |
|
| 102 |
```python
|
| 103 |
import sqlite3
|
| 104 |
+
conn = sqlite3.connect("file:reddit.db?mode=ro", uri=True)
|
| 105 |
cur = conn.execute("""
|
| 106 |
SELECT c.subreddit, c.body, c.score
|
| 107 |
FROM comments_fts fts
|
|
|
|
| 114 |
print(row)
|
| 115 |
```
|
| 116 |
|
| 117 |
+
## Licensing
|
| 118 |
+
|
| 119 |
+
**Code** in the [GitHub repo](https://github.com/toczix/sibo-research-db) is MIT-licensed.
|
| 120 |
+
|
| 121 |
+
**Reddit content** in the database is owned by its original authors and Reddit. It's being redistributed here from the public arctic-shift archive for research and educational use, similar to how Pushshift was used by researchers for years. This is **not** a claim of public-domain status.
|
| 122 |
+
|
| 123 |
+
If you are a Reddit user whose content is included and you want it removed from future rebuilds, open an issue on the GitHub repo with your username and the affected content will be filtered out of the next snapshot.
|
| 124 |
+
|
| 125 |
+
## Intended use
|
| 126 |
+
|
| 127 |
+
- Patient/researcher exploratory analysis of self-reported chronic-illness experiences
|
| 128 |
+
- Pattern-finding across thousands of accounts that single anecdotes hide
|
| 129 |
+
- Generating hypotheses and leads to bring to clinicians or to peer-reviewed literature
|
| 130 |
+
- Sanity-checking marketing claims and protocol recommendations against real reported outcomes
|
| 131 |
|
| 132 |
+
## Prohibited use
|
| 133 |
|
| 134 |
+
- Contacting, messaging, or harassing Reddit users found in the data
|
| 135 |
+
- Building tools that imitate, impersonate, or republish named user content commercially
|
| 136 |
+
- Training models intended to mimic specific users
|
| 137 |
+
- Diagnosing, prescribing, or recommending medical treatment based on this data alone
|
| 138 |
|
| 139 |
## Disclaimer
|
| 140 |
|
| 141 |
+
This is patient-reported experience data. It has not been clinically validated. People misremember, exaggerate, and miss confounders. The subs are heavily selection-biased — people who recover usually stop posting. Use this dataset to find patterns and leads worth bringing to a doctor or to clinical literature, not as a substitute for either.
|