Include glossary guidance in proposal conversations
This commit is contained in:
@@ -31,10 +31,7 @@ type TranscriptModule interface {
|
||||
type StructuredCompletionRequest = structuredoutput.Request
|
||||
type StructuredCompletionResponse = structuredoutput.Response
|
||||
|
||||
type GlossaryInstruction struct {
|
||||
Collection string
|
||||
Text string
|
||||
}
|
||||
type GlossaryInstruction = promptcontext.GlossaryInstruction
|
||||
|
||||
// ModuleRunSpec identifies one resolved module instance in a pipeline.
|
||||
type ModuleRunSpec struct {
|
||||
@@ -62,6 +59,7 @@ func (s *ModuleRunSpec) PrepareGlossary() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
variables.InstructionsBlock = promptcontext.GlossaryInstructionsBlock(s.GlossaryInstructions)
|
||||
s.GlossaryVariables = &variables
|
||||
}
|
||||
if s.GlossaryView == nil {
|
||||
|
||||
Reference in New Issue
Block a user