{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "xzf-thu-voicemem--store-and-search-text-facts",
 "repo": "xzf-thu/VoiceMem",
 "repo_url": "https://github.com/xzf-thu/VoiceMem",
 "repo_slug": "xzf-thu-voicemem",
 "title": "Store and search text facts with Voice Mem",
 "page_title": "How to store and search text facts with Voice Mem with Voice Mem",
 "summary": "Save plain text facts in a fact-only mode and retrieve them with a search query.",
 "who": "A developer who wants a simple memory store for user facts, without audio processing or emotion tracking.",
 "problem": "Building a per-user fact store with retrieval from scratch takes time, and the team wants a tested memory engine to start from.",
 "outcome": "A short Python script saves a fact such as a dietary restriction and returns it when asked a matching question.",
 "steps": [
  "Clone the repo with `git clone https://github.com/xzf-thu/VoiceMem.git` and install with `pip install voicemem`.",
  "Download the default models with `hf download zhifeixie/VoiceMem_Default_Models_Env --local-dir ./models` after running `pip install -U huggingface_hub`.",
  "In a Python file, create Voice Mem(mode=\"leftbrain_only\", openai_key=...) and call vm.ingest with a text fact.",
  "Call vm.search with a question about that fact and print the result.result_leftbrain field."
 ],
 "agent_prompt": "In the VoiceMem repo at <repo path>, write a script that creates VoiceMem with mode leftbrain_only, ingests the text <fact text>, and searches with the question <question>. Expected output is the stored fact in result_leftbrain. Verify the search returns the fact after ingest.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README describes this mode as storing factual text without emotion, so it does not replace the full dual-brain setup.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 or newer",
  "An OpenAI API key, used for fact extraction when memories are written",
  "Git and access to GitHub and Hugging Face to clone the repo and download the default models",
  "Audio input (a WAV file or a microphone) if you want to ingest speech"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/xzf-thu-voicemem/store-and-search-text-facts/",
 "md": "https://dedupedai.com/use-cases/xzf-thu-voicemem/store-and-search-text-facts/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/xzf-thu-voicemem--store-and-search-text-facts.json",
 "api_version": "v1"
}
