Skip to content

Commit

Permalink
Merge pull request #109 from n4ze3m/next
Browse files Browse the repository at this point in the history
v1.1.11
  • Loading branch information
n4ze3m authored Jun 3, 2024
2 parents 3868048 + 4a5713d commit 8bcd4ec
Show file tree
Hide file tree
Showing 71 changed files with 2,393 additions and 7,945 deletions.
14 changes: 10 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,27 @@ Thank you for your interest in contributing to Page Assist! We welcome contribut

3. **Install dependencies**

Page Assist uses [Yarn](https://yarnpkg.com/) for dependency management. Install the required dependencies by running the following command in the project root directory:
Page Assist uses [Bun](https://bun.sh/) for dependency management. Install the required dependencies by running the following command in the project root directory:

```
yarn install
bun install
```

4. **Start the development server**

To run the extension in development mode, use the following command:

```
yarn dev
bun dev
```

This will open a browser window with the extension loaded.
This will open a chrome browser window with the extension loaded.

for firefox:

```
bun dev:firefox
```

5. **Install Ollama locally**

Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ Checkout the Demo (v1.0.0):

want more features? Create an issue and let me know.

<!-- ## Installation
### Chrome Web Store
You can install the extension from the [Chrome Web Store](https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo)
Note: You can install the extension on any Chromium-based browser. It is not limited to Chrome. -->

### Manual Installation

Expand Down Expand Up @@ -125,15 +118,17 @@ This will start a development server and watch for changes in the source files.
| Opera ||||
| Arc ||||



## Local AI Provider

- [Ollama](https://github.com/ollama/ollama) (Currently the only supported provider. More providers will be added in the future.)

## Roadmap

- [X] Firefox Support
- [ ] Code Completion support for Web based IDEs (like Colab, Jupyter, etc.)
- [ ] More Local AI Providers
- [ ] More Features
- [ ] More Customization Options
- [ ] Better UI/UX

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "cross-env TARGET=chrome wxt",
"dev:firefox": "cross-env TARGET=firefox wxt -b firefox",
"build": "cross-env TARGET=chrome wxt build",
"build:firefox": "cross-env TARGET=chrome cross-env TARGET=firefox wxt build -b firefox",
"build:firefox": "cross-env TARGET=firefox wxt build -b firefox",
"zip": "cross-env TARGET=chrome wxt zip",
"zip:firefox": "cross-env TARGET=firefox wxt zip -b firefox",
"compile": "tsc --noEmit",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/locale/en/knowledge.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
"submit": "Submit",
"success": "Knowledge added successfully"
},
"noEmbeddingModel": "Please add an embedding model first from the Ollama settings page"
"noEmbeddingModel": "Please add an embedding model from the RAG settings page first"
}
2 changes: 1 addition & 1 deletion src/assets/locale/en/playground.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"formError": {
"noModel": "Please select a model",
"noEmbeddingModel": "Please set an embedding model on the Settings > Ollama page"
"noEmbeddingModel": "Please set an embedding model on the Settings > RAG page"
},
"form": {
"textarea": {
Expand Down
73 changes: 38 additions & 35 deletions src/assets/locale/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,41 +217,6 @@
"label": "Ollama URL",
"placeholder": "Enter Ollama URL"
},
"ragSettings": {
"label": "RAG Settings",
"model": {
"label": "Embedding Model",
"required": "Please select a model",
"help": "Highly recommended to use embedding models like `nomic-embed-text`.",
"placeholder": "Select a model"
},
"chunkSize": {
"label": "Chunk Size",
"placeholder": "Enter Chunk Size",
"required": "Please enter a chunk size"
},
"chunkOverlap": {
"label": "Chunk Overlap",
"placeholder": "Enter Chunk Overlap",
"required": "Please enter a chunk overlap"
}
},
"prompt": {
"label": "Configure RAG Prompt",
"option1": "Normal",
"option2": "Web",
"alert": "Configuring the system prompt here is deprecated. Please use the Manage Prompts section to add or edit prompts. This section will be removed in a future release",
"systemPrompt": "System Prompt",
"systemPromptPlaceholder": "Enter System Prompt",
"webSearchPrompt": "Web Search Prompt",
"webSearchPromptHelp": "Do not remove `{search_results}` from the prompt.",
"webSearchPromptError": "Please enter a web search prompt",
"webSearchPromptPlaceholder": "Enter Web Search Prompt",
"webSearchFollowUpPrompt": "Web Search Follow Up Prompt",
"webSearchFollowUpPromptHelp": "Do not remove `{chat_history}` and `{question}` from the prompt.",
"webSearchFollowUpPromptError": "Please input your Web Search Follow Up Prompt!",
"webSearchFollowUpPromptPlaceholder": "Your Web Search Follow Up Prompt"
},
"advanced": {
"label": "Advance Ollama URL Configuration",
"urlRewriteEnabled": {
Expand Down Expand Up @@ -282,5 +247,43 @@
"manageKnowledge": {
"title": "Manage Knowledge",
"heading": "Configure Knowledge Base"
},
"rag": {
"title": "RAG Settings",
"ragSettings": {
"label": "RAG Settings",
"model": {
"label": "Embedding Model",
"required": "Please select a model",
"help": "Highly recommended to use embedding models like `nomic-embed-text`.",
"placeholder": "Select a model"
},
"chunkSize": {
"label": "Chunk Size",
"placeholder": "Enter Chunk Size",
"required": "Please enter a chunk size"
},
"chunkOverlap": {
"label": "Chunk Overlap",
"placeholder": "Enter Chunk Overlap",
"required": "Please enter a chunk overlap"
}
},
"prompt": {
"label": "Configure RAG Prompt",
"option1": "Normal",
"option2": "Web",
"alert": "Configuring the system prompt here is deprecated. Please use the Manage Prompts section to add or edit prompts. This section will be removed in a future release",
"systemPrompt": "System Prompt",
"systemPromptPlaceholder": "Enter System Prompt",
"webSearchPrompt": "Web Search Prompt",
"webSearchPromptHelp": "Do not remove `{search_results}` from the prompt.",
"webSearchPromptError": "Please enter a web search prompt",
"webSearchPromptPlaceholder": "Enter Web Search Prompt",
"webSearchFollowUpPrompt": "Web Search Follow Up Prompt",
"webSearchFollowUpPromptHelp": "Do not remove `{chat_history}` and `{question}` from the prompt.",
"webSearchFollowUpPromptError": "Please input your Web Search Follow Up Prompt!",
"webSearchFollowUpPromptPlaceholder": "Your Web Search Follow Up Prompt"
}
}
}
88 changes: 88 additions & 0 deletions src/assets/locale/fr/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"pageAssist": "Page Assist",
"selectAModel": "Sélectionnez un modèle",
"save": "Sauvegarder",
"saved": "Enregistrée",
"cancel": "Annuler",
"retry": "Recommencez",
"share": {
"tooltip": {
"share": "Partager"
},
"modal": {
"title": "Partagez le lien vers le chat"
},
"form": {
"defaultValue": {
"name": "Anonyme",
"title": "Chat sans titre"
},
"title": {
"label": "Titre de chat",
"placeholder": "Entrez le titre du chat",
"required": "Le titre de chat est requis"
},
"name": {
"label": "Votre nom",
"placeholder": "Entrez votre nome",
"required": "Votre nom est requis"
},
"btn": {
"save": "Générer un lien",
"saving": "Génération de lien..."
}
},
"notification": {
"successGenerate": "Lien copié dans le presse-papiers",
"failGenerate": "Échec de la génération de lien"
}
},
"copyToClipboard": "Copier dans le presse-papier",
"webSearch": "Recherche sur le Web",
"regenerate": "Régénérer",
"edit": "Modifier",
"saveAndSubmit": "Enregistrer et soumettre",
"editMessage": {
"placeholder": "Tapez un message..."
},
"submit": "Soumettre",
"noData": "Pas de données",
"noHistory": "Pas d'historique de chat",
"chatWithCurrentPage": "Discuter avec la page actuelle",
"beta": "Bêta",
"tts": "Synthèse vocale",
"currentChatModelSettings":"Paramètres actuels du modèle de chat",
"modelSettings": {
"label": "Paramètres du modèle",
"description": "Définissez les options de modèle globale pour tous les chats",
"form": {
"keepAlive": {
"label": "Maintenir en mémoire",
"help": "contrôle combien de temps le modèle restera chargé en mémoire après la demande (par défaut: 5m)",
"placeholder": "Entrer la durée du maintien en mémoire (p. ex., 5 m, 10 m, 1 h)"
},
"temperature": {
"label": "Température",
"placeholder": "Entrez la valeur de la température (par exemple 0,7, 1,0)"
},
"numCtx": {
"label": "Nombre de contextes",
"placeholder": "Entrez la valeur du nombre de contextes (par défaut: 2048)"
},
"seed": {
"label": "Graine",
"placeholder": "Entrez la valeur des semences (par exemple 1234)",
"help": "Reproductibilité de la sortie du modèle"
},
"topK": {
"label": "Top K",
"placeholder": "Entrez la valeur Top K (par exemple 40, 100)"
},
"topP": {
"label": "Top P",
"placeholder": "Entrez la valeur Top P (par exemple 0,9, 0,95)"
}
},
"advanced": "Plus de paramètres du modèle"
}
}
42 changes: 42 additions & 0 deletions src/assets/locale/fr/knowledge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"addBtn": "Ajouter de nouvelles connaissances",
"columns": {
"title": "Titre",
"status": "Statut",
"embeddings": "Modèle d'embedding",
"createdAt": "Créé à",
"action": "actions"
},
"expandedColumns": {
"name": "Nom"
},
"tooltip": {
"delete": "Supprimer"
},
"confirm": {
"delete": "Êtes-vous sûr de vouloir supprimer ces connaissances ?"
},
"deleteSuccess": "Connaissances supprimées avec succès",
"status": {
"pending": "En attente",
"finished": "Terminé",
"processing": "Traitement"
},
"addKnowledge": "Ajouter des connaissances",
"form": {
"title": {
"label": "Titre de la connaissance",
"placeholder": "Entrez le titre de la connaissances",
"required": "Le titre de la connaissance est requis"
},
"uploadFile": {
"label": "Téléverser un fichier",
"uploadText": "Faites glisser et déposez un fichier ici ou cliquez pour téléverser",
"uploadHint": "Types de fichiers pris en charge: .pdf, .csv, .txt, .md, .docx",
"required": "Le fichier est requis"
},
"submit": "Soumettre",
"success": "Les connaissances ont ajouté avec succès"
},
"noEmbeddingModel": "Veuillez d'abord ajouter un modèle d'embedding depuis la page des paramètres de RAG"
}
12 changes: 12 additions & 0 deletions src/assets/locale/fr/option.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"newChat": "Nouveau chat",
"selectAPrompt": "Sélectionnez un prompt",
"githubRepository": "Référentiel GitHub",
"settings": "Paramètres",
"sidebarTitle": "Historique de chat",
"error": "Erreur",
"somethingWentWrong": "Quelque chose s'est mal passé",
"validationSelectModel": "Veuillez sélectionner un modèle pour continuer",
"deleteHistoryConfirmation": "Êtes-vous sûr de vouloir supprimer cette historique ?",
"editHistoryTitle": "Entrez un nouveau titre"
}
29 changes: 29 additions & 0 deletions src/assets/locale/fr/playground.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"ollamaState": {
"searching": "Searching for Your Ollama 🦙",
"running": "Ollama is running 🦙",
"notRunning": "Unable to connect to Ollama 🦙",
"connectionError": "It seems like you are having a connection error. Please refer to this <anchor>documentation</anchor> for troubleshooting."
},
"formError": {
"noModel": "Please select a model",
"noEmbeddingModel": "Please set an embedding model on the Settings > RAG page"
},
"form": {
"textarea": {
"placeholder": "Type a message..."
},
"webSearch": {
"on": "On",
"off": "Off"
}
},
"tooltip": {
"searchInternet": "Rechercher Internet",
"speechToText": "Parole en texte",
"uploadImage": "Téléverser une image",
"stopStreaming": "Arrêtez la diffusion",
"knowledge": "Connaissance"
},
"sendWhenEnter": "Envoyer en appuyant sur Entrée"
}
Loading

0 comments on commit 8bcd4ec

Please sign in to comment.