Skip to main content

Improve your RAG pipelines for your python repositories.

Project description

It leverages the python programming language syntax to improve:

  1. Chunk content

  2. Relationships between nodes

The chunk size is dynamic:

  • The content of a function will be put together in the same chunk.

  • The content of a method will be put together in the same chunk.

  • Free code will be put together in the same chunk if it is found somewhere in the code.

With code, the relationships parent - child and prev - next are not really usefull, because when defining big projects, there is no particular order in the code itself, so prev-next does not really make sense (only when the definition of the code is really large, for example a big function or big class). It is much more important to know:

If a function in a file X is called in a file Y, when the function of file Y is retrieved the function of file X should be retrieved as well so that the LLM has the complete picture of file Y.

If a method in some class is called somewhere else in the class, it should be noted as well.

These are the kind of relationships that can be obtained to improve the context feeding part for the LLM.

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

rag_pychunk-1.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

rag_pychunk-1.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rag_pychunk-1.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for rag_pychunk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 10001b8cfd9cf5abcd84b4521176226a088de7aabdbb9ade48894c974e0d6dc3
MD5 d76679cfcd510d8e1c4498740322d13d
BLAKE2b-256 1189567c43e9f012b1347aea8f3d5d09a11c93e73b51c7c197a48dd6fe384add

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rag_pychunk-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for rag_pychunk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db0826ff19567a07491bf5e20020de6b51e513a7925a14695b531b236d46db6f
MD5 40a653a739628cbdebdff0d9d2cd1d90
BLAKE2b-256 8b14db32ce92b04bfe7bb47fefbedbf62e9409a2be108c97a2fb4995bdd68144

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