⚡ Building applications with LLMs through composability ⚡
👨💻👩💻 CURRENTLY SEEKING PEOPLE TO FORM THE CORE GROUP OF MAINTAINERS WITH
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.
Install the gem and add to the application's Gemfile by executing:
bundle add langchainrb_rails
If bundler is not being used to manage dependencies, install the gem by executing:
gem install langchainrb_rails
rails generate langchainrb_rails:pinecone --model=Product --llm=openai
Available --llm
options: cohere
, google_palm
, hugging_face
, llama_cpp
, ollama
, openai
, and replicate
. The selected LLM will be used to generate embeddings and completions.
The --model
option is used to specify which ActiveRecord model vectorsearch capabilities will be added to.
Pinecone Generator does the following:
- Creates the
config/initializers/langchainrb_rails.rb
initializer file - Adds necessary code to the ActiveRecord model to enable vectorsearch
- Adds
pinecone
gem to the Gemfile