Coder Social home page Coder Social logo

qpxdesign / quail-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 20 KB

As seen in TREC 2023, A QA-First, Hallucination-Lite, Multi-LM Summarizer

Home Page: https://quail.quinnpatwardhan.com

Python 50.32% HTML 36.13% CSS 10.70% Dockerfile 2.85%
bert fastchat-t5 information-retrieval llm lm question-answering sentance-transformers summarization t5-model trec

quail-api's Introduction

Quail: A QA-First, Hallucination-Lite, Multi-LM Summarizer

How it works

First, we take the inputted passage, split it into individual sentences, and rank each sentence by relevance to the query using SentenceTransformers. We then take the top-n ranked sentences, combine them back into a new passage, and use FastChat-T5, a Text-To-Text Transfer Transformer Learning-based langague model to summarize the passage. FastChat-T5 is based on Google's Flan XL T5 Model.

How to use

Paste in your passage, and query, and hit 'Go'! Depending on how busy the site is, it may take some time for you to get your summary. Using a Redis database, we queue summary jobs, and execute them one-by-one in the order that they are recieved. Each summary takes around 30 seconds. (Note, Summary Generation is still a WIP)

Dependencies

Attribution

This summarization method originates from a paper submited to the iKAT Track of the 2023 Run of the Text Retreiveal Conference (TREC) entitled Sequencing Matters: A Generate-Retrieve-Generate Model for Building Conversational Agents . See the full code for that on my Github.

quail-api's People

Contributors

qpxdesign avatar

Watchers

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