Why aren't all of my files being sent? And are they truncated? #1155
-
I've been trying to use copilot chat with several medium-size code bases and I've been a bit frustrated with the results. The big thing that I really want from an LLM in neovim is the ability to analyze and answer questions about the overall structure of the code in a project. To that end, what I've been trying to do is something like
I've used this with several projects, and for whatever reason, either copilot chat doesn't actually send all of the files to the LLM, or the LLM chooses to ignore most of the files. Typically the LLM will answer with a fairly superficial answer to my question, and then list its references, which are never more than 6-8 of the files I put in the context (typically 20-30). Also, when I look at the context, it says that all of the files are "truncated". Is that how they're being sent to the LLM? Or is that just for listing the context? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yes, it doesnt send all the files. Ignore the truncation, that is just for display. It does filtering because context is limited, it can do truncation if the files are too big. What you see in references after is what was actually sent. The filtering is done based on the query and keywords in query and th most relevant files are selected, so if your question is too broad then the filtering wont rly work. See #1015 for more context |
Beta Was this translation helpful? Give feedback.
-
added option to enable/disable resource processing, disabled by default. This behaviour is very useful but can also be very confusing obviously, so i made it optional |
Beta Was this translation helpful? Give feedback.
Anyways, just some feedback on an otherwise great tool. I'm going to close this discussion.