Close Menu
    Trending
    • AI-Powered Content Creation Gives Your Docs and Slides New Life
    • AI is nothing but all Software Engineering: you have no place in the industry without software engineering | by Irfan Ullah | Aug, 2025
    • Robot Videos: World Humanoid Robot Games, RoboBall, More
    • I Risked Everything to Build My Company. Four Years Later, Here’s What I’ve Learned About Building Real, Lasting Success
    • Tried an AI Text Humanizer That Passes Copyscape Checker
    • πŸ”΄ 20 Most Common ORA- Errors in Oracle Explained in Details | by Pranav Bakare | Aug, 2025
    • The AI Superfactory: NVIDIA’s Multi-Data Center ‘Scale Across’ Ethernet
    • Apple TV+ raises subscription prices worldwide, including in UK
    AIBS News
    • Home
    • Artificial Intelligence
    • Machine Learning
    • AI Technology
    • Data Science
    • More
      • Technology
      • Business
    AIBS News
    Home»Machine Learning»πŸ§  Building an AI-Powered Semantic Book Recommendation System with Flask, LangChain & HuggingFace | by Yaswanth reddy Balam | Aug, 2025
    Machine Learning

    🧠 Building an AI-Powered Semantic Book Recommendation System with Flask, LangChain & HuggingFace | by Yaswanth reddy Balam | Aug, 2025

    Team_AIBS NewsBy Team_AIBS NewsAugust 19, 2025No Comments3 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Discovering the proper ebook to match your temper or pursuits may be overwhelming. Conventional search engines like google usually depend on easy key phrase matching and lack the power to know the true which means behind what a reader is in search of.

    To resolve this, I constructed a Semantic E book Advice System β€” a full-stack AI internet utility that understands pure language, feelings, and classes to ship good, personalised ebook suggestions.

    This submit covers the what, why, and the way of this venture β€” from semantic search to emotional filtering and full-stack deployment.

    Semantic E book Advice System is an AI-powered internet app that:

    • Lets customers search utilizing pure language, key phrases, or feelings.
    • Returns books primarily based on semantic similarity, tone, and style.
    • Prioritizes actual title matches for improved accuracy.
    • Helps dynamic pagination, filters, and an intuitive interface.

    πŸ”— Dwell App: semantic-book-recommendation-system.onrender.com
    πŸ’»
    GitHub Repo: github.com/yaswanthreddy3/Semantic-Book-Recommendation-System

    πŸ”§ Tech Stack

    • Backend: Python, Flask
    • AI/NLP: HuggingFace Sentence Transformers, LangChain, Chroma DB
    • Frontend: HTML, CSS, JavaScript
    • Information Dealing with: Pandas, NumPy
    • Deployment: Render, Heroku (or any cloud supporting Flask)

    Let’s stroll by the key parts of the system:

    1. Information Loading & Preprocessing

    • Reads a CSV containing metadata like title, writer, scores, feelings, and so forth.
    • Masses descriptions from a tagged textual content file.
    • Prepares thumbnails, authors, and classes for frontend use.

    2. Embedding with HuggingFace

    Every ebook’s description is embedded utilizing a pre-trained sentence transformer (all-MiniLM-L6-v2), changing the textual content into dense vectors that seize semantic which means.

    embedding = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")

    3. Vector Search with Chroma DB

    These vectors are saved in ChromaDB, a quick and scalable vector database. On each consumer question, the system performs semantic similarity search to seek out essentially the most related matches.

    db = Chroma.from_documents(paperwork, embedding=embedding)
    recs = db.similarity_search_with_score(question, okay=50)

    4. Emotion-Based mostly Filtering

    Books are tagged with emotion scores like pleasure, anger, concern, disappointment, and shock. Customers can filter books by deciding on a tone similar to:

    • Pleased
    • Unhappy
    • Suspenseful
    • Indignant
    • Stunning

    The outcomes are re-ranked by the chosen emotional rating.

    5. Sensible Matching & Title Precedence

    • Semantic outcomes are returned first.
    • Actual title matches are boosted to the highest of the outcomes for higher UX.
    • If no outcomes are discovered, it gracefully falls again to the highest-rated books.

    6. Frontend and Pagination

    The frontend shows ebook playing cards with:

    • Cowl picture
    • Title & authors
    • Truncated description
    • Rankings & printed 12 months

    It additionally helps pagination to load massive units of outcomes effectively.

    • βœ… Semantic Search utilizing language embeddings
    • 🎭 Emotion-aware filtering
    • πŸ—‚οΈ Style/class filters
    • πŸ“š E book particulars: title, authors, scores, description, thumbnails
    • πŸ”„ Dynamic pagination
    • 🧠 Title-priority for actual match enchancment

    Say you sort in:

    "heartwarming story about friendship"
    Tone:
    Pleased
    Class:
    Fiction

    The system will:

    • Embed the enter question.
    • Discover semantically comparable ebook descriptions.
    • Re-rank outcomes primarily based on pleasure/emotion scores.
    • Prioritize books with comparable titles or themes.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleThe firms looking to destroy harmful ‘forever chemicals’
    Next Article I Tested an AI Text Humanizer with Unlimited Words
    Team_AIBS News
    • Website

    Related Posts

    Machine Learning

    AI is nothing but all Software Engineering: you have no place in the industry without software engineering | by Irfan Ullah | Aug, 2025

    August 22, 2025
    Machine Learning

    πŸ”΄ 20 Most Common ORA- Errors in Oracle Explained in Details | by Pranav Bakare | Aug, 2025

    August 22, 2025
    Machine Learning

    Data Analysis Lecture 2 : Getting Started with Pandas | by Yogi Code | Coding Nexus | Aug, 2025

    August 22, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    AI-Powered Content Creation Gives Your Docs and Slides New Life

    August 22, 2025

    I Tried Buying a Car Through Amazon: Here Are the Pros, Cons

    December 10, 2024

    Amazon and eBay to pay ‘fair share’ for e-waste recycling

    December 10, 2024

    Artificial Intelligence Concerns & Predictions For 2025

    December 10, 2024

    Barbara Corcoran: Entrepreneurs Must ‘Embrace Change’

    December 10, 2024
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    Most Popular

    How Fuzzy Matching and Machine Learning Are Transforming AML Technology

    July 15, 2025

    Autonomous Agents Are Revolutionizing Software As We Know It

    August 12, 2025

    The Best and Worst U.S. States for Retirement: Ranking

    January 16, 2025
    Our Picks

    AI-Powered Content Creation Gives Your Docs and Slides New Life

    August 22, 2025

    AI is nothing but all Software Engineering: you have no place in the industry without software engineering | by Irfan Ullah | Aug, 2025

    August 22, 2025

    Robot Videos: World Humanoid Robot Games, RoboBall, More

    August 22, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright Β© 2024 Aibsnews.comAll Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.