Skip to content

UditAkhourii/rtrafactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Rtrafactor - LLMs on Steroids

Welcome to Eternity AI's Rtrafactor workspace!

Open in Colab

Overview

Rtrafactor is a Python library developed at the Indian Institute of Technology, Patna, as part of the Real Time Retrieval Argumentation (RTRA) architecture. It integrates real-time access tools like search, retrieval, summarization, and argumentation into AI models via a Python library.

To read the research paper detailing RTRA, click here.

Installation

Install Rtrafactor into your project using pip:

pip install rtrafactor

Package Validation

Ensure the authenticity of the installed package:

pip show rtrafactor

Usage

Rtrafactor is available as a L2LM (Language-to-Language Model) architecture, currently integrated with HuggingFace's Inference API. Follow these steps to use Rtrafactor:

  1. Import RTRAConnector:

    from rtrafactor import RTRAConnector
  2. Instantiate RTRAConnector:

    connector = RTRAConnector(huggingface_model, huggingface_api_token)
  3. Query for Answers:

    query = "Your question here?"
    one_shot_answer = connector.compare_answers(query)
    print(one_shot_answer)

Examples

Here are some example queries you can try with Rtrafactor:

  1. Why is Delhi's CM in jail?
  2. Who is Dr. Kuldip Singh Patel?
  3. Who is Udit Akhouri?

Limitations & Future Scope

While RTRA enhances model capabilities, there are still limitations to address:

  • Hallucination & Citation: Addressing false information and improving citation accuracy.
  • Latency: Reducing response time and optimizing underlying architecture.

Breakthrough

RTRA architecture challenges the conventional approach of relying on vast computational resources by democratizing access to the internet's information. It enables developers, including solo developers and small teams, to build efficient models without requiring extensive computational resources.

Acknowledgements

This project was developed by Udit Raj, Sanya Gupta, and other fellow researchers at the Indian Institute of Technology, Patna, as part of ongoing research in AI and natural language processing.


For detailed usage examples and code, visit Rtrafactor on Google Colab.

Releases

No releases published

Packages

No packages published

Languages