MuleSoft-AI-Chain-Project / mule-vectors-connector

MuleChain Vectors Connector
https://mulechain.ai/docs/mulechain-vectors/connector-overview
Apache License 2.0
3 stars 7 forks source link

feat: Added Qdrant support #49

Closed Anush008 closed 2 days ago

Anush008 commented 2 days ago

Description

This PR adds support for Qdrant - https://qdrant.tech/ to be used as a vectorstore in Anypoint Studio. Resolves #37.

This is my first time working with Anypoint Studio. So took while to get around things.

Usage

To run Qdrant:

docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant

You'll find a UI at http://localhost:6333/dashboard.

Before adding or retrieving docs, be sure to create a collection as described at https://qdrant.tech/documentation/concepts/collections/#create-a-collection or using the UI. Store name == collection name.

The Java client uses Qdrant's gRPC interface which is at port 6334.

Here's an example config.

Screenshot 2024-11-20 at 12 35 12 PM

Here's a snip from the Qdrant UI after adding a document.

Screenshot 2024-11-20 at 9 37 44 AM
salesforce-cla[bot] commented 2 days ago

Thanks for the contribution! Before we can merge this, we need @Anush008 to sign the Salesforce Inc. Contributor License Agreement.

tbolis-at-mulesoft commented 2 days ago

Please modify the PR to merge into our develop branch. Thx

tbolis-at-mulesoft commented 2 days ago

@Anush008 other stores automatically create the collection when it does not exist, do you think we can add this logic inside the QdrantStore class and invoke the logic from the constructor?