Advanced
Filter files
Control which files are considered for retrieval
Codebases can contain a lot of irrelevant files that might trip up the LLM. To control which files are added to the retrieval set, you can specify an inclusion or exclusion file in the following format:
where:
ext
specifies a file extensiondir
specifies a directory. This is not a full path. For instance, if you specifydir:tests
in an exclusion directory, then/path/to/my/tests/file.py
will be ignored.file
specifies a file name. This is also not a full path. For instance, if you specifyfile:__init__.py
, then/path/to/my/__init__.py
will be ignored.
To specify an inclusion file (i.e. only index the specified files):
To specify an exclusion file (i.e. index all files, except for the ones specified):
By default, we use the exclusion file sample-exclude.txt.