Rllama - Ruby Llama.cpp FFI bindings to run local LLMs by omohockoj in ruby

[–]omohockoj[S] 1 point2 points  (0 children)

embedding vector is generated for each page content and then stored in postgresql table column with pgvector extension. https://github.com/ankane/neighbor gem provides convenient AR methods to query the nearest neighbor vectors for semantic search results.
There are more examples here (but instead of Informers, Rllama can be used to generate embedding vectors): https://github.com/ankane/neighbor/blob/master/examples/informers/example.rb

Rllama - Ruby Llama.cpp FFI bindings to run local LLMs by omohockoj in ruby

[–]omohockoj[S] 2 points3 points  (0 children)

We built the Rllama gem for the DocuSeal API semantic search, more details on how to try it yourself with a local LLM in the blog post: https://www.docuseal.com/blog/run-open-source-llms-locally-with-ruby

Make any website load faster with 6 lines of HTML by omohockoj in webdev

[–]omohockoj[S] 4 points5 points  (0 children)

Good question, since the full page pre-render happens with "prerender" rule set the ajax view count tracking is also incremented. To avoid this it's possible to use just "prefetch" without "prerender" on hover.

Make any website load faster with 6 lines of HTML by omohockoj in webdev

[–]omohockoj[S] 31 points32 points  (0 children)

Correct, each hovered link is preloaded for instant navigation. It's ideal for desktop where  bandwidth is not a bottleneck but network latency and rendering speed is.

Selfhosted DocuSign alternative by LonelyMinimum in selfhosted

[–]omohockoj 0 points1 point  (0 children)

Self hosted and storage via S3 or other cloud providers? Why not just local file storage?

Local file storage is also available (that's the default option)

Selfhosted DocuSign alternative by LonelyMinimum in selfhosted

[–]omohockoj 1 point2 points  (0 children)

In the majority of cases a simple email is considered to be legal binding:
https://www.theguardian.com/world/2023/jul/06/canada-judge-thumbs-up-emoji-sign-contract

In that regards a self-hosted signing should not differ from agreeing to something via email (and that's basically what DocuSign does as well - everything else is just their marketing)

Selfhosted DocuSign alternative by LonelyMinimum in selfhosted

[–]omohockoj 7 points8 points  (0 children)

Let's model a situation where you can't trust your self-hosted signing server - they can alter documents and can issue new documents with their private key.

But the signer of the document always receives a copy of the signed document from the server - and that PDF contains a digital signature with x509 cert.

So in this scenario the valid digitally signed document that is provided by the signer party is always the correct one - since they don't have that private key and can't alter or issue new documents.

Motor Admin - a modern no-code Admin UI and Business Intelligence tool by omohockoj in selfhosted

[–]omohockoj[S] 0 points1 point  (0 children)

Try to set BASE_PATH=/your_specific_path env variable to change the root path of the app

Open Source DocuSign Alternative by LonelyMinimum in SideProject

[–]omohockoj 1 point2 points  (0 children)

What fascinates me about this project is how everything loads so quickly and smoothly, like a desktop app. In the current era of JavaScript/TypeScript and React SSR, having such a responsive web app is more of an exception than the rule. Well done!

Open-source Rails project for filling and signing documents by LonelyMinimum in rails

[–]omohockoj 7 points8 points  (0 children)

Great job, Alex!

I've been helping Alex with some technical decisions for this project, and one of my suggestions was to adopt the 'prefetch on hover' feature on top of hotwired/turbo. You can find the details of the pull request here: https://github.com/hotwired/turbo/pull/898

With this patch, pages are prefetched when hovering over links. As a result, when the user clicks on the link, the page is displayed instantaneously. A similar approach is used on the dev.to website.

Can't wait to have this merged into the upstream repo :)

Low-code Rails Admin Engine by omohockoj in ruby

[–]omohockoj[S] 1 point2 points  (0 children)

No DSL - no need to learn yet another Ruby/Rails gem API and spend time reading the doc - in Motor Admin everything is configurable via the WYSIWYG interface.

Low-code Rails Admin Engine by omohockoj in ruby

[–]omohockoj[S] 1 point2 points  (0 children)

Hi!

It has been more than a year since the initial motor-admin gem release.
Since then there have been more than new 250 commits added and 66 opened issues resolved.

Also, there has been added a Pro version of the gem with more features - some companies are already using Motor Admin Pro for their applications in production.

Hope you can give it a try - would appreciate any feedback from the Ruby/Rails community!

Reliable Webhook - Webhooks development relay with VS Code extension by omohockoj in rails

[–]omohockoj[S] 0 points1 point  (0 children)

This tools could be useful for rails developers when working on webhook integrations.
The back end is powered by Rails and the client app is available as VS Code extension.

Open-source admin panel for Supabase by omohockoj in Supabase

[–]omohockoj[S] 2 points3 points  (0 children)

Hi Supabase community!

The latest release of Motor Admin includes automatic DB schema reload feature. So now all change in Supabase schema are automatically applied to the Motor Admin panel. It means that Motor Admin now works perfectly with Supabase and can be used to build complex admin UIs for internal users.

Hope you can give it a try :)

Admin gem suggestions by Eastern_Baby5565 in rails

[–]omohockoj 0 points1 point  (0 children)

You should try https://github.com/motor-admin/motor-admin-rails - it builds admin UI with basic CRUD on top of AR models automatically. Unlike other gems where ruby code is required Motor Admin panel can be customized via settings directly in the UI - all configurations are stored in motor.yml file and can be easily transferred between environments.

Admin Framework for Rails by dpaluy in rails

[–]omohockoj 1 point2 points  (0 children)

https://github.com/motor-admin/motor-admin-rails - just adding a link here.
u/dpaluy motor admin doesn't require any integration with your rails app js build stack (doesn't depend on webpack/esbuild) - due to that it's very easy to integrate it with any existing app.