GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sameemul-haque/KTUGPT-Python: 📚 Flask web service that is designed for answering questions based on the context from the textbook PDFs • Python, Flask, LLM, Embeddings

This repository was archived by the owner on Aug 30, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
templates
templates
 
 
.env.example
.env.example
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.py
app.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

title KTUGPT
emoji 📚
colorFrom blue
colorTo purple
sdk gradio
sdk_version 4.28.3
app_file app.py
pinned false
license mit

KTUGPT-Python

A Flask web application that is designed for answering questions based on the context from the PDFs. It uses the mistralai/Mistral-7B-Instruct-v0.1 model as the large language model (LLM) and the hkunlp/instructor-xl model for embedding text representations.

Setup

  • Clone this repository:

    git clone https://github.com/sameemul-haque/KTUGPT-Python.git
    
  • After cloning the repository, navigate into the KTUGPT-Python directory

    cd KTUGPT-Python
    
  • Set up a Python virtual environment:

    python -m venv venv
    
  • Activate the virtual environment:

    • GNU/Linux | MacOS:
      source venv/bin/activate
      
    • Windows:
      venv\Scripts\activate
      
  • Install dependencies:

    pip install -r requirements.txt
    
  1. Create a .env file based on .env.example and add your Hugging Face API token and MongoDB Connection String
  • Run the app:

    python app.py 
    

Usage

Once the Flask app is running, you can send POST requests to http://127.0.0.1:5000 with a query parameter q containing your question. The app will return an answer based on the configured language model and retrieval method. For example, http://127.0.0.1:5000/?q=what%20is%20operating%20system?

preview

About

📚 Flask web service that is designed for answering questions based on the context from the textbook PDFs • Python, Flask, LLM, Embeddings

huggingface.co/spaces/KTUGPT/KTUGPT

Topics

academic-projectktugptktugpt-backendktugpt-pythonproject

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.