Skip to content

KenWuqianghao/Obsidian-Cornell-Notes-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obsidian-Cornell-Notes-Generator

Use LLM to generate Obsidian timeline style Cornell notes


Obsidian-Cornell-Notes-Generator

📍 Make Note-Taking Effortless with Obsidian-Cornell Notes Generator!

🚀 Developed with the software and tools below.

template idx


📚 Table of Contents


📍Overview

Obsidian-Cornell-Notes-Generator is an open source project that provides an automated way to generate Cornell-style notes for Obsidian.

Screenshot 2023-05-10 at 17 39 23

🔮 Feautres

Use OpenAI API to generate timeline format Cornell notes from lecture transcript, textbook, slides, etc Screenshot 2023-05-10 at 17 41 36


⚙️ Project Structure

repo
├── gpt_notes.py
├── LICENSE
├── main.py
├── __pycache__
│   ├── gpt_notes.cpython-311.pyc
│   └── main.cpython-311.pyc
├── README.md
└── templates
    └── index.html

2 directories, 7 files

💻 Modules

Root
File Summary Module
gpt_notes.py This code imports the OpenAI API and dotenv library , loads the dotenv file , and sets the OpenAI API key . It then defines two functions : split_prompt ( ) which splits a text into parts and sends them to the gpt_notes.py
main.py This code creates a Flask web application that takes in text input from a user , processes it using the generate_notes function from the gpt_notes module , and returns the processed text as a JSON response . main.py
Templates
File Summary Module
index.html This code creates a web app using Flask that takes in text from a textarea and processes it using an AJAX call . The output is then displayed in a pre element . templates/index.html

🚀 Getting Started

✅ Prerequisites

Before you begin, ensure that you have the following prerequisites installed:

timeline plugin in Obsidian Fill in the OpenAI API key in .env file, make a copy from .env.template

💻 Installation

  1. Clone the Obsidian-Cornell-Notes-Generator repository:
git clone https://github.com/KenWuqianghao/Obsidian-Cornell-Notes-Generator
  1. Change to the project directory:
cd Obsidian-Cornell-Notes-Generator
  1. Install the dependencies:
conda env create --name cornell --file environment.yml
conda activate cornell

🤖 Using Obsidian-Cornell-Notes-Generator

flask --app main run
python -m webbrowser http://127.0.0.1:5000/

You can also just run setup.sh file

bash setup.sh

🤝 Contributing

Contributions are always welcome! Please follow these steps:

  1. Fork the project repository. This creates a copy of the project on your account that you can modify without affecting the original project.
  2. Clone the forked repository to your local machine using a Git client like Git or GitHub Desktop.
  3. Create a new branch with a descriptive name (e.g., new-feature-branch or bugfix-issue-123).
git checkout -b new-feature-branch
  1. Make changes to the project's codebase.
  2. Commit your changes to your local branch with a clear commit message that explains the changes you've made.
git commit -m 'Implemented new feature.'
  1. Push your changes to your forked repository on GitHub using the following command
git push origin new-feature-branch
  1. Create a pull request to the original repository. Open a new pull request to the original project repository. In the pull request, describe the changes you've made and why they're necessary. The project maintainers will review your changes and provide feedback or merge them into the main branch.

🪪 License

This project is licensed under the Apache License 2.0 License. See the LICENSE file for additional info.

About

Use LLM to generate Obsidian timeline style Cornell notes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published