patterns-ai-core / langchainrb

Build LLM-powered applications in Ruby
https://rubydoc.info/gems/langchainrb
MIT License
1.44k stars 195 forks source link

Add metadata support for documents #859

Open aellispierce opened 4 weeks ago

aellispierce commented 4 weeks ago

Add metadata column to pgvector storage to allow associating additional information with stored documents. This enables tracking metadata like source documents, page numbers, or any other document-specific information.

BREAKING CHANGE: Schema update requires existing tables to be recreated or manually altered to add metadata column

Addresses: https://github.com/patterns-ai-core/langchainrb/issues/318

andreibondarev commented 3 weeks ago

Sorry for the late reply!

@aellispierce Wow! This is amazing! Would you mind adding an entry to the CHANGELOG?

andreibondarev commented 3 weeks ago

I'm wondering what kind of changes would be needed here: https://github.com/patterns-ai-core/langchainrb_rails

aellispierce commented 2 weeks ago

@andreibondarev I've updated the changelog ☺️