Skip to main content

For QandA

Project description

lensegt

LenseGt is a toolkit for QandA using RAG approach. It offers the users to extract answers to users from the doc.

Table of Contents

Motivation

Features

Installation

usage

Motivation:

In market, we have many models and it's a challenge for developer or end user to connect to model and every time they need to write the code. SO, we come up with lensegt which helps the user to connect to any model with least amount of time on code.

Features

This module can be used based on gui as well as cli

Installation

pip install lense

Usage

Cli-mode

    from lensegt import lense
    filename = "abc.pdf"
    lense.load_file(filename) 

        for openai connections 
        lense.engine(engine_type="OpenAI",api_key="sk-I4***J1TbO1")

        for azureopen ai
        lense.engine(engine_type="Azure OpenAI",api_key= "17b15**6f",api_version="2017-*-preview" ,azure_endpoint="https://covalenseopenaieastus2.openai.azure.com/")

    lense.chat_query("summary of the file")

for GUI

   from lensegt import lense
   lense.start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lense-0.0.71-py3-none-any.whl (4.9 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page