Update go-llm module version and modify system prompt handling in knowledge integration

This commit is contained in:
2025-04-12 03:42:16 -04:00
parent 1447b73dfb
commit ab1434d671
4 changed files with 7 additions and 6 deletions

View File

@@ -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
}