trypear / pearai-app

The Open Source AI-Powered Code Editor. A fork of VSCode and Continue.
https://trypear.ai
Other
574 stars 95 forks source link

Chunk a file if the file is too big #46

Closed nang-dev closed 1 month ago

nang-dev commented 1 month ago

Context

We want to be able to tag files that are big (within reason) We should chunk the file to send to the LLM as context

Chunking: Split the code into smaller chunks that are individually within the token limit. Each chunk can be processed separately. This is useful if you need to get insights or analysis on different parts of the code.