Skip to main content

a CLI that lets you chat with your markdown notes

Project description

MDChat

Tests

A CLI tool that allows you to chat with your markdown notes. MDChat uses a large language model (LLM) and a method called "Retrieval Augmented Generation" to allow you to have intelligent conversations with an expert on your content.

The primary goal of this project is to be both easy to get started with and educational to what modern AI systems can achieve. There are lots of tools like this out there but, in my opinion, they get a bit too into the weeds on the tech or require too much setup.

Getting started

To get started with MDChat you just need to install it, configure it, and get to chattin!

pip install mdchat

Then you can point mdchat at your notes through th interactive config and select a model (GPT-4 is more accurate, GPT-3.5-turbo is much cheaper and faster)

mdchat config

After that's done, all you need to do is start a chat with your notes! You can start a new chat thread with the following command:

mdchat chat

Or if you want to chat with a specific note

mdchat chat --file "/path/to/your/file.md"

Key Features

  • Allows you to "chat" with any folder of markdown files or a single markdown file.
  • Answers will include "sources" to the notes used in generating them when possible.
  • summarizing the most recent notes on a certain topic (given your notes are dated)
  • summarizing what you've been working on in the last day, or week (given your notes are dated)
  • Making novel connections on topics you previously hadn't thought were related

Contributing

MDChat is open-source and open to contributions! if you're looking to contribute to this project please:

  • Create an issue to discuss your idea
  • Fork this repo
  • Create a new branch for your change
  • Make the chnage discussed in your issue
  • Send a pull request

Installing dependencies

poetry lock
poetry install

Running the CLI during development

poetry run mdchat <your-command>

Running tests

poetry run pytest

License

MDChat is released under the MIT License

Project details


Download files

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

Source Distribution

mdchat-1.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdchat-1.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file mdchat-1.1.0.tar.gz.

File metadata

  • Download URL: mdchat-1.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for mdchat-1.1.0.tar.gz
Algorithm Hash digest
SHA256 272e617fecd4b45f267fc3d5e48680386f174093be868caf988a821cac152429
MD5 82b91a0068a19f04d103a3005e6a6538
BLAKE2b-256 4eb67150638cd05f8585a64e71e7476e7fa374371eb1ebb0b039dee4d7ff6876

See more details on using hashes here.

File details

Details for the file mdchat-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mdchat-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for mdchat-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0a017d003e33f8b5c1c0a040df292a18f1077a2efc2baaafc6620268bd7ef5
MD5 e93f93939d4ac5eaec702d74fe78e8be
BLAKE2b-256 032d4ca67942e17a1e6ef0eaf59a9c4932cfd80910d6b07c87c91d26f0775dc2

See more details on using hashes here.

Supported by

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