Commit 7440fa13 authored by Wade's avatar Wade

log qa

parent 8604b187
This diff is collapsed.
...@@ -329,8 +329,19 @@ func main() { ...@@ -329,8 +329,19 @@ func main() {
}, nil }, nil
} }
qa.UpdateQAFields(context.Background(), idx, "", resp.Text()) qa.UpdateQAFields(context.Background(), idx, "", resp.Text())
log.Info().
Str("question",promptInput.Query).
Str("context",promptInput.Context).
Str("graph",promptInput.Graph).
Str("last summary",promptInput.Summary).
Str("answer", resp.Text()).
Msg("Question and answer pair recorded")
return Response{ return Response{
Data: resp.Text(), Data: resp.Text(),
Code: 200, Code: 200,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment