Skip to content

Instantly share code, notes, and snippets.

View FightFK's full-sized avatar
🎯
Focusing

Chinnapong Rakmai FightFK

🎯
Focusing
View GitHub Profile
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/wordpress
<Directory /var/www/wordpress/>
AllowOverride All
Require all granted
</Directory>
from sentence_transformers import SentenceTransformer
import numpy as np
import spacy
# Load NLP + embedding model
nlp = spacy.load("en_core_web_sm")
model = SentenceTransformer("intfloat/e5-large-v2")
# Build centroid of "simple" prompts
simple_prompts = [