Semantic search (search by meaning) - Rails, OpenAI, langchain.rb, pg_vector

In this video, you'll learn how to use tools like OpenAI, LangChain.rb, and Postgres with pgVector to build semantic search for a Rails app, breaking content into chunks, generating embeddings for each chunk with OpenAI, storing those in Postgres, and then using nearest neighbor search to find relevant chunks for a search query. This allows searching by meaning rather than just matching text exactly.

https://medium.com/@rubyroidlabs/how-to-build-an-ai-chatbot-with-ruby-on-rails-and-chatgpt-9a48f292c37c
https://github.com/ankane/neighbor
https://github.com/andreibondarev/langchainrb
https://github.com/andreibondarev/langchainrb/blob/main/lib/langchain/chunker/recursive_text.rb
https://github.com/IAPark/tiktoken_ruby
https://stdgems.org/matrix/
https://www.youtube.com/@RabbitHoleSyndrome
https://www.youtube.com/@jamesbriggs
https://www.youtube.com/watch?v=NTk8L2de_2Y

#rubyonrails #openai #rails