Skip to content

0xPratikPatil/LexiChain

Repository files navigation

📖 LexiChain

🚀 Overview

LexiChain is an AI-powered dictionary app built using LangChain and LLMs. It provides definitions, example sentences, word types, and linguistic details for over 12 languages.

✨ Features

  • 🔍 Word Definitions – Get accurate meanings for words.
  • 📖 Example Sentences – Understand word usage in context.
  • 🏷 Word Type Identification – Find out if a word is a noun, verb, adjective, etc.
  • 🌍 Multilingual Support – Supports 12+ languages for word lookup.
  • 🧠 AI-Powered Processing – Uses LangChain and LLMs for intelligent responses.
  • 🎙 Voice Search (Upcoming) – Search for words by speaking.
  • 🌐 REST API – Allows external integration with other applications.
  • 🎛 Simple & Fast UI – Built with React + Tailwind CSS for a seamless experience.

📸 Demo

LexiChain.mov

🛠 Installation

Prerequisites

  • Node.js & npm/yarn
  • Python 3.x installed
  • Dependencies for frontend and backend

Steps

Frontend Setup

# Clone the repository
git clone https://github.com/0xPratikPatil/LexiChain.git
cd LexiChain

# Install dependencies
yarn install  # or npm install

# Start the development server
yarn dev  # or npm run dev

Backend Setup

cd LexiChain/backend

# Create a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Run the backend server
python server.py

📌 Usage

  1. Start the backend by running server.py.
  2. Start the frontend using npm run dev or yarn dev.
  3. Enter a word in the search bar.
  4. Get instant results including definition, examples, and word type.
  5. Choose from 12+ supported languages for translation.

🏗 Tech Stack

  • Frontend: React, Tailwind CSS
  • Backend: Python, FastAPI, LangChain, LLMs
  • API Communication: REST API

📌 Roadmap

  • Support for 12+ languages
  • Basic dictionary functionality (definitions, examples, word types)
  • Dark mode UI 🌑
  • Synonyms & antonyms support
  • Voice search functionality 🎙
  • Expand language support to 20+ languages
  • Offline mode for word lookup
  • Mobile app version (Android/iOS) 📱
  • Real-time API integration for external apps
  • Personalized vocabulary learning & flashcards 📝
  • User authentication for saving words & history 🔐

🤝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch (feature-name).
  3. Commit your changes.
  4. Open a pull request.

🛡 License

This project is licensed under the MIT License.


Made with ❤️ by the LexiChain Team 📖🚀

About

LexiChain is an AI-powered dictionary app built using LangChain and LLMs.

Topics

Resources

Stars

Watchers

Forks

Contributors