AllYourBot / hostedgpt

An open version of ChatGPT you can host anywhere or run locally.
MIT License
362 stars 199 forks source link

Implement a model for storing the various bookmarks that are to be "remembered" #451

Open krschacht opened 3 months ago

krschacht commented 3 months ago

From this Discussion #450

I think success for this PR will be fixtures that create some Post and successfully search for them. Basically:

concerns/searchable_test.rb Unit tests that call the various search methods (e.g. via keyword and via vector search)

One notable thing is that I believe generating the vectors will require calling the OpenAI API, and they probably get stored in some extra database table that langchainrb_rails creates. We should probably pre-create these vectors as fixtures since we won't want the tests to call the APIs.