
What is SvectorDB
SvectorDB is a serverless vector database designed specifically for AWS, offering cost-effective vector search capabilities. It allows users to scale from 1 vector to 1 million vectors with ease, handling the heavy lifting so you can focus on your product. The database supports JavaScript, Python, and OpenAPI, and provides a quick start tutorial for easy onboarding.
How to Use SvectorDB
To use SvectorDB, you can create or update an item, query based on a vector, or query based on a key. Here's an example in JavaScript:
// Create or update an item
client.setItem({
databaseId,
key: 'abc',
value: Buffer.from('Hello world!'),
vector: [0.1, 0.1, 0.1, 0.1]
});
// Query based on a vector
client.query({
databaseId,
query: {
vector: [0.5, 0.5, 0.5, 0.5]
}
});
// Query based on key (nearest to existing vector)
client.query({
databaseId,
query: {
key: 'abc'
}
});
Use Cases of SvectorDB
SvectorDB is ideal for various use cases, including:
- Recommendation Engines: Using vectors to represent items and users, recommendation engines leverage vector similarity to suggest relevant items to users based on their preferences.
- Document / Image Search: Transforming documents and images into vectors enables deep meaningful search capabilities by leveraging semantic and visual similarities.
- Retrieval Augmented Generation: Augmenting generative models with context enhances the quality of generated content, presenting a more refined and contextually relevant output.
Features of SvectorDB
-
Hybrid Search
Use Lucene / ElasticSearch style queries to filter results based on key-value pairs.
-
Instant updates
Upserts and deletions are reflected instantly, with no need to worry about eventual consistency.
-
Natively Serverless
Pay per request based pricing, with no provisioning or scaling required.
-
CloudFormation Support
Integrate SvectorDB into your existing CloudFormation templates.
-
Built-in Vectorizers
Use built-in vectorizers for text and images, or bring your own embeddings.
-
Pay per request
Only pay for the requests you make, with no minimum fees or upfront costs.