к каталогу

📦 langchainrb/ patterns-ai-core

Build LLM-powered applications in Ruby

Открыть на GitHubобновлён 2мес назад
Звёзды
2.0k
Форки
262
За неделю
За месяц
Рост %
Язык
Ruby

Установка и запуск

Installation

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

bundle add langchainrb

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

gem install langchainrb

Additional gems may be required. They're not included by default so you can include only what you need.

Usage

require "langchain"

Usage

All LLM classes inherit from Langchain::LLM::Base and provide a consistent interface for common operations:

  1. Generating embeddings
  2. Generating prompt completions
  3. Generating chat completions

Из README репозитория · полный README на GitHub

Категории

Теги

agentsai-agentsartificial-intelligencemachine-learningmlrubymlvector-search