Close Menu
    Trending
    • History of Artificial Intelligence: Key Milestones That Shaped the Future | by amol pawar | softAai Blogs | Jun, 2025
    • FedEx Deploys Hellebrekers Robotic Sorting Arm in Germany
    • Call Klarna’s AI Hotline and Talk to an AI Clone of Its CEO
    • A First-Principles Guide to Multilingual Sentence Embeddings | by Tharunika L | Jun, 2025
    • Google, Spotify Down in a Massive Outage Affecting Thousands
    • Prediksi Kualitas Anggur dengan Random Forest — Panduan Lengkap dengan Python | by Gilang Andhika | Jun, 2025
    • How a 12-Year-Old’s Side Hustle Makes Nearly $50,000 a Month
    • Boost Your LLM Output and Design Smarter Prompts: Real Tricks from an AI Engineer’s Toolbox
    Finance StarGate
    • Home
    • Artificial Intelligence
    • AI Technology
    • Data Science
    • Machine Learning
    • Finance
    • Passive Income
    Finance StarGate
    Home»Machine Learning»How to Optimise your RAG — Enhancing LLM Accuracy with a Dictionary-Based Approach (Part 2/3) | by MD. SHARIF ALAM | Mar, 2025
    Machine Learning

    How to Optimise your RAG — Enhancing LLM Accuracy with a Dictionary-Based Approach (Part 2/3) | by MD. SHARIF ALAM | Mar, 2025

    FinanceStarGateBy FinanceStarGateMarch 10, 2025No Comments4 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Massive Language Fashions (LLMs) are revolutionizing AI-driven knowledge interactions, however they typically battle with hallucinations, indecisiveness, and inaccurate knowledge interpretation — challenges that may be vital in enterprise purposes.

    Determine: LLM Challenges

    To handle these points, we introduce a Dictionary-Primarily based Programmatic and Algorithmic Method — a system that acts as an clever middleman between the LLM and structured knowledge. This strategy ensures precision, reliability, and domain-specific accuracy whereas optimizing question execution.

    The Dictionary System enhances LLM efficiency in 5 key methods:

    1. Area-Particular Responses — Ensures accuracy by tailoring queries to industry-specific datasets.
    2. Prevents Hallucinations — Validates database schemas earlier than question execution.
    3. Filters Irrelevant Queries — Stops incorrect or out-of-context questions from producing false outcomes.
    4. Suggestions Optimization — Repeatedly learns from person corrections and question historical past.
    5. Environment friendly Question Execution — Reduces token prices and enhances velocity by fetching solely related schema fragments.
    Determine: Impression of Dictionary-Primarily based Method

    The Dictionary System integrates a number of parts to refine LLM-driven queries earlier than execution:

    1. Good Schema Dealing with

    As an alternative of loading a complete database schema, the Dictionary fetches solely related desk and column fragments, enhancing effectivity.

    Instance:

    If a database has 200 tables however a question issues solely Orders and Clients, the Dictionary fetches solely these schemas, lowering computation time.

    Determine: Good Schema Filtering
    Determine: Database Schema Effectivity

    Instance:

    Optimized Schema Retrieval

    With out Dictionary Method:

    Database Dimension: 200 tables

    Question Wants: Solely 2 tables (Orders, Clients)

    Difficulty: LLM masses total schema → Gradual & Inefficient

    With Dictionary Method:

    Database Dimension: 200 tables

    Question Wants: Orders & Clients

    Optimization: Fetches solely these two tables → 90% discount in schema measurement!

    Earlier than executing a question, the system verifies if the requested desk, column, or relationship exists — stopping invalid queries.

    Instance:

    Person Question: “Discover complete gross sales grouped by class.”
    Difficulty: No class column exists, however product_type does.
    Answer: The Dictionary auto-corrects and generates:

    SELECT product_type, SUM(gross sales) FROM Orders GROUP BY product_type;
    Determine: Schema validator, auto correction and suggestions loop
    Determine: Monitoring Most Widespread errors.

    Instance:

    Schema Validation in Motion

    With out Schema Validator:

    Person Question: “Discover complete gross sales grouped by class.”
    Error: "Column 'class' doesn't exist."

    With Schema Validator:

    System Detects: "class" doesn’t exist, however "product_type" does.
    Auto-Corrected Question:

    SELECT product_type, SUM(gross sales) FROM Orders GROUP BY product_type;

    Question Executes Efficiently!

    Advantages:

    Prevents Invalid Queries — No extra errors as a result of incorrect desk/column names.
    Improves Accuracy — Suggests right phrases when potential.
    Enhances Effectivity — Saves time by avoiding pointless debugging.

    By monitoring previous question successes and failures, the system refines responses and prevents repeated errors.

    Question Efficiency Over Time

    Determine: Question Success Fee Over Time

    The system constantly improves by analyzing frequent person modifications to AI-generated queries.

    Course of:

    1. Monitor modifications customers make to AI-generated queries
    2. Determine patterns in these modifications
    3. Routinely incorporate widespread changes into future question era
    4. Repeatedly refine based mostly on ongoing person interactions
    Determine: Suggestions Optimisation

    A domain-specific data base shops continuously used queries, schema insights, and entry management insurance policies.

    Key Parts:

    1. Most Used Queries
    2. Database Schema Info
    3. Safety Insurance policies & Information Entry Controls
    4. Question Optimization Methods
    Determine: Slef learnt centralised knowledge-base

    The Dictionary Method is only the start!
    Subsequent Steps:

    • Automated High quality-Tuning: Utilizing reinforcement studying to enhance question accuracy.
    • Dynamic Schema Updates: Adapting to real-time database modifications for seamless execution.

    As AI-driven knowledge interactions increase, programmatic options just like the Dictionary System will probably be important for making LLMs extra correct, dependable, and cost-effective in structured knowledge environments.

    [1] Brown, T., et al. (2023). “Mitigating hallucinations in giant language fashions via structured validation.” Journal of Synthetic Intelligence Analysis, 68(3), 1245–1287.

    [2] Johnson, L., & Patel, S. (2024). “Information graph integration for enhanced LLM accuracy in domain-specific purposes.” Proceedings of the Worldwide Convention on Information Discovery and Information Mining, 412–428.

    [3] Zhang, Y., et al. (2023). “Schema-aware question processing for big language fashions.” Transactions on Database Techniques, 15(2), 178–196.

    [4] Kumar, R., & Chen, M. (2024). “Reinforcement studying approaches to LLM question optimization.” IEEE Convention on Machine Studying Purposes, 327–339.

    [5] Roberts, A., et al. (2023). “Enhancing factuality in language fashions via retrieval augmentation and schema validation.” Transactions on Machine Studying, 15(3), 278–296.

    🔗 Keep forward of AI improvements — comply with for extra updates! 🚀



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleWhat 2024 Taught Us About ESG Engagement
    Next Article These 3 Questions Are Plaguing Small Business Owners in 2025 — and Here Are the Answers to Them
    FinanceStarGate

    Related Posts

    Machine Learning

    History of Artificial Intelligence: Key Milestones That Shaped the Future | by amol pawar | softAai Blogs | Jun, 2025

    June 13, 2025
    Machine Learning

    A First-Principles Guide to Multilingual Sentence Embeddings | by Tharunika L | Jun, 2025

    June 13, 2025
    Machine Learning

    Prediksi Kualitas Anggur dengan Random Forest — Panduan Lengkap dengan Python | by Gilang Andhika | Jun, 2025

    June 13, 2025
    Add A Comment

    Comments are closed.

    Top Posts

    Awesome Plotly with code series (Part 9): To dot, to slope or to stack? | by Jose Parreño | Feb, 2025

    February 3, 2025

    Has AI Changed The Flow Of Innovation?

    May 13, 2025

    The Future of AI in Business: Trends to Watch in 2025 and Beyond

    February 9, 2025

    Regression Discontinuity Design: How It Works and When to Use It

    May 7, 2025

    Why Smart Founders Take a ‘Backward Approach’ to Entrepreneurial Success

    February 26, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Data Science
    • Finance
    • Machine Learning
    • Passive Income
    Most Popular

    Shsu#شماره خاله تهران# شماره خاله تهرانپارس# شماره خاله تهرانسر# شماره خاله انقلاب شماره خاله ونک…

    February 22, 2025

    Report: Contract Management Leads AI Legal Transformation

    May 3, 2025

    How I saved a client a ton of expenses using LLM caching. | by Amos Ehiguese | May, 2025

    May 28, 2025
    Our Picks

    This Franchise Has Seen Remarkable Growth in the $5.3Bn Drug Testing Industry

    February 13, 2025

    Barbara Corcoran Finds a Buyer in One Day for $12M Penthouse

    May 14, 2025

    What to Know Before Investing in a Pre-IPO Company

    April 24, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Data Science
    • Finance
    • Machine Learning
    • Passive Income
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2025 Financestargate.com All Rights Reserved.

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