Coder Social home page Coder Social logo

mariocsilva / rag_qa_llm Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 259 KB

Knowledge-Sharing Hub using RAG Q&A techniques with LLMs (Llama2 and ChatGPT)

Home Page: https://medium.com/@mariocsilva119/discover-the-future-of-internal-knowledge-sharing-rag-q-a-llm-bc40c055d53b

License: MIT License

Jupyter Notebook 100.00%
chatgpt llama2 llm openai question-answering rag genai langchain llamaindex

rag_qa_llm's Introduction

RAG_Q&A_LLM

In this repository, I delve into creating a knowledge-sharing hub from my own data sources where teams can get insights and answers with the ease of a conversation, using the RAG Q&A technique, with the potential to complete the way information is shared within both small and large organizations.

In short, RAG Q&A (Retrieval-Augmented Generation Question and Answering) is a framework that blends retrieval-based and generation-based approaches. It employs a retriever to find relevant information and, typically, an LLM (Large Language Model) as the generator to create contextually rich answers. By definition, LLMs are a type of AI model capable of understanding and generating human-like language, trained on vast amounts of text data to learn the patterns, structures, and context of natural language.

I made one notebook using the free Llama-2–7b-chat-hf model (with a 4-bit quantization strategy) for Google Colab, which allows running this software for free, and another notebook using the OpenAI chat-gpt-3.5-turbo LLM model using an OpenAI subscription. Please make sure to install the requirements if you're going to use the local version.

For this use case, markdown documentation files were retrieved from three different data sources:

These documents were chosen because they are typical ways for organizations to document and preserve their projects' knowledge.

The final chatbot extracted knowledge accurately, providing concise and relevant answers, while linking the documents it used.

rag_qa_llm's People

Contributors

mariocsilva avatar

Stargazers

Sestren Exsis avatar Lawrence kraft avatar Ali Baygi avatar João Reis avatar  avatar  avatar Kevin Ng Ying Yi avatar  avatar Apostolis Economou avatar  avatar

Watchers

 avatar

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.