Seed RAG corpus with EmpatheticDialogues + Social Chemistry 101 datasets#28
Draft
fullharbor with Copilot wants to merge 3 commits into
Draft
Seed RAG corpus with EmpatheticDialogues + Social Chemistry 101 datasets#28fullharbor with Copilot wants to merge 3 commits into
fullharbor with Copilot wants to merge 3 commits into
Conversation
…kASailorAgent - Add scripts/ingest_empathetic_dialogues.py (EmpatheticDialogues → JSONL) - Add scripts/ingest_social_chemistry.py (Social Chemistry 101 → JSONL) - Add --sources flag to AskASailorAgent CLI for optional external corpora - Add data/external/ to .gitignore - Add 22 tests for chunk format, PII filtering, and chunk counts Co-authored-by: fullharbor <237832340+fullharbor@users.noreply.github.com>
Co-authored-by: fullharbor <237832340+fullharbor@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Seed RAG corpus with EmpatheticDialogues and Social Chemistry datasets
Seed RAG corpus with EmpatheticDialogues + Social Chemistry 101 datasets
Mar 11, 2026
Member
|
@copilot curious i have several of these "download from cloud" chat sessions. Are they incorperated, or not? |
Contributor
Author
The download is not built into the scripts — it's a separate manual step. Each script's docstring documents the If you'd like, I can add a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two open datasets (EmpatheticDialogues — 25K emotional conversations; Social Chemistry 101 — 292K social norm rules-of-thumb) provide empathetic and norm-aware grounding for the Ask a Sailor RAG agent without fine-tuning.
Ingestion scripts
scripts/ingest_empathetic_dialogues.py— Parses CSV splits, groups utterances byconv_id, labels Speaker/Listener, replaces_comma_tokens, filters PII, emits JSONL chunks keyed by emotion.scripts/ingest_social_chemistry.py— Parses TSV, converts each rule-of-thumb into a chunk with situation/action/judgment, filters PII, emits JSONL.Both output the same chunk schema used by the existing corpus (
chunk_id,doc_id,source_type,text,metadata).Agent
--sourcesflagAskASailorAgentaccepts an optionalsourceslist. The CLI exposes--sourcesas comma-separated external corpus names:python agent.py --club lyc --sources empathetic_dialogues,social_chemistry --question "..."External corpora are loaded from
corpus_dir/{source}/corpus.jsonlalongside club corpora. Missing sources warn, don't crash.Other
data/external/added to.gitignoreOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.