Comments (3)
Hello @gregpriday,
I'm glad to know you're like the repository. Feel free to submit a PR. Just to let you know, I'm also utilizing this library in conjunction with Laravel. However, I wasn't aware that Scout offered support for Vectors. Maybe we can harness this library to extend support to both Qdrant and Scout.
As for VectorStruct
, the underlying concept is to create a vector and assign it a name - nothing more complex. Perhaps we can establish another Model as VectorsStruct
. We don't need to burden a single class with too many responsibilities. However, my concern is that Qdrant doesn't natively support the upload of vectors in batches. It only allows batch point uploads. Hence, as a client, we provide support for batch points. (https://github.com/hkulekci/qdrant-php/blob/main/src/Models/PointsStruct.php) There's even a convenient static method to create directly from an array. (PointsStruct::createFromArray()).
$points = PointsStruct::createFromArray([
[
'id' => 1,
'vector' => [
'image' => [1, 2, 3]
],
],
[
'id' => 1,
'vector' => [
'image' => [3, 4, 5]
],
]
]);
I haven't been able to fully review your approach yet. But I'll be sure to do so as soon as I can. Meanwhile, let's explore what we can do collaboratively to improve the implementation.
from qdrant-php.
My Scout implementation is still quite early, but I'm putting in a lot of work here - https://github.com/gregpriday/laravel-scout-qdrant - it feels magical having vector search directly in Scout, and it's very cost-effective to just spin up a Forge server, install Qdrant via Docker and have vector search support for free.
My plan is to also create a simple vectorizer Docker container that uses Hugging Face's sentence transformers, which really makes the whole thing self-contained.
I'll work on multi-vector support given your feedback and submit a PR once everything is stable - https://github.com/gregpriday/qdrant-php/tree/feature/multiple-vector-support
I need this for a current project so I'll be working on this quite a lot in the coming weeks. Looking forward to collaborating!
from qdrant-php.
Sounds good. Whenever you're prepared to create a PR, go ahead and submit it, and we can discuss it further. Thanks.
from qdrant-php.
Related Issues (16)
- Endpoints
- We need to define an object for update method parameters
- delete method of Payload class need to be fixed
- Endpoints have some query parameters and they are missing HOT 1
- Handle the text response
- Throw exception according to response HOT 1
- We need to implement PointsBatch class HOT 1
- Add getters for structs. HOT 6
- TypeError encountered in Qdrant\Models\VectorStruct::getName() when the $name attribute is null. HOT 2
- Enhance Flexibility with an `executeRaw` Function HOT 1
- quantization_config parameter need to be accepted by Qdrant\Models\Request\CreateCollection HOT 1
- Create/Update Collection Configurations
- Feature request: Decouple from Guzzle HOT 8
- Create/Delete Shard Key Endpoints
- indexingThreshold HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qdrant-php.