Update go-llm module version and modify system prompt handling in knowledge integration
This commit is contained in:
@@ -51,11 +51,9 @@ Here is the knowledge I have gathered from ` + fmt.Sprint(len(sources)) + ` sour
|
||||
systemPrompt += "\n\nI still have some questions that I could not find an answer to:\n" + strings.Join(knowledge.RemainingQuestions, "\n")
|
||||
}
|
||||
|
||||
systemPrompt += "\n\nUsing the sources, write an answer to the original question. Note any information that wasn't able to be answered."
|
||||
|
||||
res, err := a.WithSystemPrompt(systemPrompt).
|
||||
WithSystemPromptSuffix(``).
|
||||
CallAndExecute(ctx)
|
||||
CallAndExecute(ctx, "Using the sources, write an answer to the original question. Note any information that wasn't able to be answered.")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Reference in New Issue
Block a user