Skip to content

Add Qdrant vector database support#553

Open
Aspire-College wants to merge 3 commits into
arakoodev:tsfrom
Aspire-College:codex-qdrant-vector-db
Open

Add Qdrant vector database support#553
Aspire-College wants to merge 3 commits into
arakoodev:tsfrom
Aspire-College:codex-qdrant-vector-db

Conversation

@Aspire-College
Copy link
Copy Markdown

@Aspire-College Aspire-College commented May 24, 2026

/claim #273

Fixes #273.

This adds a Qdrant vector database wrapper to the JavaScript SDK without using Qdrant packages. It follows the existing vector-db style and calls Qdrant REST endpoints directly through axios.

Implemented:

  • Qdrant client creation with optional QDRANT_URL and QDRANT_API_KEY
  • collection creation helper
  • point upsert through PUT /collections/:collection_name/points
  • query through POST /collections/:collection_name/points/query
  • scroll through POST /collections/:collection_name/points/scroll
  • retrieve-by-id through POST /collections/:collection_name/points
  • delete through POST /collections/:collection_name/points/delete
  • Qdrant export from the vector-db package
  • qdrant test folder covering collection creation, upsert, update-by-id, query, scroll, retrieve-by-id, delete, and validation behavior

Verification:

  • TypeScript build passed locally with node node_modules/typescript/bin/tsc -b.
  • Qdrant tests passed locally with Vitest: node node_modules/vitest/vitest.mjs run src/vector-db/src/tests/qdrant/qdrant.test.ts --cache=false (9 tests).

Demo note:

  • This is an SDK-only change with mocked request-shape coverage; the included qdrant Vitest suite demonstrates collection creation, upsert, update-by-id, query, scroll, retrieve-by-id, delete, and validation behavior without requiring a live Qdrant server.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 24, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@Aspire-College
Copy link
Copy Markdown
Author

I have read the Arakoo CLA Document and I hereby sign the CLA

Copy link
Copy Markdown
Author

recheck

Copy link
Copy Markdown
Author

Aspire-College commented May 24, 2026

Demo / verification note for this SDK-only change:

  • Claim page: https://algora.io/claims/cT7VNQG84NQUBKyV
  • Latest commit: eb5546e.
  • Local verification passed after formatting:
    • node node_modules/prettier/bin/prettier.cjs --check src/vector-db/src/index.ts src/vector-db/src/lib/qdrant/qdrant.ts src/vector-db/src/tests/qdrant/qdrant.test.ts
    • node node_modules/typescript/bin/tsc -b
    • node node_modules/vitest/vitest.mjs run src/vector-db/src/tests/qdrant/qdrant.test.ts --cache=false (9 tests)
  • The mocked Qdrant Vitest coverage demonstrates the REST request shapes for collection creation, upsert, update-by-id, query, scroll, retrieve-by-id, delete, and validation behavior without requiring a live Qdrant server.
  • No Qdrant npm package is introduced; the implementation uses direct REST calls through axios as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOUNTY: add support for qdrant vector database in javascript sdk

1 participant