36 lines
2.1 KiB
Plaintext
36 lines
2.1 KiB
Plaintext
flowchart TB
|
|
reader["TrainingDataReader<br/>+ ValidateAsync()<br/>+ ReadCategoryValuesAsync()<br/>+ ReadPatternsAsync()"]
|
|
definitions["Training definitions<br/>TrainingCategories<br/>TrainingSubjects<br/>TrainingCategoryDefinition<br/>TrainingCategoryValue"]
|
|
channel["Bounded Channel<br/>Parallel workers write completed plan items;<br/>ordered writer consumes"]
|
|
service["TrainingGenerationService<br/>+ GenerateAsync()<br/>- GenerateCategoryAsync()<br/>- CreatePlan()<br/>- GeneratePassAsync()<br/>- PersistOrderedAsync()<br/>- FindResumableRunAsync()<br/>- ValidateGeneratedValue()"]
|
|
lmclient["LmStudioClient<br/>+ CompleteAsync()<br/>- ResolveFragmentTokens()<br/>- ResolveArticles()<br/>- SendCompletionAsync()"]
|
|
config["Configuration<br/>GenerationOptions<br/>LmStudioOptions<br/>SentenceTenses"]
|
|
context["RlhfGeneratorDbContext<br/>DbSet Category<br/>DbSet TrainingItem<br/>DbSet GenerationRun<br/>DbSet Keyword<br/>DbSet KeywordVariant"]
|
|
run["GenerationRun<br/>Status, seed, fingerprints,<br/>checkpoint and counts,<br/>failure/cancellation data"]
|
|
item["TrainingItem<br/>RecordKey, PlanOrdinal,<br/>Category, Keyword,<br/>IsPositive, Value"]
|
|
|
|
service -->|Validates and reads inputs| reader
|
|
reader -->|Returns| definitions
|
|
service -->|Plans with| definitions
|
|
service -->|Coordinates producers and consumer| channel
|
|
service -->|Calls concurrently| lmclient
|
|
config -->|Binds| service
|
|
config -->|Binds| lmclient
|
|
service -->|Queries and transacts| context
|
|
context -->|Tracks| run
|
|
context -->|Tracks| item
|
|
run -->|Owns ordered items| item
|
|
|
|
classDef core fill:#dae8fc,stroke:#6c8ebf,color:#000;
|
|
classDef input fill:#d5e8d4,stroke:#82b366,color:#000;
|
|
classDef integration fill:#e1d5e7,stroke:#9673a6,color:#000;
|
|
classDef persistence fill:#f8cecc,stroke:#b85450,color:#000;
|
|
classDef config fill:#fff2cc,stroke:#d6b656,color:#000;
|
|
classDef coordination fill:#ffe6cc,stroke:#d79b00,color:#000;
|
|
class service core;
|
|
class reader,definitions input;
|
|
class lmclient integration;
|
|
class context,run,item persistence;
|
|
class config config;
|
|
class channel coordination;
|