Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move @mastra/vector-qdrant to @mastra/qdrant #1782

Merged
merged 5 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update qdrant package documentation
- Updated README to use pnpm for installation
- Added comprehensive CHANGELOG with migration guide and history
- Updated import paths in documentation and examples
  • Loading branch information
Your Name committed Feb 7, 2025
commit 191a185a32e4c35a8b2cf3f8914571d6c4e59a03
2 changes: 1 addition & 1 deletion docs/src/pages/docs/rag/vector-databases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Best for teams already using PostgreSQL who want to minimize infrastructure comp
</Tabs.Tab>
<Tabs.Tab>
```ts filename="vector-store.ts" showLineNumbers copy
import { QdrantVector } from '@mastra/vector-qdrant'
import { QdrantVector } from '@mastra/qdrant'

const store = new QdrantVector({
url: process.env.QDRANT_URL,
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/examples/rag/insert-embedding-in-qdrant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { GithubLink } from '../../../components/github-link';
After generating embeddings, you need to store them in a vector database for similarity search. The `QdrantVector` class provides methods to create collections and insert embeddings into Qdrant, a high-performance vector database. This example shows how to store embeddings in Qdrant for later retrieval.

```tsx copy
import { QdrantVector } from '@mastra/vector-qdrant';
import { QdrantVector } from '@mastra/qdrant';
import { MDocument, embed } from '@mastra/rag';

const doc = MDocument.fromText('Your text content...');
Expand Down
30 changes: 29 additions & 1 deletion stores/qdrant/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
# @mastra/vector-qdrant
# @mastra/qdrant

## Migration Notice

This package is the successor to `@mastra/vector-qdrant`. All functionality has been preserved while improving the package structure.

### Key Features
- Qdrant vector store implementation
- Telemetry support via @mastra/core
- Full filter support with type safety
- Automatic batching for large upserts

### Migration from @mastra/vector-qdrant
1. Update your dependencies:
```bash
pnpm remove @mastra/vector-qdrant
pnpm add @mastra/qdrant
```
2. Update your imports:
```typescript
// Old import
import { QdrantVector } from '@mastra/vector-qdrant';
// New import
import { QdrantVector } from '@mastra/qdrant';
```

## Change History

### Previous Changes (from @mastra/vector-qdrant)

## 0.1.0-alpha.26

Expand Down
6 changes: 3 additions & 3 deletions stores/qdrant/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# @mastra/vector-qdrant
# @mastra/qdrant

Vector store implementation for Qdrant using the official @qdrant/js-client-rest SDK with added telemetry support.

## Installation

```bash
npm install @mastra/vector-qdrant
pnpm add @mastra/qdrant
```

## Usage

```typescript
import { QdrantVector } from '@mastra/vector-qdrant';
import { QdrantVector } from '@mastra/qdrant';

const vectorStore = new QdrantVector(
'http://localhost:6333', // url
Expand Down