Stevenic / vectra

Vectra is a local vector database for Node.js with features similar to pinecone but built using local files.
MIT License
321 stars 29 forks source link

Define generic TMetadata once for the entire index #44

Closed ecwyne closed 2 months ago

ecwyne commented 4 months ago

This allows TMetadata to be defined once per instance of LocalIndex.

Stevenic commented 2 months ago

There are a couple of improvements that need to be made to this but the idea is solid. I'll make the fixes/improvements after I merge. Thanks!

Stevenic commented 2 months ago

@ecwyne I just needed to fix a bug (LocalDocumentIndex extends ItemIndex with metadata) and I added a feature that lets you still optionally specify per/item schema.