khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
14.15k stars 704 forks source link

Create different contexts for different files and folders #672

Closed oyarsa closed 5 months ago

oyarsa commented 8 months ago

Thank you for creating Khoj! It works very well for searching my Markdown notes, but I'd like to use it for other things. For example, I have a folder full of research papers, and it would be great to search them. However, I don't want to import them into the same context as my personal notes because that would create too many conflicts and false positives.

It would be interesting to have different contexts or projects with different documents and folders enabled.

debanjum commented 8 months ago

Hey @oyarsa, thanks for the suggestion! Saba is working on the agent feature (see #671). It will allow you to talk to specific agents in a specific conversation sessions. A future iteration of it will add the ability to limit the files/folders an agent has access to. So you can separate chat session into specific contexts (e.g research agent with access to work notes, therapy agent with access to your journal etc.)

Does that match what you were requesting?

oyarsa commented 8 months ago

So you can separate chat session into specific contexts (e.g research agent with access to work notes, therapy agent with access to your journal etc.)

This is precisely what I'm requesting. Thank you. I'm closing this issue and subscribing to the PR for future updates.

sabaimran commented 8 months ago

Hi @oyarsa ! If you don't mind, I'll keep the issue open until we've finally merged the full feature update. Looking forward to properly closing it out and getting your feedback 🙂.

sabaimran commented 5 months ago

Closed with #773, #788