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.0.3.tar.gz (13.5 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.0.3-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rag_pychunk-1.0.3.tar.gz
  • Upload date:
  • Size: 13.5 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.0.3.tar.gz
Algorithm Hash digest
SHA256 41c9a344a8b2950ccb69f88c19f7dcef838d137b9feaf037d656cb1038679f06
MD5 a16304764ec1150e17a540b64024ca17
BLAKE2b-256 25e8a92a4bdf1f9f0269c64fb94a806938afb1aba25b9922a2c19dbf1a42ab04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rag_pychunk-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.2 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.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 768163d547f00b6c87fd68938c2c87ca006f805d7861b4ca10bd1af713bb04fb
MD5 6c46d874f505cce1cf69ecd7675c8968
BLAKE2b-256 43cca80f046793c06ea99f9f8ba48ca151d32d7eb3ede328192db5f7c2ac7a82

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