Giter Club home page Giter Club logo

ipedsllm's Introduction

LLM Chatbot

Description

This repository contains the code for the Langchain and LlamaIndex chatbots, which utilize natural language to SQL processing with Langchain and LLamaIndex using OpenAI GPT-3.5 Turbo LLM engine. The data source for these chatbots is IPEDS (Integrated Postsecondary Education Data System).

IPEDS (Integrated Postsecondary Education Data System)

IPEDS is a comprehensive data source maintained by the National Center for Education Statistics (NCES), which collects data from all primary providers of postsecondary education in the United States. It covers various aspects of postsecondary education, including enrollment, graduation rates, financial aid, institutional characteristics, and more.

Getting Started

Follow these instructions to get the project up and running on your local machine.

Prerequisites

Make sure you have Python 3.11 installed on your system.

1. Cloning the Repository

Clone the repository using the following command:

git clone https://github.com/hemadataworksai/ipedsllm.git

2. Setting up a Virtual Environment

Windows

# Create a virtual environment
python -m venv venv

# Activate the virtual environment
venv\Scripts\activate

macOS/Linux

# Create a virtual environment
python3.11 -m venv venv

# Activate the virtual environment
source venv/bin/activate

3. Installing Requirements

Install the project dependencies using pip:

pip install -r requirements.txt

4. Creating .env File

Create a .env file in the root directory of the project and save the following details:

OPENAI_API_KEY=YOUR_OPENAI_API_KEY
DB_URL=YOUR_DATABASE_URL
LANGCHAIN_TRACING_V2=YOUR_LANGCHAIN_TRACING_V2_SETTING
LANGCHAIN_ENDPOINT=YOUR_LANGCHAIN_ENDPOINT
LANGCHAIN_API_KEY=YOUR_LANGCHAIN_API_KEY

Replace YOUR_OPENAI_API_KEY, YOUR_DATABASE_URL, YOUR_LANGCHAIN_TRACING_V2_SETTING, YOUR_LANGCHAIN_ENDPOINT, and YOUR_LANGCHAIN_API_KEY with appropriate values.

5. Running the Chatbots

To run the Langchain chatbot with Streamlit, use the following command:

streamlit run src/langchain_chatbot/components/main.py

To run the LlamaIndex chatbot with Streamlit, use the following command:

streamlit run src/llamaIndex_chat/components/main.py

ipedsllm's People

Contributors

omkars12 avatar shashankrallapalli25 avatar enggabhishek avatar hemadataworksai 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.