Skip to content

Commit 236043e

Browse files
wip
1 parent c9ef0ec commit 236043e

File tree

4 files changed

+84
-29
lines changed

4 files changed

+84
-29
lines changed

.circleci/FUNDING.YML

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
custom: https://www.buymeacoffee.com/langchainrb

Gemfile.lock

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
PATH
2+
remote: .
3+
specs:
4+
langchainrb_rails (0.1.0)
5+
langchainrb (~> 0.6.19)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
addressable (2.8.5)
11+
public_suffix (>= 2.0.2, < 6.0)
12+
baran (0.1.9)
13+
colorize (0.8.1)
14+
diff-lcs (1.5.0)
15+
json-schema (4.0.0)
16+
addressable (>= 2.8)
17+
langchainrb (0.6.19)
18+
baran (~> 0.1.9)
19+
colorize (~> 0.8.1)
20+
json-schema (~> 4.0.0)
21+
pragmatic_segmenter (~> 0.3.0)
22+
tiktoken_ruby (~> 0.0.5)
23+
zeitwerk (= 2.6.11)
24+
pragmatic_segmenter (0.3.23)
25+
unicode
26+
public_suffix (5.0.3)
27+
rake (13.0.6)
28+
rspec (3.12.0)
29+
rspec-core (~> 3.12.0)
30+
rspec-expectations (~> 3.12.0)
31+
rspec-mocks (~> 3.12.0)
32+
rspec-core (3.12.2)
33+
rspec-support (~> 3.12.0)
34+
rspec-expectations (3.12.3)
35+
diff-lcs (>= 1.2.0, < 2.0)
36+
rspec-support (~> 3.12.0)
37+
rspec-mocks (3.12.6)
38+
diff-lcs (>= 1.2.0, < 2.0)
39+
rspec-support (~> 3.12.0)
40+
rspec-support (3.12.1)
41+
tiktoken_ruby (0.0.6-x86_64-darwin)
42+
unicode (0.4.4.4)
43+
zeitwerk (2.6.11)
44+
45+
PLATFORMS
46+
x86_64-darwin-19
47+
48+
DEPENDENCIES
49+
langchainrb_rails!
50+
rake (~> 13.0)
51+
rspec (~> 3.0)
52+
53+
BUNDLED WITH
54+
2.4.0

README.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
1-
# LangchainrbRails
1+
💎🔗 Langchain.rb for Rails
2+
---
3+
⚡ Building applications with LLMs through composability ⚡
24

3-
TODO: Delete this and the text below, and describe your gem
5+
👨‍💻👩‍💻 CURRENTLY SEEKING PEOPLE TO FORM THE CORE GROUP OF MAINTAINERS WITH
46

5-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/langchainrb_rails`. To experiment with that code, run `bin/console` for an interactive prompt.
7+
:warning: UNDER ACTIVE AND RAPID DEVELOPMENT (MAY BE BUGGY AND UNTESTED)
68

7-
## Installation
9+
![Tests status](https://github.com/andreibondarev/langchainrb_rails/actions/workflows/ci.yml/badge.svg?branch=main)
10+
[![Gem Version](https://badge.fury.io/rb/langchainrb_rails.svg)](https://badge.fury.io/rb/langchainrb_rails)
11+
[![Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/gems/langchainrb_rails)
12+
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/andreibondarev/langchainrb_rails/blob/main/LICENSE.txt)
13+
[![](https://dcbadge.vercel.app/api/server/WDARp7J2n8?compact=true&style=flat)](https://discord.gg/WDARp7J2n8)
14+
15+
16+
Langchain.rb is a library that's an abstraction layer on top many emergent AI, ML and other DS tools. The goal is to abstract complexity and difficult concepts to make building AI/ML-supercharged applications approachable for traditional software engineers.
817

9-
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
18+
## Installation
1019

1120
Install the gem and add to the application's Gemfile by executing:
1221

13-
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
22+
bundle add langchainrb_rails
1423

1524
If bundler is not being used to manage dependencies, install the gem by executing:
1625

17-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
26+
gem install langchainrb_rails
1827

1928
## Usage
2029

21-
TODO: Write usage instructions here
22-
23-
## Development
24-
25-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26-
27-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28-
29-
## Contributing
30-
31-
Bug reports and pull requests are welcome on GitHub at https://github.com/andreibondarev/langchainrb_rails.
32-
33-
## License
34-
35-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
30+
```ruby
31+
require "langchainrb_rails"
32+
```

langchainrb_rails.gemspec

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ Gem::Specification.new do |spec|
88
spec.authors = ["Andrei Bondarev"]
99
spec.email = ["[email protected]"]
1010

11-
spec.summary = "TODO: Write a short summary, because RubyGems requires one."
12-
spec.description = "TODO: Write a longer description or delete this line."
13-
spec.homepage = "TODO: Put your gem's website or public repo URL here."
11+
spec.summary = "Rails wrapper for langchainrb gem"
12+
spec.description = "Rails wrapper for langchainrb gem"
13+
spec.homepage = "https://rubygems.org/gems/langchainrb_rails"
1414
spec.license = "MIT"
15-
spec.required_ruby_version = ">= 2.6.0"
15+
spec.required_ruby_version = ">= 3.0.0"
1616

1717
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
1818

1919
spec.metadata["homepage_uri"] = spec.homepage
20-
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
21-
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20+
spec.metadata["source_code_uri"] = "https://github.com/andreibondarev/langchainrb_rails"
21+
spec.metadata["changelog_uri"] = "https://github.com/andreibondarev/langchainrb_rails/CHANGELOG.md"
22+
spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/langchainrb_rails"
2223

2324
# Specify which files should be added to the gem when it is released.
2425
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -32,7 +33,7 @@ Gem::Specification.new do |spec|
3233
spec.require_paths = ["lib"]
3334

3435
# Uncomment to register a new dependency of your gem
35-
# spec.add_dependency "example-gem", "~> 1.0"
36+
spec.add_dependency "langchainrb", "~> 0.6.19"
3637

3738
# For more information and examples about making a new gem, check out our
3839
# guide at: https://bundler.io/guides/creating_gem.html

0 commit comments

Comments
 (0)