Skip to content

Show autocomplete suggestions for File Query Filters in Chat on Web App #1182

Open
@debanjum

Description

@debanjum

Describe the feature

Khoj chat supports query filters. These allow you to filter notes, documents to use by Khoj for its response (by filename, date range and words).

Showing auto-complete suggestions for file filters should make it easy to direct Khoj to look at only the specified files in your knowledge base for context.

Use Case

Currently you need type the whole filepath manually in the file query filter. This is pointlessly annoying. Simplifying explicit context addition to chat queries should make it easy to direct Khoj and improve your response quality.

Proposed Solution

When you type file: you should see list of all synced files to auto-complete. This list should be filtered down as you type more letters (e.g file:Task should only show tasks.org or TaskList.md from my documents) as auto-complete suggestions.

Additional Information

Related issues

Link to Discord or Github discussion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions