BoxcarsAI / boxcars

Building applications with composability using Boxcars with LLM's. Inspired by LangChain.
MIT License
434 stars 39 forks source link

add PgVector Vector Store #68

Closed francis closed 1 year ago

jaigouk commented 1 year ago

I guess https://github.com/ankane/neighbor is the fastest way to add pgvector to activerecord

I was not able to find a compatible gem for rom.rb so I created https://github.com/jaigouk/rom-neighbor but it is more like a place holder as of now.

francis commented 1 year ago

That would be fine for Active Record.

I am also trying to keep things running from just Ruby without Active Record. I think this should be possible to follow how you build the current vector store. Does that seem possible to you?

jaigouk commented 1 year ago

https://github.com/pgvector/pgvector-ruby would be the gem to focus for that case in my opinion.

adding cube and vector types was not straight forward and then i postponed to continue for rom-sql

francis commented 1 year ago

Ok @jaigouk let me know if I can help in some way.

jaigouk commented 1 year ago

I will start looking into this in this weekend

jaigouk commented 1 year ago

https://github.com/BoxcarsAI/boxcars/pull/80 is ready for review