A for-fun server. You type a phrase such as "I'm fine" and it answers with what the person really meant. It works in both directions and in 10 languages: English, Russian, Latvian, Lithuanian, Estonian, Polish, German, Ukrainian, Spanish and Russian in Latin letters.
Under the joke there is a small experiment with caching. Each meaning is stored once as a concept, with an embedding of its English version. A phrase in any language lands in the same concept, so an answer found in one language is ready for the others without a new model call.
It runs on the free Gemini tier, so answers are not instant and there is a request limit. Plain PHP and SQLite, no framework. The code is open under GPL-3.0.
1 comment
Log in — to join the discussion.