From posts that I’ve read, the Perchance AI Character Char (ACC) will only load Lore files via URL into the main AI character.
Does this mean that it ignores Lore URLs in other characters’ Lore entry box (won’t load them), or appends those URLs as well into the main character’s Lore?
At first, I thought this was an easy fix: in the main character Lore URL box, just enter the Lorebook URLs of all the characters (e.g., “Mike.txt”, “Tim.txt”, etc.) and they’d all get loaded.
However, my best understanding of how Lore is used is that when a user message is formed and sent to the AI LLM, the ACC will (always? occasionally?) select one (or more?) Lore entries at random to help flavor the AI response.
I think this means that if other characters’ Lore is mixed in to a single “pool” of Lore entries under the main character, then for a Tim character reply, the Lore sent over to the LLM could be random picks of from the pool that contains “Mike” lore and “Tim” lore, etc. In other words, flavoring the “Tim” reply with unrelated Lore facts about Mike.
Could someone kindly let me know if my thinking above is valid? Thanks!
Does this mean that it ignores Lore URLs in other characters’ Lore entry box (won’t load them), or appends those URLs as well into the main character’s Lore?
It ignores the Lore URLs in the invited characters.
However, my best understanding of how Lore is used is that when a user message is formed and sent to the AI LLM, the ACC will (always? occasionally?) select one (or more?) Lore entries at random to help flavor the AI response.
- The AI generates a query, three information searching sentences, that would be used for the Lore/Memories search.
- The query is then compared to the information in the list of Lore/Memories.
- Most-related lore/memories (those that exceeded the ‘score’ threshold) are used for generating the response.
- Best way to monitor it is by clicking the brain icon on the bottom right of the message bubble to see which lore/memories were used.
- Another way is to open Dev Tools before the prompting the AI and the query and scores and lores/memories used are logged in the console.
I think this means that if other characters’ Lore is mixed in to a single “pool” of Lore entries under the main character, then for a Tim character reply, the Lore sent over to the LLM could be random picks of from the pool that contains “Mike” lore and “Tim” lore, etc. In other words, flavoring the “Tim” reply with unrelated Lore facts about Mike.
Yes. The best way is to relate which character is which using proper nouns and seldom use pronouns when referring to someone. E.g. “He is his best friend” compared to “Tim is Mike’s best friend”.
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?
The lore entries (and memories) are ‘embedded’ and are represented with an array of floats. The search queries are also embedded, and both search query and the entries are computed with a dot product to get the score. If the search query generated have the other character’s name, it might score the lore entries from that character more likely.
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!