Skip to main content

No project description provided

Project description

AGENTIC CHUNKER

Installation

pip install agentic-chunker

Usage

from agentic_chunker import AgenticChunker
import markdown
import os

file_path = "test_files/pronoun_dep.md"
api_key = os.environ.get('OPENAI_APIKEY')
with open(file_path, 'r', encoding='utf-8') as f:
    md_content = f.read()
text = markdown.markdown(md_content)
chunker = AgenticChunker(api_key=api_key, model="gpt-4o-mini")
chunks = chunker.agentic_chunking(text, '.')

Dependencies

  • openai

Contributing

Contributions to AgenticChunker are welcome! Please make sure to follow the code style and conventions used in the project. If you have any suggestions or improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the GPL-3.0 .


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

agentic_chunker-0.0.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

agentic_chunker-0.0.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file agentic_chunker-0.0.2.tar.gz.

File metadata

  • Download URL: agentic_chunker-0.0.2.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for agentic_chunker-0.0.2.tar.gz
Algorithm Hash digest
SHA256 36b8e1a8163eec1e2e36c5b7e5938ea31b06c5c49c907330bf99cb98cbc5a5ba
MD5 5d1d7a9cade03496baf814d7cf49a7cf
BLAKE2b-256 3073a991306f608c518b7d2325ee849e507e5ff892d472e77d5510e606b14187

See more details on using hashes here.

File details

Details for the file agentic_chunker-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for agentic_chunker-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6d8c40b726ef28f778328d2d7f5ebe9113980dfdcc3777e3f4f46c8e6962f3d
MD5 35e6777c07b5c5376675287c0f53c368
BLAKE2b-256 9f7b974e00a7eade22965ef5ff227f37c30dcd4f8cc7ffdcbfee1c48d3f323ec

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