From fe25ffb4796cb1514c9dbef4277dedba9701f272 Mon Sep 17 00:00:00 2001 From: Mauve Signweaver Date: Mon, 11 Nov 2024 17:50:00 -0500 Subject: [PATCH] Add LLM-Appgen example app --- docs/ai.md | 2 +- docs/examples/llm-appgen/LICENSE | 21 ++ docs/examples/llm-appgen/README.md | 14 + docs/examples/llm-appgen/index.html | 410 ++++++++++++++++++++++++++++ docs/index.md | 1 + explore.md | 3 +- 6 files changed, 449 insertions(+), 2 deletions(-) create mode 100644 docs/examples/llm-appgen/LICENSE create mode 100644 docs/examples/llm-appgen/README.md create mode 100644 docs/examples/llm-appgen/index.html diff --git a/docs/ai.md b/docs/ai.md index 0983a5d..1a93626 100644 --- a/docs/ai.md +++ b/docs/ai.md @@ -73,7 +73,7 @@ You can configure your settings in your `.agregorerc` file which you can open wi "enabled": true, "baseURL": "http://127.0.0.1:11434/v1/", "apiKey": "ollama", - "model": "phi3:3.8b-mini-4k-instruct-q4_0" + "model": "qwen2.5-coder" } } ``` diff --git a/docs/examples/llm-appgen/LICENSE b/docs/examples/llm-appgen/LICENSE new file mode 100644 index 0000000..862f40c --- /dev/null +++ b/docs/examples/llm-appgen/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Mauve Signweaver + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/examples/llm-appgen/README.md b/docs/examples/llm-appgen/README.md new file mode 100644 index 0000000..b209db7 --- /dev/null +++ b/docs/examples/llm-appgen/README.md @@ -0,0 +1,14 @@ +# llm-appgen +Example Agregore app for generating web pages with local LLMs + +## Aproach + +- Single HTML page, vanilla JS +- Prompt app, preview in iframe +- multi-shot approach + - Plan + - Generate Title / file name + - HTML + - JavaScript + - CSS +- Upload to hyperdrive \ No newline at end of file diff --git a/docs/examples/llm-appgen/index.html b/docs/examples/llm-appgen/index.html new file mode 100644 index 0000000..f42cdd5 --- /dev/null +++ b/docs/examples/llm-appgen/index.html @@ -0,0 +1,410 @@ + +Local LLM Appgen + + + + + + +
+ + 🔗Link + All Apps + +
+ + +
+ +
+ \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 137866b..0d38968 100644 --- a/docs/index.md +++ b/docs/index.md @@ -23,6 +23,7 @@ Documentation for P2P protocol handlers that are supported by Agregore. A great - [Theme Builder](./examples/themebuilder) - [Browser Development Environment V3](./examples/browser-devenv-v3/) - [IPFS Gallery](./examples/ipfs-gallery/) +- [LLM App Generator](./examples/llm-appgen/) ### Tutorials: diff --git a/explore.md b/explore.md index 5da866d..8a1703d 100644 --- a/explore.md +++ b/explore.md @@ -13,6 +13,7 @@ Feel free to [submit a pull request](https://github.com/AgregoreWeb/website/) on - [Sutty CMS, static site generator with dweb publishing](https://sutty.nl/en/) - [P2Pad Code Editor](/docs/examples/p2pad/) - [Distributed Press Social Reader](//reader.distributed.press/) +- [LLM App Generator](/docs//examples/llm-appgen/) ### Extensions: @@ -25,7 +26,7 @@ Feel free to [submit a pull request](https://github.com/AgregoreWeb/website/) on ### Magazines -- [COMPOST Issue One](ipns://one.compost.digital) and [Issue Two](ipns://two.compost.digital) +- [COMPOST Issue One](//one.compost.digital) and [Issue Two](//two.compost.digital) ### Tutorials