khoj/src/interface/desktop
Debanjum 586654e2af
Allow directly reading web pages, even when SERP not enabled (#676)
### Overview
Khoj can now read website directly without needing to go through the search step first

### Details
- Parallelize simple webpage read and extractor
- Rename extract_content online results field to web pages
- Tweak prompts to extract information from webpages, online results
- Test select webpage as data source and extract web urls chat actors

- Render webpage read in chat response references on Web, Desktop apps
- Pass multiple webpages with their urls in online results context

- Support webpage command in chat API
- Add webpage chat command for read web pages requested by user
- Create chat actor for directly reading webpages based on user message
2024-03-24 16:25:25 +05:30
..
assets Improve styling of chat message bubble in Desktop, Web app 2024-02-23 18:33:56 +05:30
about.html Improve PWA install experience for Khoj on Desktop, Mobile 2024-02-23 18:59:52 +05:30
chat.html Allow directly reading web pages, even when SERP not enabled (#676) 2024-03-24 16:25:25 +05:30
config.html Make out of space errors in the desktop client more obvious 2024-02-26 11:53:36 -08:00
loading-animation.js Replace var declarations with let declarations (#576) 2023-12-29 10:20:48 +05:30
main.js Fix opening external links from confirmation dialog box on desktop app 2024-03-14 02:29:22 +05:30
package.json Release Khoj version 1.7.0 2024-03-15 00:08:32 +05:30
preload.js Indicate in the desktop if the user gets rate limited for indexing 2023-11-25 22:31:23 -08:00
README.md Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
renderer.js Make out of space errors in the desktop client more obvious 2024-02-26 11:53:36 -08:00
search.html Only call search API when pause in typing search query on web, desktop apps 2024-03-10 14:29:24 +05:30
splash.html Show splash screen on starting desktop app 2023-11-03 03:19:08 -07:00
todesktop.json Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
utils.js Add About page for Khoj to Desktop app. Expose it via system tray 2023-11-03 23:59:21 -07:00
yarn.lock Add support for multiple chat sessions in the desktop application (#639) 2024-02-11 16:05:28 +05:30

Run it locally

Prerequisites

Install the runtime dependencies. This command should install all dev dependencies.

yarn add

Run the application

yarn start

Deploying the Electron App

Prerequisites

Install the ToDesktop CLI. Full documentation can be found here: https://www.npmjs.com/package/@todesktop/cli

yarn global add @todesktop/cli

Configure the todesktop.json file. Fill in the id based on the application ID.

Build

This will prompt you to login. It triggers builds for all platforms.

todesktop build

If you get an error saying the command is not found, make sure that your yarn global bin directory is in your PATH environment variable. You can find the location of the global bin directory by running yarn global bin. Add this line to your .bashrc or .zshrc file: export PATH="$PATH:$(yarn global bin)".