GithubHelp home page GithubHelp logo

rag-cd's Introduction

Content Design for RAG

Samples related to Content Design (CD) for retrieval-augmented generation (RAG).

Sample notebooks

Notebook Description

1. Filter input ( link )

 

Use the Natural Langauge Understanding service on IBM Cloud to filter out malicious input (eg. Javascript injection)

2. Classify input ( link )

 

Use a large language model in IBM watsonx.ai to classify user input into one of these categories:

  • Keyword search
  • Question (including question type)
  • Instruction

3. Remove HAP, PII ( link )

 

Remove hate, abuse, and profanity (HAP) as well as personal identifiable information (PII)

4. Identify FAQs ( link )

 

Match a given question with frequently asked questions

5. Boost search ( link )

 

Improve search success using several techniques:

  • Add synonyms
  • Rewrite query

6. Prompt by question type ( link )

 

Given relevant articles from a knowledge base, prompt a large language model to format answers to questions differently, depending on the question type:

  • What-is
  • How-to

7. Select best answer ( link )

 

Select the best of several generated answers

8. Regression testing ( link )

 

Test whether a change to the RAG solution causes the solution to get better or worse

9. Testing topics ( link )

 

Test how well a topic can answer given user questions

10. HTML to text ( link )

 

Convert HTML to text

11. Answer Natural Questions ( link )

 

Answer a subset of questions from the Natural Questions benchmark

rag-cd's People

Contributors

spackows 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.