logoalt Hacker News

kaon_2yesterday at 10:52 AM3 repliesview on HN

Can you elaborate? We have technicians searching in different languages. Also our knowledge base is often in different languages. I just don't see how full text search can work? Maybe in a problem space like a wiki where people always know what to search for?


Replies

hnfongyesterday at 6:55 PM

Yes. Thank you for pointing this out.

I think there needs to be a linguist version of "what every programmer needs to know about (full?) text search"...

I'm not a linguist and I don't study languages, but I know enough to realize if a text search system is not designed for a particular language, it simply won't work. (As an example, to implement English search in a system for a hobby project, I had to import a US/UK spelling wordlist, and implement the Porter Stemming Algorithm. This is just for "one" language, and probably does not cover the other "English" dialects. Imagine doing a different workaround for every language in existence...)

RAG is actually a very language-agnostic way to work around those issues.

tantaloryesterday at 11:31 AM

FTS like Elasticsearch supports cross-language (also called multi-language) search.

jon-woodyesterday at 11:04 AM

Instinctively this feels like a two phase problem - start with some machine translation into a single spoken language and index that, then when people are querying do the same thing. When returning search results show them in the original language.

show 2 replies