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.2.tar.gz (12.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.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rag_pychunk-1.0.2.tar.gz
  • Upload date:
  • Size: 12.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.2.tar.gz
Algorithm Hash digest
SHA256 aeb5b39a2c68e514aab3a08616fd6fbd701353ba204d9f6f44a253d7087efe78
MD5 d38eaad4df507bb478e4fed9486daee4
BLAKE2b-256 0b50bf9da016fc837cf2a28a198ccd71b4cbf3f1842703ff24e34d50a8c39f0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rag_pychunk-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 451aa0b7b1e86b35e06a4777099f0c941b89c6014693fdeff9daa393e44af4f8
MD5 02cb73c8dc8731ded35fcfa1af0e8f74
BLAKE2b-256 1e3cf49461f2d2a8f82aab755f07dce8e8448c6bdd01f3814e8fa7aee079ded4

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