Forum OpenACS Development: Re: Semantic Search in OpenACS

Collapse
Posted by Neophytos Demetriou on
Here's a few notes about an early version of the pgvector-driver:

1. The source code lives here for now: https://github.com/jerily/openacs-packages

2. I had to use the same table name as tsearch2-driver i.e. txt because I was testing with xowiki that has the table name hardcoded in ::xowiki::datasource (xowiki-sc-procs.tcl).

3. I have to update the tbert C module to work with naviserver. For now, I was testing by simply loading the shared library i.e. load libtbert.so.

4. I will polish the package further tomorrow and, most likely, provide a Dockerfile so that people can test easily.

IMPORTANT NOTE: Not sure when tsearch2-driver changed but, to the best of my understanding, it is no longer taking ranking into consideration (ranking is lost after checking permissions and the distinct clause). Pretty sure the original version that I did some 20 years ago did not have that issue.