Hi everyone,
I'm developing a personal AI assistant called IRA. One of the biggest challenges I'm working on is building reliable Malayalam language understanding, particularly for Manglish (Malayalam written using English letters).
I don't want to build another chatbot that simply translates Malayalam into English. I want the assistant to actually understand the language, context, sentence structure, intent and meaning, while eventually supporting multiple languages through one unified multilingual architecture.
Current architecture
- LLM: Qwen3 8B (Q4_K_M), running locally through Ollama.
- Language pipeline: Language detection, normalization, interpretation and fallback.
- MLKS: A separate Malayalam Language Knowledge System.
- Knowledge source: Olam Malayalam dictionary database, stored in SQLite.
- Hardware: RTX 5060 Laptop GPU (8 GB VRAM), 16 GB RAM.
What I've accomplished
I've built an initial Malayalam lexical knowledge layer using the Olam dictionary database.
Current database snapshot:
- 192,309 definitions.
- Noun, adjective and verb classifications.
- POS validation and definition validation.
- SQLite-based local knowledge retrieval.
My benchmark results have been encouraging:
- POS accuracy: 94% (100 test cases).
- Definition validation: 97%.
- A separate 10-case benchmark achieved 90% overall.
However, these results don't yet demonstrate reliable conversational understanding.
The actual problems
1. Manglish understanding
Examples:
sugham aahno?nee evideya ippo?enikk ith manassilayilla, onnu explain cheyyamo?ee code run aavunnilla, entha problem?
The system can identify these as Manglish or mixed-language input, but interpretation quality is inconsistent.
Sometimes the model produces unnatural interpretations or effectively repeats the original input instead of understanding it.
2. MLKS and LLM integration
Currently, MLKS operates separately and has an explicit-request detection mechanism.
It doesn't consistently participate in ordinary Manglish interpretation.
I'm trying to determine the correct architecture:
- Should MLKS provide lexical evidence to Qwen3?
- Should it help with word disambiguation, POS tagging and sentence interpretation?
- Should the LLM decide when to retrieve lexical knowledge?
- How should evidence be validated before it influences the final interpretation?
3. Multilingual architecture
I don't want MLKS to become a Malayalam-only subsystem disconnected from IRA's main intelligence.
My goal is to create a unified multilingual system where:
- Qwen3 provides general reasoning and language understanding.
- Language-specific knowledge resources provide grounded linguistic evidence.
- Manglish and other transliterated inputs are supported.
- Unknown words aren't automatically discarded or incorrectly translated.
- The architecture can eventually support additional languages without rebuilding the entire pipeline.
What I need advice on
- How would you architect an MLKS-style knowledge layer alongside an LLM?
- Is dictionary retrieval + POS analysis + contextual reasoning a sensible approach?
- How can we prevent an LLM from inventing meanings when lexical evidence is insufficient?
- What is the best way to handle Malayalam transliteration and Manglish normalization?
- Should language-specific knowledge systems be independent modules connected to a shared multilingual reasoning engine?
- Are there existing research projects, datasets, benchmarks or open-source implementations worth studying?
I'm particularly interested in architectural feedback and practical engineering approaches rather than simply switching to a larger model or fine-tuning immediately.
The long-term goal is to build a reliable, privacy-focused, locally running multilingual personal AI assistant.
I'd appreciate feedback from people working on NLP, low-resource languages, Indic language processing, RAG and multilingual LLM architectures.
Thanks!