khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.63k stars 640 forks source link

[IDEA] Support exclusion file filters #728

Closed debanjum closed 1 month ago

debanjum commented 4 months ago

Describe the feature you'd like

Ability to exclude files or folders from being used by Khoj for a specific chat message

Example message: "Where did jeremy grow up? -file:/home/susan/*.md" should result in exclude susan's markdown notes when looking up answers

Khoj currently only supports inclusion file filters like "Where did jeremy grow up? file:/home/jeremy/*.md"

ashanviii commented 4 months ago

Hey @debanjum I'd like to work on this issue. If it's still unassigned, could you please assign it to me?

debanjum commented 3 months ago

Hi @ashanviii , that'd be great! Let us know if you need any help with implementing the feature? Please refer to the docs for contributing and the implementation of exclusion filters for the word filter to get some direction. And feel free to suggest edits to the documentation and ask for any help if you're stuck

olanna12 commented 3 months ago

Hi @debanjum ! Is this item still available to work on? I would like to have it assigned to me. Thanks!

sabaimran commented 3 months ago

@olanna12 , do go for it. Given @ashanviii has unassigned themselves, I'm assuming it's up for grabs.

srikary12 commented 3 months ago

The file needs to be excluded, right. file filter needs to be updated

srikary12 commented 3 months ago

I'm working on this file-exclusion. Feel free to contribute or suggest changes

sabaimran commented 3 months ago

@olanna12 , are you working on this? If not, @srikary12 can take it up. Let's wait a day or two for olanna12 to respond before changing the assignment.

srikary12 commented 3 months ago

@sabaimran Can I take this up?

sabaimran commented 3 months ago

Sure, transferring to @srikary12 since others haven't responded. Let me know if you have questions!

shantanuSakpal commented 2 months ago

hey @sabaimran , i see the pull request has not been merged since a month. whats the status?

srikary12 commented 2 months ago

@shantanuSakpal, I'm fixing some issues on the PR. I was occupied last few days. Will try to fix the issues by this weekend.