

Thanks for the details, that helps a lot.
I understand about poorly-written Lore entries like “he is a snappy dresser” (“he” is vague). My curiosity was more related to Lore such as: “Tim is the sheriff” “Mike is the bad guy”
If the UI is currently constructing a message to the AI and we are discussing Tim, whether the UI could randomly select the “Mike is a bad guy” line from the Lore entries and it would be totally unrelated to the current topic of Tim.
Am I understanding right that Lore isn’t so much “chosen at random”, but is first “scored” as to relevance then chosen?
That makes sense; I want to learn more about how the weighting is computed (quite interesting stuff) but dot-producting the arrays to get an overall “this is relevant” score is useful knowledge.
Makes me think that we could weight each individual Lore entry a little more knowing this.
“Tim is the sheriff. Tim used to be the deputy. Tim is a tall guy” might weight-out better than: “Tim is the sheriff, but he used to be the deputy and he’s tall guy”.
That could get the “Tim” weighting a bit higher for that Lore if I’m understanding right.
Thanks!