Skip to content

Instantly share code, notes, and snippets.

@maylad31
maylad31 / test.py
Created February 23, 2026 09:33
Legalbenchrag - file search and not rag
from rapidfuzz import fuzz
from pathlib import Path
import json
from gliner import GLiNER
import random
import openai
from rich.console import Console
model = GLiNER.from_pretrained("urchade/gliner_small-v2.1")