Skip to content

shenoy-anurag/HinDict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Dictionary to learn Hindi words, their meanings, synonyms, antonyms and usage.

📖 HinDict 📖 - My new LLM powered project!

Live Demo: https://hindict.netlify.app/

Demo

Demo: Definition of the hindi word Aadhyatmik

More images and videos in the docs folder of this repository!

Motivations

I recently wanted to read Hindi literature, and I stumbled upon many words I didn't have in my vocabulary. I realized I am quick at reading Hindi, but slow at writing Hindi in Devanagari.

I wondered if there was an app where I could write Hindi in English / Latin alphabet (romanization) and obtain it's meaning and English equivalent. When I struggled to find one, I decided to embark on an NLP and LLM journey to make one myself.

I brushed up my skills with using open-source LLMs such as Llama3.2 and deploying them using Ollama inside a Docker container, and used prompt engineering to provide the user with a small succinct answer.

Tech

Built the front-end in Next.js and the back-end using Flask web framework.

Prompt Engineering

Respond in one concise sentence without disclaimers or examples. Format: User word title-case, (user word in Hindi), refers to … (provide a definition in 5-15 words). Always conclude with this exact phrase: 'Closest English equivalent: (closest english equivalent single word)'. Do not omit this phrase under any circumstances.

Had to add the "Do not omit this phrase under any circumstances" because the model was hallucinating.

Thoughts

I'm pretty sure the LLM is overkill for this use-case (despite picking the small 3B parameter model), but I wanted to have fun building with LLMs. Currently fine-tuning a smaller model to save on costs.

Update: Decided to use OpenAI's api to save on costs and improve inference speed.

More demo images

Bhumi

Demo Screenshot: Bhumi

Bhumi (dark mode)

Demo Screenshot: Bhumi (dark mode)

Gyan

Demo Screenshot: Gyan

Manushya

Demo Screenshot: Manushya

Janma (dark mode)

Demo Screenshot: Janma

Support me if you like this project!

Buy me a coffee: https://buymeacoffee.com/anuragshenoy

Attributions

Favicon: Dictionary icon by Icons8

About

HinDict. An LLM powered dictionary that lets users type Hindi words phonetically in English letters to find the best English equivalents. Built with React & Nextjs, OpenAI API, with Prompt Engineering.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors