Giter Site home page Giter Site logo

gliner_local's Introduction

Enhancing Retrieval-Augmented Generation: Tackling Polysemy, Homonyms, and Entity Ambiguity with GLiNER for Improved Performance

 RAG + NER

Introduction

The advent of Large Language Models (LLMs) has significantly impacted the field of natural language processing, offering solutions to a wide array of general problems. However, these models often struggle with domain-specific tasks, emerging knowledge, and especially with issues like polysemy, homonyms, and entity ambiguity, leading to inaccurate or hallucinated responses. This project presents the enhanced Retrieval-Augmented Generation (RAG) systems using GLiNER, a state-of-the-art Named Entity Recognition (NER) tool, in combination with Llama-Index and Mistral, to address these challenges effectively.

Installation

Before you start, ensure your system meets the following requirements:

Python 3.8 or higher pip for Python 3

Usage

This project involves two significant steps to enhance the RAG system: entity recognition, query refinement, and leveraging LLMs for improved performance. Follow these steps to set up and use the system:

Step 1: Setup GLiNER Clone the GLiNER repository or install it via HuggingFace:

Step 2: Run Clone my repository and then run RAG_NER.py:

Contributing

We welcome contributions from the community. If you'd like to improve the project or suggest enhancements, please follow reach my email: [email protected]

gliner_local's People

Contributors

msamwelmollel avatar

Watchers

 avatar

Forkers

mgonzom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.