584 Commits

Author SHA1 Message Date
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
64e88bd493 feat: Add support for chat mode in MessageSource component
This commit extends the `MessageSource` component to support the `chat` mode in addition to the existing `rag` mode. This allows the component to handle and display messages from both chat and RAG (Rapid Automated Generation) sources.
2024-11-16 19:33:20 +05:30
n4ze3m
726d3e3427 feat: Improve PageAssistSelect component
This commit enhances the `PageAssistSelect` component with the following improvements:

- Adds a `ref` to the options container to automatically scroll to the selected option when the dropdown is opened.
- Fixes an issue where the `selectedOption` was not being correctly determined when the `options` array was updated.
- Improves the rendering of the selected option, ensuring that the loading state, placeholder, and selected option are displayed correctly.
- Adds a `data-value` attribute to the option elements to facilitate scrolling to the selected option.

These changes improve the overall user experience and functionality of the `PageAssistSelect` component.
2024-11-16 19:33:04 +05:30
n4ze3m
c4d9e3aeed feat: Add page assist select component to header
This commit introduces a new `PageAssistSelect` component to the header, which replaces the previous `Select` component for selecting the active chat model. The new component provides improved functionality, including:

- Ability to display provider icons alongside the model name
- Truncation of long model names to ensure they fit within the available space
- Improved loading state handling
- Ability to refresh the model list on demand

These changes enhance the user experience and make it easier for users to quickly select the desired chat model.
2024-11-16 15:50:11 +05:30
n4ze3m
4292dc45ea feat: Bump application version to 1.3.5
Updates the application version in the wxt.config.ts file from 1.3.4 to 1.3.5.
2024-11-16 15:42:31 +05:30
Muhammed Nazeem
dd6ef49698
Merge pull request #242 from n4ze3m/next
v1.3.4
2024-11-10 19:54:25 +05:30
n4ze3m
5678a0f8b2 feat: Add Korean language support
Add Korean language support to the application. This includes translating the necessary UI elements and adding Korean to the supported language list.
2024-11-10 19:34:38 +05:30
n4ze3m
a96193bbf8 feat: Add error handling for updating message by index
Adds error handling to the `updateMessageByIndex` function to prevent the temporary chat from breaking when an error occurs during the update process. This ensures a more robust and reliable experience for users.
2024-11-10 18:14:44 +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
55f3838b6d feat: Improve ollama2 model fetching
This commit introduces a more efficient approach to fetching ollama2 models, ensuring proper filtering and handling of providers. This enhances the robustness and reliability of the model loading process, streamlining the overall user experience.
2024-11-10 17:30:33 +05:30
n4ze3m
2409ebc75d feat: Add Ollama and Llamafile to dynamic model fetching
Expanded the list of providers for which models are fetched dynamically to include Ollama and Llamafile, removing the need for manual model addition in the user interface for these providers. This simplifies the user experience and ensures users always have access to the latest models without manual intervention.
2024-11-10 15:38:03 +05:30
n4ze3m
a7f461da0b feat: Add multiple Ollama support
Adds support for using Ollama 2 as a model provider. This includes:

- Adding Ollama 2 to the list of supported providers in the UI
- Updating the model identification logic to properly handle Ollama 2 models
- Modifying the model loading and runtime configuration to work with Ollama 2
- Implementing Ollama 2 specific functionality in the embedding and chat models

This change allows users to leverage the capabilities of Ollama 2 for both embeddings and conversational AI tasks.
2024-11-10 15:31:28 +05:30
n4ze3m
c6a62126dd feat: Add LlamaFile support
Add support for LlamaFile, a new model provider that allows users to interact with models stored in LlamaFile format. This includes:

- Adding an icon for LlamaFile in the provider selection menu.
- Updating the model provider selection to include LlamaFile.
- Updating the model handling logic to properly identify and process LlamaFile models.
- Updating the API providers list to include LlamaFile.

This enables users to leverage the capabilities of LlamaFile models within the application.
2024-11-10 14:02:44 +05:30
n4ze3m
f52e3d564a Fix: Handle image URLs in custom model responses
Improves the formatting of image URLs within responses from custom models.  This ensures that image URLs are correctly presented in the user interface.
2024-11-10 13:29:41 +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
8fbdfc35d3 feat(settings): Use selected system prompt in current chat model temp system fallback
Adds support for using the currently selected system prompt in the current model settings. This allows users to fine-tune their chat experience based on their preferred prompt.
2024-11-09 18:09:47 +05:30
n4ze3m
88d0cb68ae feat: Support for new AI capabilities
Adds support for the new AI capabilities in Chrome. This change includes updated logic for checking availability and creating text sessions.
2024-11-09 17:58:23 +05:30
n4ze3m
977723f71f feat: Ability to send image without text 2024-11-09 17:13:23 +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
7c805cfe22 feat: Include generation info in message history
Adds the `generationInfo` field to the message history output to provide more context about the message's origin. This will be helpful for debugging and understanding the provenance of messages.
2024-11-09 15:20:16 +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
Muhammed Nazeem
9ecc8c4e75
Merge pull request #238 from hkjang/korean-localization
add Koraen localization
2024-11-09 13:27:22 +05:30
Abubakar115e
bbbc1523f1 Small spell fixes 2024-11-07 15:32:46 +01:00
hkjang
f61ce71d06 add Koraen localization 2024-11-06 14:32:36 +09:00
Muhammed Nazeem
f803243761
Merge pull request #235 from n4ze3m/next
Bump version to 1.3.3
2024-11-04 13:52:03 +05:30
n4ze3m
fcdfed6e2b Bump version to 1.3.3
Update version number to reflect latest changes.
2024-11-04 13:51:31 +05:30
Muhammed Nazeem
14ee927785
Merge pull request #233 from n4ze3m/next
v1.3.2
2024-11-04 13:44:29 +05:30
n4ze3m
29169f8de1 feat: Add support for LaTeX environments
Support `equation` and `align` environments for LaTeX.

This change enables us to handle more complex LaTeX expressions, including those within environments. By replacing the delimiters for these environments with the appropriate MathJax equivalents, we ensure consistent rendering of mathematical equations within the application.
2024-11-03 23:43:09 +05:30
n4ze3m
55e22ebc48 Fix: Improve LaTeX preprocessing logic
The previous LaTeX preprocessing logic had a bug that could lead to incorrect rendering of mathematical equations. This commit refactors the logic to ensure that both block-level and inline equations are properly handled, improving the accuracy of LaTeX rendering in the application.
2024-11-03 23:39:42 +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
31ca246407 feat: update LaTeX processing
Adds LaTeX processing to the code, enabling the rendering of LaTeX equations within the application. This improves the user experience by allowing users to insert mathematical formulas directly into the content.

The LaTeX processing is implemented using a dedicated utility function that replaces LaTeX tags with appropriate MathJax syntax, ensuring seamless rendering. This change is expected to have a positive impact on the overall user experience, making the application more versatile and convenient for users who work with mathematical content.
2024-11-03 23:38:29 +05:30
n4ze3m
9f1873d37a feat: Improve download button placement
Move the download button to a dedicated container for improved visual clarity and consistency within the modal.
2024-11-02 16:35:06 +05:30
n4ze3m
9089653961 Fix: Handle PDF content in Firefox
Firefox does not allow extensions to run content scripts on PDF pages, so we have to work around this limitation. This commit adds a workaround that retrieves the PDF URL and type directly from the tab. This ensures that the extension can handle PDFs in Firefox while waiting for the bug in Firefox to be fixed.
2024-11-02 16:05:58 +05:30
n4ze3m
3a1ed7a1c1 feat: Add Swedish language support
Adds Swedish language support to the application, including translations and a new language option in the settings.
2024-11-02 16:05:50 +05:30
Muhammed Nazeem
c5f0920b96
Merge pull request #231 from PierreMesure/swedish-translations
Swedish translations
2024-11-02 15:32:21 +05:30
Pierre Mesure
8a6dc51540 Minor formatting fixes on other languages 2024-11-01 17:45:30 +01:00
Pierre Mesure
1564750852 Add Swedish translation 2024-11-01 17:45:08 +01:00
n4ze3m
9e49215836 Bump version to 1.3.2
Minor version bump to reflect the latest updates.
2024-10-27 00:53:21 +05:30
Muhammed Nazeem
66909a9229
Merge pull request #224 from n4ze3m/next
Fix: Capitalize "last7Days" label
2024-10-27 00:43:49 +05:30
n4ze3m
39014fce04 Fix: Capitalize "last7Days" label
Consistent capitalization for sidebar labels.
2024-10-27 00:42:37 +05:30
Muhammed Nazeem
0a15e83b6f
Merge pull request #218 from n4ze3m/next
v1.3.1
2024-10-27 00:31:03 +05:30
n4ze3m
be3f627a0f feat: Add model download button to Hugging Face website
Adds a button to the Hugging Face website allowing users to download models directly from the Page Assist extension. The button appears next to the copy snippet button on model pages. This allows users to easily pull models directly to their local machine for use with Ollama.

The button triggers a confirmation dialog, ensuring users understand the action before proceeding. The process leverages a background script to handle the actual download and displays a message during the download process.
2024-10-26 23:41:29 +05:30
n4ze3m
eb643b7c8c Fix: Update placeholder text for model input
The placeholder text for the model input was previously incorrect. This commit updates the placeholder to reflect the expected format for model names.
2024-10-26 23:41:00 +05:30
n4ze3m
d5df8b5c5f feat: add pin/unpin functionality to chat history
Adds pin/unpin functionality to the chat history sidebar, allowing users to keep important conversations readily accessible. This improves user experience and helps organize past interactions.

This feature includes:
- Pin/unpin buttons in the chat history sidebar.
- Updated database schema to include `is_pinned` field for chat history items.
- Localized translations for pin/unpin actions.
- Updated UI to display pinned items at the top of the list.
2024-10-26 21:10:28 +05:30
n4ze3m
f01f9d0482 feat: Remove language detection
The language detection mechanism has been removed to streamline the translation process and ensure a consistent user experience across all locales. This change aims to simplify the i18n setup and minimize potential complexities associated with dynamic language switching.
2024-10-26 15:47:00 +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
a2f9002b81 feat: enhance playground UI
Refine the Playground's UI to improve user experience:

- Streamline chat window layout for better message readability
- Introduce a knowledge selection dropdown for easier context setting
- Improve image upload integration for a smoother workflow
- Optimize spacing and styling for a more polished visual appearance
2024-10-20 17:45:56 +05:30
n4ze3m
7be993c057 feat: Add HTML preview to code blocks
Adds an HTML preview feature to the code block component, allowing users to view the rendered output of their HTML code snippets. This improves the user experience by providing a more interactive and informative way to understand the code.
2024-10-19 23:54:09 +05:30
n4ze3m
fd5339d90a Bump version to 1.3.1
Minor version bump to reflect updates.
2024-10-19 18:22:33 +05:30