gptscript-ai / knowledge

Knowledge for GPTScript
https://gptscript-ai.github.io/knowledge/
Apache License 2.0
29 stars 14 forks source link

add: use .knowignore in top-level ingestion path if exists #145

Closed iwilltry42 closed 4 weeks ago

iwilltry42 commented 4 weeks ago

If there is a .knowignore file in the root path of the ingested directory, it will be used. Also, this PR now sorts the ignore patterns in increasing priority as expected by the gitignore library:

  1. Default ignore file
  2. User-provided ignore file
  3. User-provided ignore extensions
  4. Default ignore patterns