Skip to content

Commit

Permalink
Add entropy to twitter topics for context and rag retrieval entropy.
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxIsCool committed Jan 28, 2025
1 parent 678144b commit 30543b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,10 @@ export class TwitterPostClient {
"twitter"
);

const topics = this.runtime.character.topics.join(", ");
const topics = this.runtime.character.topics
.sort(() => 0.5 - Math.random())
.slice(0, 10)
.join(", ")

const state = await this.runtime.composeState(
{
Expand Down

0 comments on commit 30543b6

Please sign in to comment.