| Metadata-Version: 2.4 |
| Name: fic-agent |
| Version: 0.0.1 |
| Summary: No-finetune fiction character agent |
| Requires-Python: >=3.9 |
| Description-Content-Type: text/markdown |
| Requires-Dist: openai>=1.0.0 |
| Requires-Dist: pydantic>=2.0.0 |
| Requires-Dist: numpy>=1.24.0 |
| Requires-Dist: tiktoken>=0.5.0 |
| Requires-Dist: pandas>=2.0.0 |
| Requires-Dist: faiss-cpu>=1.7.4 |
|
|
| # fic-agent |
|
|
| A no-finetune, retrieval-augmented character chatbot for fiction. |
|
|
| ## Goals |
| - Factual consistency with the source text |
| - Character-true language style and emotional profile |
| - Worldview consistency (settings, rules, relationships) |
|
|
| ## Repository layout |
| - `configs/` Runtime configs (API keys, model names, flags) |
| - `data/raw/` Raw novels and metadata |
| - `data/processed/` Chunked text, extracted dialogues, persona notes |
| - `data/indexes/` Vector indexes and graph artifacts |
| - `data/eval/` Evaluation inputs and references |
| - `outputs/` Run outputs and logs |
| - `scripts/` CLI helpers and pipelines |
| - `src/fic_agent/` Core library |
|
|
| ## Core pipeline (high level) |
| 1. Ingest raw text |
| 2. Extract character dialogue + context |
| 3. Build persona profile (style, affect, worldview) |
| 4. Build fact and worldview indexes |
| 5. Retrieve relevant evidence + persona |
| 6. Generate response with persona-conditioned prompt |
| 7. Evaluate (facts, style, worldview) |
|
|
| ## Next steps |
| - Implement ingestion and dialogue extraction |
| - Define persona schema and prompt templates |
| - Add evaluation scripts and judges |
|
|