Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Configurable databases? #28

Open
andrewluetgers opened this issue Jun 18, 2024 · 2 comments
Open

Configurable databases? #28

andrewluetgers opened this issue Jun 18, 2024 · 2 comments
Labels
question Further information is requested

Comments

@andrewluetgers
Copy link

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
Copy link
Collaborator

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 :)

@iwilltry42 iwilltry42 added the question Further information is requested label Aug 5, 2024
@iwilltry42
Copy link
Collaborator

@andrewluetgers FYI: the internal interfaces are quite a bit cleaner now and recently we added the following options:

  • Index: sqlite, postgres
  • Vector: chromem-go, sqlite-vec, pgvector

They're configurable via the KNOW_INDEX_DSN and KNOW_VECTOR_DSN environment variables. Documentation is not available yet, but there's some info in the PRs: #150 & #146

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants