Local vector database for Node.js, file-based storage
Top 62.8% on sourcepulse
Vectra is a local, file-based vector database for Node.js, designed for scenarios requiring fast similarity search on small, static datasets. It offers a developer-friendly alternative to cloud-hosted solutions like Pinecone or Qdrant for use cases such as few-shot learning examples or single-document question answering.
How It Works
Vectra stores indexes as folders on disk, with index.json
containing vectors and indexed metadata. Other metadata is stored separately, keyed by GUID. It supports a subset of MongoDB query operators for metadata filtering, followed by similarity ranking. The entire index is loaded into memory for near-instantaneous querying (estimated 1-2ms), making it unsuitable for large, dynamic datasets like chatbot memory.
Quick Start & Requirements
npm install vectra
text-embedding-ada-002
).createIndex()
.Highlighted Details
vectra-py
) available for cross-language index access.Maintenance & Community
The project appears to be maintained by Stevenic. No specific community channels or roadmap are detailed in the README.
Licensing & Compatibility
The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
Vectra loads the entire index into memory, limiting its suitability for large or dynamic datasets. Namespaces are not directly supported but can be emulated by creating separate indexes. The project is presented as a local solution, implying potential scalability limitations compared to distributed databases.
2 months ago
1+ week