Would this work?
What kind of license would you like more?
(There's also an indexed variant that does faster lookups, but it uses a special virtual table layout that constrains the types of the other columns in the table.)
See https://github.com/unum-cloud/USearch. pip-installable for Python users.
I had the idea of making a "poor man's embeddings" for document similarity. You want two documents to match even if they share no keywords, as long as their keywords are closely related, right? That seems like a very solvable problem.