百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

plain

> 编程语言
开源

Ruby on Plain --- 这是什么 Ruby on Plan rails 引擎 Plain 是一个用作人工智能 (AI) 助手的 Rails 引擎。

99 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Ruby on Plain --- 这是什么 Ruby on Plan rails 引擎 Plain 是一个用作人工智能 (AI) 助手的 Rails 引擎。

Ruby on Plain


What is this Ruby on Plan rails engine

Plain is a Rails engine that serves as an Artificial Intelligence (AI) assistant for your Rails project. It's not just about organizing your codes or managing your project structure, but about providing deeper, more meaningful context to your work, in real-time. It was proudly developed and presented during the esteemed Rails Hackathon 2023.

This is an example of plain operating in Rauversion.com project

https://github.com/chaskiq/plain/assets/11976/87f0d62d-d63a-45d9-91e2-b8878542c4ee

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

ruby
gem "plain-rails"

or development version

ruby
gem "plain-rails", github: "chaskiq/plain", branch: "main"

Overview

Plain is a Rails engine that serves as an Artificial Intelligence (AI) assistant for your Rails project. It's not just about organizing your codes or managing your project structure, but about providing deeper, more meaningful context to your work, in real-time. It was proudly developed and presented during the esteemed Rails Hackathon 2023. Special Kudos to @claunicole, @silva96

Functionality

The most salient feature of Plain is its capability to analyze your project on the go. Using AI, it can instantly provide explanations and insights about various aspects of your Rails project, effectively becoming an intelligent companion during your development process.

Documentation Site

Beyond just an AI assistant, Plain acts as a comprehensive documentation site. What sets Plain apart is its ability to take markdown files and seamlessly integrate them into the documentation site. No more disjointed files and folders, everything is displayed on a beautifully designed, user-friendly site. This enables developers to add, modify, or access documentation effortlessly and intuitively.

Getting started

Install Migrations:

rails plain:install:migrations

Configuration:

Put the following on config/initializers:

config/initializers/plain.rb

…

For the above configuration some environment configuration variables would be required:

bash
QDRANT_URL = 
QDRANT_API_KEY = 
QDRANT_INDEX = 
OPENAI_API_KEY =

You can get a free account on the https://qdrant.tech/. For other vector search please refer to langchainrb repo https://github.com/andreibondarev/langchainrb#using-vector-search-databases-

Load information to Index:

rails plain:load

Mount Doc site:

In config/routes.rb mount the engine:

mount Plain::Engine => "/plain"

in app/assets/config/manifest.js

add

javascript
//= link plain.css

Documentation site.

Plain provides a documentation site that can be populated via markdown files with front-matter support, how it works.

Place your markdowns on a docs folder on your project's root. also you can add a main configuration file, for example:

The documentation site will be served at localhost:3000/plain/docs

Documentation side main config

Put this on /docs/config.yml

yaml
name: "Plain docs"
logo: "logo.png"
chat_envs: 
  - "development"
  - "test"
links:
  -
    name: "Start us on github"
    url: "https://github.com/xxx/rxxx
  - 
    name: "X"
    url: "https://x.com/xxx"
footer:
  legend: "xxxx © Copyright 2023 . All rights reserved."
  links:
    - 
      name: "Twitter / X"
      url: "https://twitter.com/xxx"
    - 
      name: "IG"
      url: "https://instagram.com/xxx"
sections:
  - 
    name: "getting_started"
    position: 1
    items:
      - 
        name: "oli"
        path: "aaa"
        description: "hello there"

Static compilation of documentation site:

If you want to have a static (HTML) version of the documentation site you can run the following command:

bash
rails plain:site:compile

This will create a folder on public/static-plain/docs

Right now the script will assume that the site is at plain/docs so it will hit that endpoint, Eventually we will add some options to customize that.

Development:

bin/rails plain:tailwind_engine_watch --trace

License: MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言