Adjust the prompt FS layout and test strategy
This commit is contained in:
@@ -29,9 +29,14 @@ func RegisterPromptAssets(registry *llm.AssetRegistry) error {
|
||||
}
|
||||
|
||||
func promptInputs(req contracts.ChunkRequest) contracts.LLMInputSet {
|
||||
partySlot := req.References.Slots["party"]
|
||||
if len(partySlot.Items) == 0 {
|
||||
partySlot = req.References.Slots["roster"]
|
||||
}
|
||||
return contracts.LLMInputSet{
|
||||
"transcript": transcriptPromptInput(req.SourceInput),
|
||||
"roster": referencePromptMaterial("roster", req.References.Slots["roster"]),
|
||||
"players": referencePromptMaterial("players", req.References.Slots["players"]),
|
||||
"party": referencePromptMaterial("party", partySlot),
|
||||
"glossary": referencePromptMaterial("glossary", req.References.Slots["glossary"]),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user