Skip to main content

Default template for PDM package

Project description

prepembd

PyPi Tests CI Codecov

Installation

Install prepembd:

python3 -m pip install prepembd --upgrade

Requirements

Why

I've been using markdown now for a long time to take notes in every possible scenario. I even manage my Anki cards with markdown (inka2) so finding relevant information again is paramount. With the advent of semantic search via Embeddings search became so much more powerfull. However, to create the embeddings out of markdown the files have to be prepared in order to reduce noice and create the correct chunk sizes.

This Python script automates the process and creates a json representation of all the markdown files which then can be fed into an embedding model. It is basically just a thin wrapper aroung LangChain combined with some bespoke filter to eliminated noise.

Usage

prepembd tokenize <directory> | tee -a output.ndjson

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

prepembd-0.1.1.tar.gz (51.6 kB view details)

Uploaded Source

Built Distribution

prepembd-0.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file prepembd-0.1.1.tar.gz.

File metadata

  • Download URL: prepembd-0.1.1.tar.gz
  • Upload date:
  • Size: 51.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.12.2

File hashes

Hashes for prepembd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da2c8495d63811ca1c4964f29c5ab37d859fa250be1733f762bee8c79e3e0d8b
MD5 e4bef9be54a3a3df1d1c49211b43bf3d
BLAKE2b-256 667cf94ef922b2b9ea93c0f58639822a3bcd44cbd037bfafee67e412e7ee1875

See more details on using hashes here.

File details

Details for the file prepembd-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: prepembd-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.12.2

File hashes

Hashes for prepembd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6315f0e81212f0536ef9fbadf664b3826efc6b8acd58d6c42384f55837353e3
MD5 5726acdcadb374dd055a2a6443f79a20
BLAKE2b-256 740a6af8573ab6726f5327cb45b8cd1aca4ea267b1da46ed6e6bd8e529285b9c

See more details on using hashes here.

Supported by

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