gptscript-ai / knowledge

knowledge for GPTScript
Apache License 2.0
15 stars 5 forks source link

Configurable databases? #28

Open andrewluetgers opened 1 week ago

andrewluetgers commented 1 week ago

Very cool looking project! How about configurable databases? I am partial to LanceDB https://lancedb.github.io/lancedb/#documentation-guide for vector and if I wanted to use a different sql server? I think it would be great to have these options configurable.

iwilltry42 commented 1 week ago

Thanks for the feedback! We currently only support the SQLite and Chromem combo because it's the only truly embedded combination of databases with no external dependencies. Implementing new vectorstores should be fairly straightforward using the interface definition: https://github.com/gptscript-ai/knowledge/blob/main/pkg/vectorstore/vectorstores.go#L7

For LanceDB specifically I don't see any Go bindings, so that may be a bit more work.

We'd happily accept a PR :)