Extract is bounded to the ranking: pull → embed → score → extract → score → summarise
The free stages run first and their score bounds the two model stages. Extract reads only the best extract.per_agent roles of each agent at extract.min_score or more, then score runs again so the gates read what it filled; summarise gets a min_score of its own. The cascade steps by position, since score is in it twice. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
c4f2bcc0c9
commit
7db77e83a3
15 files changed
+215
-89
No files matched your search
+12
-1
@@ -42,11 +42,19 @@ class ServerConfig(Section):
|
||||
class ExtractConfig(ModelTaskConfig):
|
||||
"""Turning a posting's title and text into the gate columns. See
|
||||
app/jobs/extract.py. Off by default, so nobody is billed by surprise:
|
||||
on the API backend every batch is a paid call."""
|
||||
on the API backend every batch is a paid call. On, it reads only the
|
||||
best `per_agent` roles of each enabled agent that score at least
|
||||
`min_score`, so the cost follows the ranking rather than the boards."""
|
||||
|
||||
enabled: bool = False
|
||||
model: str = "claude-haiku-4-5-20251001"
|
||||
batch_size: int = Field(20, ge=1)
|
||||
#: How deep into each enabled agent's ranking extract reads: the backstop.
|
||||
per_agent: int = Field(500, ge=0)
|
||||
#: Below this score a role is not read, however few are above it. Loose,
|
||||
#: since a fresh role with the worst fit scores about 0.27 on the default
|
||||
#: weights and a good one 0.6 or more.
|
||||
min_score: float = Field(0.3, ge=0, le=1)
|
||||
|
||||
|
||||
class SummariseConfig(ModelTaskConfig):
|
||||
@@ -63,6 +71,9 @@ class SummariseConfig(ModelTaskConfig):
|
||||
batch_size: int = Field(10, ge=1)
|
||||
#: How deep into each enabled agent's ranking a pull summarises.
|
||||
per_agent: int = Field(30, ge=0)
|
||||
#: Below this score a role is not summarised. Stricter than extract's,
|
||||
#: since a summary is the expensive answer.
|
||||
min_score: float = Field(0.5, ge=0, le=1)
|
||||
|
||||
|
||||
class EmbedConfig(Section):
|
||||
|
||||
Reference in new issue
Block a user