Giter VIP home page Giter VIP logo

cogentlabs's Introduction

Study Plan Generation using LangChain ๐Ÿฆœ๐Ÿ”—

This project generates personalized study plans for students using LangChain and OpenAI's GPT-4 model.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/fisa712/cogentlabs.git
    cd cogentlabs
  2. Create a virtual environment:

    python -m venv env
    source env/bin/activate  # On Windows use `env\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt

Environment Variables

Create a .env file in the root directory of the project and add your OpenAI API key:

Usage

To run the notebook and generate a study plan:

  1. Open the Jupyter notebook:

    jupyter notebook UntitledCogent.ipynb
  2. Run all cells in the notebook:

    • Follow the instructions in the notebook to input student information.
    • The notebook will generate a personalized study plan based on the provided information.

Tasks

Generate Study Plan

  1. Load Dependencies: Ensure all required libraries are imported.

  2. Set Up Environment Variables: Load your API key from the .env file.

  3. Initialize Model: Set up the OpenAI model with your API key.

  4. Define Prompt Template: Create a prompt template for generating the study plan.

  5. Generate Study Plan: Invoke the chain to generate a study plan.

Generate summary of book

  1. using runnables created summary of the book use langchain lcel runnables to get the summary of documents.
  2. utilizing reportlab to generate a pdf document Use reportlab to create a PDF of the generated plan.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

cogentlabs's People

Contributors

fisa712 avatar

Watchers

 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.