53 Commits

Author SHA1 Message Date
Nex Zhu
e8471f1802 feat: add IoD search 2025-02-14 18:17:12 +08:00
n4ze3m
926f4e1a4a feat: implement CustomAIMessageChunk class and enhance reasoning handling in useMessageOption hook 2025-02-08 20:50:48 +05:30
n4ze3m
51804bc9ae fix: bug fix 2025-01-25 15:19:28 +05:30
n4ze3m
97daaf9dc2 feat: Add reasoning UI 2025-01-24 22:29:18 +05:30
n4ze3m
7443d0ab6b feat: Add option to enable chat with website by default 2025-01-18 22:04:39 +05:30
n4ze3m
48b7a2824a feat: Add option to enable internet search by default 2025-01-12 00:19:39 +05:30
n4ze3m
867204604b feat: Add sidebar chat history and functionality 2025-01-11 20:58:45 +05:30
n4ze3m
9674b842ef feat: Add Ollama model settings for tfsZ, numKeep, numThread, and useMlock 2025-01-05 15:11:43 +05:30
n4ze3m
aa49f03f63 feat: Add support for minP, repeatLastN, and repeatPenalty model settings 2024-12-28 17:38:52 +05:30
n4ze3m
18bc597dc7 feat: Add OCR support to message formatting 2024-12-28 16:27:49 +05:30
n4ze3m
77f0cdbb35 fix: remove generateHistory call from useMessage hook 2024-12-01 15:32:51 +05:30
n4ze3m
6d80798da9 feat: Add useMMap option to model settings 2024-11-30 20:17:03 +05:30
n4ze3m
2c12b17dda feat(vision): add vision chat mode
- Add new "vision" chat mode to the application
- Implement the `visionChatMode` function to handle vision-based chat interactions
- Update the UI to include a new button to toggle the vision chat mode
- Add new translations for the "vision" chat mode tooltip
- Disable certain UI elements when the vision chat mode is active
2024-11-23 14:04:57 +05:30
n4ze3m
ca26e059eb feat: Improve memory embedding and vector store handling
This commit includes the following improvements:

- Update the `memoryEmbedding` function to use the `PAMemoryVectorStore` instead of the generic `MemoryVectorStore`. This ensures that the vector store is specifically designed for the Page Assist application.
- Modify the `useMessage` hook to use the `PAMemoryVectorStore` type for the `keepTrackOfEmbedding` state.
- Update the `rerankDocs` function to use the `EmbeddingsInterface` type instead of the deprecated `Embeddings` type.
- Add a new `PageAssistVectorStore` class that extends the `VectorStore` interface and provides a custom implementation for the Page Assist application.

These changes improve the handling of memory embeddings and vector stores, ensuring better compatibility and performance within the Page Assist application.
2024-11-16 19:33:51 +05:30
n4ze3m
9c7a3f5ddc fix: Prevent errors from optional fields in chat history and chunk content
The code was relying on optional fields like `content` in chat history and chunk objects, leading to potential errors if these fields were missing. This commit ensures proper handling of these fields by adding optional chaining (`?.`) for safer access. This prevents crashes and ensures the application handles the missing fields gracefully.
2024-11-10 12:37:48 +05:30
n4ze3m
fd654cafdb feat: Add max tokens setting for model generations
Adds a new setting to control the maximum number of tokens generated by the model. This provides more control over the length of responses and can be useful for limiting the amount of text generated in certain situations.
2024-11-09 16:56:47 +05:30
n4ze3m
9f383a81b6 feat: Add generation info to messages
This commit introduces a new feature that displays generation information for each message in the chat.

The generation info is displayed in a popover and includes details about the model used, the prompt, and other relevant information. This helps users understand how their messages were generated and troubleshoot any issues that may arise.

The generation info is retrieved from the LLM response and is stored in the database alongside other message details.

This commit also includes translations for the generation info label in all supported languages.
2024-11-09 15:17:59 +05:30
n4ze3m
d64c84fc83 feat: Implement Ollama embedding
Adds support for Ollama embedding, enabling the use of Ollama as an embedding model for RAG.

This allows users to leverage Ollama's advanced embedding capabilities for better document understanding and retrieval.
2024-10-13 19:07:01 +05:30
n4ze3m
768ff2e555 feat: Improve model selection and embedding
Refactor embedding models and their handling to improve performance and simplify the process.
Add a new model selection mechanism,  and enhance the UI for model selection, offering clearer and more user-friendly options for embedding models.
Refactor embeddings to use a common model for page assist and RAG, further improving performance and streamlining the workflow.
2024-10-12 23:32:00 +05:30
n4ze3m
ff371d6eef feat: Add OpenAI Provider Selection
Add a provider selection dropdown to the OpenAI settings, enabling users to choose from pre-configured options like "Azure" or "Custom." This streamlines setup and allows for more flexibility in configuring OpenAI API endpoints. The dropdown pre-populates base URLs and names based on the selected provider.

The dropdown also automatically populates base URLs and names based on the selected provider, further simplifying the configuration process.
2024-10-12 16:53:42 +05:30
n4ze3m
192e3893bb feat: support custom models for messages
This commit introduces support for custom models in the message history generation process. Previously, the history would format messages using LangChain's standard message structure, which is not compatible with custom models. This change allows for correct history formatting regardless of the selected model type, enhancing compatibility and user experience.
2024-09-29 23:59:15 +05:30
n4ze3m
53d999a596 feat: Add system and quick prompts on side panel 2024-09-14 12:07:54 +05:30
Colin Campbell
13cbc5b084 stt-to-storage: UX - Move speechToText from state to storage. 2024-08-25 13:37:39 +02:00
n4ze3m
4ef17ff479 feat: support for GPU layer 2024-08-20 16:11:50 +05:30
n4ze3m
ac9c9ca887 feat: copilot context menu for tool 2024-08-03 23:00:57 +05:30
n4ze3m
440ecf86b2 feat: Refactor useMessage hook for website embedding options and improvements 2024-07-23 00:31:15 +05:30
n4ze3m
9521707160 feat: Update useMessage hook with website embedding options and improvements 2024-07-22 00:36:27 +05:30
n4ze3m
d41ec2a89c feat: Add Chrome AI support 2024-06-30 20:45:06 +05:30
n4ze3m
68bd3e651b refactor: Update version to 1.1.12, fix selectedModel spacing, and update meta viewport tags 2024-06-08 23:58:40 +05:30
n4ze3m
8899a42331 feat: Add support for Mammoth library for docx file uploads 2024-05-24 18:26:28 +05:30
n4ze3m
11f5eba3ed chore: Update Lucide icons and improve Current Chat Model Settings 2024-05-23 23:00:42 +05:30
n4ze3m
160927a5a6 chore: Refactor Sidepanel Chat body and form components 2024-05-18 16:25:06 +05:30
n4ze3m
f389e45401 chore: Update message display logic to include cursor indicator 2024-05-08 10:16:10 +05:30
n4ze3m
cbea863cdb Fix whitespace formatting in Markdown.tsx, Message.tsx, useMessage.tsx, and useMessageOption.tsx 2024-04-20 23:50:48 +05:30
n4ze3m
cfcf718769 Remeber recently used model 2024-04-16 23:04:25 +05:30
n4ze3m
c914233610 Update dependencies and fix whitespace formatting in isTTSEnabled function in tts.ts 2024-04-15 11:32:30 +05:30
n4ze3m
36c1cae5fb Update localization messages for Chinese, English, and Japanese languages 2024-04-14 00:42:47 +05:30
n4ze3m
3904a74701 Refactor useMessage hook and remove unused code 2024-03-25 23:17:43 +05:30
n4ze3m
2381588e72 Update dependencies and refactor useMessage hook 2024-03-24 23:56:41 +05:30
n4ze3m
b33ee0366c Migrated to WXT 2024-03-23 14:44:05 +05:30
n4ze3m
b1017062bb Add currentURL and setCurrentURL to useMessage hook 2024-03-09 19:58:48 +05:30
n4ze3m
7a72961562 Update dependencies and add YouTube transcript support 2024-03-08 00:45:28 +05:30
n4ze3m
e0c2c0c745 Remove console.log statements and unused dependencies 2024-03-02 19:50:51 +05:30
n4ze3m
06b32176a9 Add dependencies and update code for PDF parsing and searching 2024-02-25 00:12:46 +05:30
n4ze3m
d7c85537e3 Add key prop to Image component and update speechToTextLanguage state 2024-02-15 00:44:42 +05:30
n4ze3m
a66d8a8418 Update package.json and code files 2024-02-04 13:56:25 +05:30
n4ze3m
5958e10354 Add Sidepanel Settings Body component and update button styles in EmptySidePanel component 2024-02-04 00:56:42 +05:30
n4ze3m
be3a4ed256 Add @langchain/core dependency and update imports***
***Update SidepanelRouting to use dark mode***
***Add image support to PlaygroundMessage component
2024-02-03 17:51:11 +05:30
n4ze3m
4c17d2f52c Fix UI issues and add embedding feature 2024-02-03 11:18:15 +05:30
n4ze3m
84f4205b56 Add chat mode functionality to EmptySidePanel component 2024-02-03 00:33:31 +05:30