GithubHelp home page GithubHelp logo

intelligencedev / eternal Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 0.0 72.28 MB

Eternal is an experimental platform for machine learning models and workflows.

Home Page: https://intelligence.dev

License: Other

Go 65.36% CSS 5.00% JavaScript 3.44% HTML 24.02% Makefile 1.05% Python 1.13%
ai go htmx inference-api llamacpp ml stable-diffusion

eternal's Issues

Enhance the code block elements - Close the block as its generated and add a copy button.

The current implementation does not correctly format large code blocks as they are being generated due to the closing tag not being generated by LLM. We need a method to close the blocks as the code is being generated so they display properly from the start.

We also need a copy button on the top right of the block so the end user can easily copy the code.

The copy button will need to be implemented in the chat template:

https://github.com/intelligencedev/eternal/blob/main/public/templates/chat.html

Investigate methods for secure code execution. Bonus points if we can run it from the code blocks in the frontend.

We need to implement a code runner solution that is sandboxed in a secure environment. Most applications in this space use a container for this purpose but there may be other options. We should explore an option that does not require a third party OS install such as WASM, but that may not be ideal. Some options to research:

  • WASM
  • MicroVM
  • Container
  • A secure sandbox like Firejail or similar alternatives that works across Linux, Mac and Windows. This is unlikely, but just leaving here for reference.

We also want to be able to execute code generated by the LLM via the frontend by triggering an event using a play button that gets injected into code blocks. That may need to be a separate issue but let's leave the idea here for now.

Configure the CI pipeline for Metal, CUDA, and ROCm.

Eternal currently requires some manual tweaking to build properly due to the lack of proper automation for the build process. This issue serves as a generic reminder that we need to put this on autopilot and have a CI pipeline built to automatically build and publish new releases.

Add image generation tool.

Implement the image generation feature. The obvious choice is Stable Diffusion but there is more competition in that space. We will start with Stable Diffusion, but also investigate how we could potentially add support for other image gen models and backends.

Validate external app dependencies and bootstrap them if not present.

Eternal will require third party application installations for the various tools that will not be embedded. Currently, the web tool requires a headless Chrome install. Chromium would be ideal but it has not been tested yet. We need a method to detect if this app is installed in the end user's OS, and if not, install it.

The Go ChromeDP package may have methods to do this. Otherwise we will implement our own.

If its possible to do this via the package, then the implementation should go in the web tool:

https://github.com/intelligencedev/eternal/blob/main/pkg/web/web.go

Otherwise, a generic method in the main app will suffice to run the process for any third party dependency.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.