From de7f782cd25ac718405059db978d6b5f66968fcc Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 14 Jul 2026 21:32:39 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20feat:=20ship=20a=20real=20exampl?= =?UTF-8?q?e=20knowledge=20doc=20(RAG=20+=20e2e)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shipped knowledge base doc was a placeholder whose text led with "This is a sample document ... replace it with your own files." That boilerplate dominated RAG retrieval — a "which day is trash pickup" query surfaced the "replace me" intro instead of the actual schedule, and the e2e KNOWLEDGE test never got its answer. Replace it with real, clean household reference content (trash/recycling schedule, Wi-Fi, contacts, thermostat, mail) and no meta boilerplate, so retrieval returns the facts. Track this one example under data/knowledge/ via a .gitignore exception (user-dropped docs there stay ignored), so a fresh clone has a working, indexable knowledge base out of the box. Verified: reindexed live (1 doc, 2 chunks), "trash pickup" retrieval returns Tuesday, and test_knowledge_over_call passes end to end. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitignore | 6 +++++ data/knowledge/example-house-notes.md | 32 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 data/knowledge/example-house-notes.md diff --git a/.gitignore b/.gitignore index 84076fb..5b1ce7a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,10 @@ data/workflows.json data/virtual_numbers.json data/mcp_servers.json data/personas.json + +# Ship one example knowledge doc (indexed by RAG, exercised by the e2e +# KNOWLEDGE test); keep any other user-dropped documents ignored. +!data/knowledge/ +data/knowledge/* +!data/knowledge/example-house-notes.md sip-agent/tests/e2e/reports/ diff --git a/data/knowledge/example-house-notes.md b/data/knowledge/example-house-notes.md new file mode 100644 index 0000000..3f48045 --- /dev/null +++ b/data/knowledge/example-house-notes.md @@ -0,0 +1,32 @@ +# House Notes + +Reference notes for the household. The assistant answers questions from these +facts via the KNOWLEDGE tool. + +## Trash and recycling + +Trash pickup is Tuesday morning. Put the bins out at the curb on Monday night. +Recycling is collected every other Thursday. +Yard waste goes out on the first Friday of each month. + +## Wi-Fi + +The guest Wi-Fi network is named "DisarrayGuest". +The guest Wi-Fi password is "chaos-theory-42". + +## Contacts + +The plumber is Mike; reach him at extension 2001. +The building manager is at extension 9000 during business hours. +For after-hours building emergencies, call extension 9111. + +## Thermostat + +The thermostat is in the upstairs hallway. +The comfortable range is 68 to 72 degrees Fahrenheit. +Heat is scheduled lower overnight and warms back up by 6 a.m. + +## Mail and packages + +Mail is delivered around 2 p.m. on weekdays. +Packages are left in the front lobby; the parcel locker code is 4-7-2-9.