| from nzfc_gram_runtime import NZFCGramLongMemoryChat | |
| bot = NZFCGramLongMemoryChat( | |
| repo_dir=".", | |
| model_id="google/gemma-4-E2B-it", | |
| ) | |
| out1 = bot.chat( | |
| "\ub0b4\uac00 \uc9c0\uae08\ubd80\ud130 Hugging Face \ub77c\uc774\uc120\uc2a4\ub294 CC BY-NC 4.0\uc744 \uc120\ud638\ud55c\ub2e4\uace0 \uae30\uc5b5\ud574\uc918.", | |
| user_id="user001", | |
| project_id="demo", | |
| session_id="s1", | |
| save_scope="project", | |
| ) | |
| print(out1["answer"]) | |
| out2 = bot.chat( | |
| "\ub0b4\uac00 \uc120\ud638\ud55c\ub2e4\uace0 \ub9d0\ud55c Hugging Face \ub77c\uc774\uc120\uc2a4\uac00 \ubb50\uc600\uc9c0?", | |
| user_id="user001", | |
| project_id="demo", | |
| session_id="s2", | |
| save_scope="project", | |
| ) | |
| print(out2["answer"]) | |
| print(out2["memory_boundary"]) | |