GithubHelp home page GithubHelp logo

rag's Introduction

What is RAG?

RAG stands for Retrieval Augmented Generation.

It was introduced in the paper Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.

Each step can be roughly broken down to:

  • Retrieval - Seeking relevant information from a source given a query. For example, getting relevant passages of Wikipedia text from a database given a question.
  • Augmented - Using the relevant retrieved information to modify an input to a generative model (e.g. an LLM).
  • Generation - Generating an output given an input. For example, in the case of an LLM, generating a passage of text given an input prompt.

Creating RAG With Miltiple Apporaches Like

  1. LangChain
  2. LlamaIndex
  3. Without Any Pre Defined Framework

The Document Which We Are Using For This Apporach Can Be Downloaded From Below Mentioned Link https://openstax.org/details/books/concepts-biology

RAG Arch

Getting The Outputs Like:

Prompt: "What is Hypothesis Testing?"

Response : Hypothesis testing is a statistical technique used to test a hypothesis about a population based on a sample of data. The basic idea is to use the sample data to make inferences about the population. There are several steps involved in hypothesis testing:

  1. Formulate a null hypothesis: This is a statement about the population that you want to test.
  2. Formulate an alternative hypothesis: This is a statement about the population that you want to reject the null hypothesis.
  3. Choose a test statistic: This is a statistical measure that you will use to determine whether the sample data supports the null or alternative hypothesis.
  4. Determine the critical region: This is the range of values of the test statistic that will lead to the rejection of the null hypothesis.
  5. Collect data: Collect a random sample of data from the population.
  6. Calculate the test statistic: Use the sample data to calculate the test statistic.
  7. Compare the test statistic to the critical value: If the test statistic is greater than the critical value, reject the null hypothesis. If the test statistic is less than or equal to the critical value, fail to reject the null hypothesis.

rag's People

Contributors

sovik-gupta avatar

Stargazers

 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.