86 Commits

Author SHA1 Message Date
n4ze3m
18bc597dc7 feat: Add OCR support to message formatting 2024-12-28 16:27:49 +05:30
n4ze3m
2b08786149 fix: update setLastUsedChatSystemPrompt calls to use newHistoryId.id 2024-12-13 18:08:19 +05:30
n4ze3m
bd08526935 feat: Add support for saving and restoring last used system prompt 2024-12-07 18:15:14 +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
0f75de02cb Fix: Update temporary chat history
This commit addresses an issue where temporary chat history was not being updated correctly when using voice input.

The `setHistoryId` function is now called within the `saveMessageOnError` function to ensure that the history ID is set correctly when a message is saved.
2024-11-10 18:08:05 +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
f8791a0707 feat: Introduce temporary chat mode
Adds a new "Temporary Chat" mode for quick, non-persistent conversations. The new mode is available in the header bar and will trigger a visually distinct chat experience with a temporary background color. Temporary chats do not save to the chat history and are meant for short, one-off interactions. This feature enhances flexibility and provides a more convenient option for users who need to quickly interact with the AI without committing the conversation to their history.
2024-11-09 19:10:34 +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
65ba2ff898 feat: add save and send functionality for user message
Adds a "Save" button to the edit message form in Playground, allowing users to save changes without immediately submitting them. This also introduces a new `isSend` flag to the `onEditFormSubmit` prop, enabling developers to control whether a message should be sent immediately or saved for later submission. This enhances flexibility and user control during the message editing process.
2024-11-03 23:38:41 +05:30
n4ze3m
9cc309e9fd feat: Add code download functionality
Adds a new "Download Code" button to the code block component, allowing users to download the code displayed for offline use.

This feature enhances user convenience and provides a more versatile experience for exploring and utilizing code snippets.
2024-10-26 15:37:02 +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
3d8c8671e1 Merge remote-tracking branch 'origin/next' into openai 2024-10-02 20:10:21 +05:30
n4ze3m
0e44a7ad4b feat: Add temporary system prompt
Adds a new setting that allows users to set a temporary system prompt for the current chat.
This prompt will override the selected system prompt if it exists.
The new setting is available in the "Current Chat Model Settings" modal.
This feature provides a way to quickly experiment with different system prompts without having to change the default setting.
2024-10-02 12:30:52 +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
n4ze3m
824ecf0a8c feat: Add LaTeX support to the markdown renderer
Adds LaTeX support to the markdown renderer using `rehype-katex` for math equations.

- Replaces block-level LaTeX delimiters `\[ \]` with `$$ $$`.
- Replaces inline LaTeX delimiters `\( \)` with `$ $`.
- Preprocesses the message before rendering to ensure correct delimiters.

This improves the rendering of markdown messages containing mathematical expressions, enhancing the user experience.
2024-09-08 11:53:15 +05:30
Colin Campbell
13cbc5b084 stt-to-storage: UX - Move speechToText from state to storage. 2024-08-25 13:37:39 +02:00
n4ze3m
35b8579028 feat: Add Number of Retrieved Documents on RAG 2024-08-20 18:32:01 +05:30
n4ze3m
4ef17ff479 feat: support for GPU layer 2024-08-20 16:11:50 +05:30
n4ze3m
eccf8f8a88 feat: Enable title generation in GeneralSettings component 2024-08-05 00:49:27 +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
f5f0157260 fix: scroll issue playground 2024-07-14 23:13:48 +05:30
n4ze3m
031e74f609 feat: Add option to restore last used model for previous chats 2024-07-08 23:56:25 +05:30
n4ze3m
d41ec2a89c feat: Add Chrome AI support 2024-06-30 20:45:06 +05:30
n4ze3m
5ac03f5123 refactor: Update useScrollAnchor to handle user scrolling and overflow 2024-06-25 21:13:45 +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
f12523d3f0 feat: Add useScrollAnchor hook for scrolling functionality 2024-05-30 23:49:28 +05:30
n4ze3m
d5f7d0a470 fix 2024-05-25 13:46:42 +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
b3a455382c chore: Update version to 1.1.9 and add Model Settings to Ollama settings page 2024-05-23 00:39:44 +05:30
n4ze3m
160927a5a6 chore: Refactor Sidepanel Chat body and form components 2024-05-18 16:25:06 +05:30
n4ze3m
f9f621c920 chore: Update .gitignore and add .idea folder, update npm dependencies, and improve code logic for chat history and knowledge export/import 2024-05-11 19:32:36 +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
9262a5bb7c Update import statements, set TTSEnabled in TTSModeSettings, and fix fetchChatModels error handling 2024-04-13 14:25:09 +05:30
n4ze3m
a3810cd534 Update import statement in local-duckduckgo.ts, prompt.tsx, wxt.config.ts, webui.tsx, PlaygroundChat.tsx, other.tsx, Markdown.tsx, and useMessageOption.tsx 2024-04-11 00:08:20 +05:30
n4ze3m
d6d2eae5ef knownledge preview 2024-04-06 20:18:46 +05:30
n4ze3m
dd496b7b98 Webui chat with x added 2024-04-06 00:30:23 +05:30