Skip to content

Instantly share code, notes, and snippets.

@DGaffney
Created November 9, 2024 20:04
Show Gist options
  • Save DGaffney/8861e95530d39e506b9482b32396c3de to your computer and use it in GitHub Desktop.
Save DGaffney/8861e95530d39e506b9482b32396c3de to your computer and use it in GitHub Desktop.
Cool Manifests
// match any prisencolinensinainciusol skeet
{
"filter": {
"and": [
{
"regex_matches": [
{
"var": "text"
},
"\\bprisencolinensinainciusol\\b"
]
}
]
},
"models": []
}
// match any skeet embedding https://www.youtube.com/watch?v=E8Ew6K0W3RY, matching the term "important", not matching "unwanted_term", with cosine similarity of 0.3 or higher compared to anchor text of "This is an important update", and any score on the news_without_science ML classifier
{
"filter": {
"and": [
{
"attribute_compare": [
{
"var": "embed.external.uri"
},
"==",
"https://www.youtube.com/watch?v=E8Ew6K0W3RY"
]
},
{
"regex_matches": [
{
"var": "text"
},
"\\bimportant\\b"
]
},
{
"regex_negation_matches": [
{
"var": "text"
},
"\\bunwanted_term\\b"
]
},
{
"text_similarity": [
{
"var": "text"
},
{
"model_name": "all-MiniLM-L6-v2",
"anchor_text": "This is an important update"
},
">=",
0.3
]
},
{
"model_probability": [
{
"model_name": "news_without_science"
},
">=",
0.9
]
}
]
},
"models": [
{
"model_name": "news_without_science",
"feature_modules": [
{
"type": "time_features"
},
{
"type": "vectorizer",
"model_name": "all-MiniLM-L6-v2"
},
{
"type": "post_metadata"
}
]
}
]
}
@DGaffney
Copy link
Author

Any posts from people that @devingaffney.com follows

{
    "filter": {
        "and": [
            {
                "social_graph": [
                    "devingaffney.com",
                    "is_in",
                    "follows"
                ]
            }
        ]
    },
    "models": [

    ]
}

@DGaffney
Copy link
Author

Any posts from people @brendannyhan.bsky.social follows, restricted to high likelihood of looking like dril posts:

{
    "filter": {
        "and": [
            {
                "social_graph": [
                    "brendannyhan.bsky.social",
                    "is_in",
                    "follows"
                ]
            },
            {
                "model_probability": [
                    {
                        "model_name": "dril_detector"
                    },
                    ">=",
                    0.9
                ]
            }
        ]
    },
    "models": [
        {
            "feature_modules": [
                {
                    "model_name": "all-MiniLM-L6-v2",
                    "type": "vectorizer"
                }
            ],
            "model_name": "dril_detector",
            "training_file": "dril_detector_dataset.json"
        }
    ]
}

@DGaffney
Copy link
Author

Any posts from any member of the Swiftie Starter Pack:

{
    "filter": {
        "and": [
            {
                "starter_pack_member": [
                    "https://bsky.app/starter-pack/taylorsglitters.swifties.social/3laf2yzj6lh2y",
                    "is_in"
                ]
            }
        ]
    }
}

@DGaffney
Copy link
Author

Any posts about US politics excluding members of the BlueAnon moderation list:

{
    "filter": {
        "and": [
                    {
                "text_similarity": [
                    {
                        "var": "text"
                    },
                    {
                        "model_name": "all-MiniLM-L6-v2",
                        "anchor_text": "United States Politics, Presidential Election, Donald Trump"
                    },
                    ">=",
                    0.3
                ]
            },
            {
                "list_member": [
                    "https://bsky.app/profile/numb.comfortab.ly/lists/3lam62tvlqz2l",
                    "is_not_in"
                ]
            }
        ]
    }
}

@DGaffney
Copy link
Author

DGaffney commented Nov 12, 2024

Any posts including a URL originating from journalists in several journalist starter packs

{
  "filter": {
    "and": [
      {
        "attribute_compare": [
          {
            "var": "embed.external.uri"
          },
          "!=",
          null
        ]
      },
      {
        "or": [
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/justinling.ca/3kwirfdizjt25",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/24rjc.rjcgonzalez.com/3l3vebwzpqz2u",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/make-it-make-sense.bsky.social/3lalc7uxfdz2c",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/bschillace.brandyschillace.com/3l7njufjykq2x",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/martinstabe.bsky.social/3l373eyo7zq2u",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/abajrak.bsky.social/3l3lkcouyik2f",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/gregpak.bsky.social/3l4fakivzew2j",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/24rjc.rjcgonzalez.com/3l3vebwzpqz2u",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/bloomberg.com/3laot7tbtcy2y",
              "is_in"
            ]
          },
          {
            "starter_pack_member": [
              "https://bsky.app/starter-pack/jamielevdan.bsky.social/3laoyggxng62h",
              "is_in"
            ]
          }
        ]
      }
    ]
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment