document ingestion, chunking, and preprocessing -Active Record embedding? # A concept of Active Record Embedding class Post < ApplicationRecord has_one_attached :pdf has_embedding :content, service: :mini_llm has_embedding :pdf, service: :openai, chunked: {recursive: true, engine: :baran} end # Usage example post.content_embedding.vector # Returns vector post.pdf_chunks # Return chunks w/ vectors Post.with_similar_content(query, limit: 5) # Search similar records #2 AI Tooling ⚡ github.com/patterns-ai-core/langchainrb ⚡ github.com/ankane/neighbor