Spaces:
Sleeping
Sleeping
| romance-chatbot/ | |
| │ | |
| ├── app.py # Streamlitの画面・メイン処理 | |
| │ | |
| ├── core/ # botの中核ロジック | |
| │ ├── persona.py # system prompt / persona prompt 作成 | |
| │ ├── relationship.py # relationship更新・分析 | |
| │ ├── memory.py # JSON保存・読み込み | |
| │ ├── retrieval.py # embedding検索 | |
| │ ├── llm.py # OpenAI/Gemini API呼び出し | |
| │ ├── templates.py # APIを使わない定型返答 | |
| │ └── config.py # モデル名・設定値 | |
| │ | |
| ├── data/ # 保存データ | |
| │ ├── user_memory.json # ユーザーの状態保存 | |
| │ ├── episodic_memory.json # 過去の重要メモリ | |
| │ └── vector_store/ # embedding保存 | |
| │ | |
| ├── prompts/ # 長めの固定prompt | |
| │ ├── base_system.txt | |
| │ ├── feedback_system.txt | |
| │ └── safety_rules.txt | |
| │ | |
| ├── utils/ # 補助関数 | |
| │ ├── text.py # 文字数制限・整形 | |
| │ └── logger.py # ログ保存 | |
| │ | |
| ├── tests/ # テスト | |
| │ ├── test_relationship.py | |
| │ ├── test_memory.py | |
| │ └── test_prompt.py | |
| │ | |
| ├── .env # APIキー | |
| ├── requirements.txt | |
| └── README.md |