projectdavid 1.33.0__py3-none-any.whl → 1.33.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of projectdavid might be problematic. Click here for more details.
- projectdavid/clients/vectors.py +81 -19
- {projectdavid-1.33.0.dist-info → projectdavid-1.33.1.dist-info}/METADATA +1 -1
- {projectdavid-1.33.0.dist-info → projectdavid-1.33.1.dist-info}/RECORD +6 -6
- {projectdavid-1.33.0.dist-info → projectdavid-1.33.1.dist-info}/WHEEL +0 -0
- {projectdavid-1.33.0.dist-info → projectdavid-1.33.1.dist-info}/licenses/LICENSE +0 -0
- {projectdavid-1.33.0.dist-info → projectdavid-1.33.1.dist-info}/top_level.txt +0 -0
projectdavid/clients/vectors.py
CHANGED
|
@@ -494,27 +494,89 @@ class VectorStoreClient:
|
|
|
494
494
|
|
|
495
495
|
def create_vector_vision_store(
|
|
496
496
|
self,
|
|
497
|
-
name: str
|
|
498
|
-
|
|
497
|
+
name: str,
|
|
498
|
+
*,
|
|
499
|
+
vector_size: int = 384,
|
|
500
|
+
distance_metric: str = "Cosine",
|
|
501
|
+
config: Optional[Dict[str, Any]] = None,
|
|
502
|
+
vectors_config: Optional[Dict[str, qdrant.VectorParams]] = None, # ← NEW
|
|
503
|
+
) -> ValidationInterface.VectorStoreRead:
|
|
499
504
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
505
|
+
if not vectors_config:
|
|
506
|
+
vectors_config = {
|
|
507
|
+
# Raw visual embeddings (OpenCLIP ViT-H/14 → 1024-D)
|
|
508
|
+
"image_vector": qdrant.VectorParams(
|
|
509
|
+
size=1024, distance=qdrant.Distance.COSINE
|
|
510
|
+
),
|
|
511
|
+
# Language embeddings of your BLIP-2 captions → 1024-D
|
|
512
|
+
"caption_vector": qdrant.VectorParams(
|
|
513
|
+
size=1024, distance=qdrant.Distance.COSINE
|
|
514
|
+
),
|
|
515
|
+
# Object-region embeddings (YOLO crop + Sentence-BERT) → 1024-D
|
|
516
|
+
"region_vector": qdrant.VectorParams(
|
|
517
|
+
size=1024, distance=qdrant.Distance.COSINE
|
|
518
|
+
),
|
|
519
|
+
# Geo-location unit vectors (RegioNet) → 3-D
|
|
520
|
+
"geo_vector": qdrant.VectorParams(
|
|
521
|
+
size=3, distance=qdrant.Distance.COSINE
|
|
522
|
+
),
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
return self._run_sync(
|
|
526
|
+
self._create_vs_async(
|
|
527
|
+
name,
|
|
528
|
+
vector_size,
|
|
529
|
+
distance_metric,
|
|
530
|
+
config,
|
|
531
|
+
vectors_config,
|
|
532
|
+
)
|
|
533
|
+
)
|
|
534
|
+
|
|
535
|
+
def create_vector_vision_store_for_user(
|
|
536
|
+
self,
|
|
537
|
+
owner_id: str,
|
|
538
|
+
name: str,
|
|
539
|
+
*,
|
|
540
|
+
vector_size: int = 384,
|
|
541
|
+
distance_metric: str = "Cosine",
|
|
542
|
+
config: Optional[Dict[str, Any]] = None,
|
|
543
|
+
vectors_config: Optional[Dict[str, qdrant.VectorParams]] = None, # ← NEW
|
|
544
|
+
) -> ValidationInterface.VectorStoreRead:
|
|
545
|
+
"""
|
|
546
|
+
Admin-only: create a store on behalf of another user.
|
|
547
|
+
Pass `vectors_config` to define a multi-vector schema.
|
|
548
|
+
"""
|
|
549
|
+
if not vectors_config:
|
|
550
|
+
|
|
551
|
+
vectors_config = {
|
|
552
|
+
# Raw visual embeddings (OpenCLIP ViT-H/14 → 1024-D)
|
|
553
|
+
"image_vector": qdrant.VectorParams(
|
|
554
|
+
size=1024, distance=qdrant.Distance.COSINE
|
|
555
|
+
),
|
|
556
|
+
# Language embeddings of your BLIP-2 captions → 1024-D
|
|
557
|
+
"caption_vector": qdrant.VectorParams(
|
|
558
|
+
size=1024, distance=qdrant.Distance.COSINE
|
|
559
|
+
),
|
|
560
|
+
# Object-region embeddings (YOLO crop + Sentence-BERT) → 1024-D
|
|
561
|
+
"region_vector": qdrant.VectorParams(
|
|
562
|
+
size=1024, distance=qdrant.Distance.COSINE
|
|
563
|
+
),
|
|
564
|
+
# Geo-location unit vectors (RegioNet) → 3-D
|
|
565
|
+
"geo_vector": qdrant.VectorParams(
|
|
566
|
+
size=3, distance=qdrant.Distance.COSINE
|
|
567
|
+
),
|
|
568
|
+
}
|
|
516
569
|
|
|
517
|
-
return self.
|
|
570
|
+
return self._run_sync(
|
|
571
|
+
self._create_vs_for_user_async(
|
|
572
|
+
owner_id,
|
|
573
|
+
name,
|
|
574
|
+
vector_size,
|
|
575
|
+
distance_metric,
|
|
576
|
+
config,
|
|
577
|
+
vectors_config,
|
|
578
|
+
)
|
|
579
|
+
)
|
|
518
580
|
|
|
519
581
|
def create_vector_store_for_user(
|
|
520
582
|
self,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: projectdavid
|
|
3
|
-
Version: 1.33.
|
|
3
|
+
Version: 1.33.1
|
|
4
4
|
Summary: Python SDK for interacting with the Entities Assistant API.
|
|
5
5
|
Author-email: Francis Neequaye Armah <francis.neequaye@projectdavid.co.uk>
|
|
6
6
|
License: PolyForm Noncommercial License 1.0.0
|
|
@@ -20,7 +20,7 @@ projectdavid/clients/threads_client.py,sha256=ekzU5w14zftmtmFkiec3NC90Of-_KVSUY1
|
|
|
20
20
|
projectdavid/clients/tools_client.py,sha256=GkCVOmwpAoPqVt6aYmH0G1HIFha3iEwR9IIf9teR0j8,11487
|
|
21
21
|
projectdavid/clients/users_client.py,sha256=eCuUb9qvyH1GUFhZu6TRL9zdoK-qzHSs8-Vmrk_0mmg,13729
|
|
22
22
|
projectdavid/clients/vector_store_manager.py,sha256=q-ZgRQVX_S3nMrKYhmvkVrDjDRzM3ZFzUF55HBGRTe8,12861
|
|
23
|
-
projectdavid/clients/vectors.py,sha256=
|
|
23
|
+
projectdavid/clients/vectors.py,sha256=hJeZS174evrOcZLVtYjnlq1dUFgWx3p-DpVbkfbb4k4,39882
|
|
24
24
|
projectdavid/constants/platform.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
projectdavid/services/logging_service.py,sha256=jdoRL46E42Ar8JFTDOV-xVD67CulcHSN-xhcEqA5CXQ,2643
|
|
26
26
|
projectdavid/synthesis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -34,8 +34,8 @@ projectdavid/utils/monitor_launcher.py,sha256=3YAgJdeuaUvq3JGvpA4ymqFsAnk29nH5q9
|
|
|
34
34
|
projectdavid/utils/peek_gate.py,sha256=5whMRnDOQjATRpThWDJkvY9ScXuJ7Sd_-9rvGgXeTAQ,2532
|
|
35
35
|
projectdavid/utils/run_monitor.py,sha256=F_WkqIP-qnWH-4llIbileWWLfRj2Q1Cg-ni23SR1rec,3786
|
|
36
36
|
projectdavid/utils/vector_search_formatter.py,sha256=YTe3HPGec26qGY7uxY8_GS8lc4QaN6aNXMzkl29nZpI,1735
|
|
37
|
-
projectdavid-1.33.
|
|
38
|
-
projectdavid-1.33.
|
|
39
|
-
projectdavid-1.33.
|
|
40
|
-
projectdavid-1.33.
|
|
41
|
-
projectdavid-1.33.
|
|
37
|
+
projectdavid-1.33.1.dist-info/licenses/LICENSE,sha256=_8yjiEGttpS284BkfhXxfERqTRZW_tUaHiBB0GTJTMg,4563
|
|
38
|
+
projectdavid-1.33.1.dist-info/METADATA,sha256=-tWFpgevsgdM0-J4I38xM8Kp4EWftSflMaugZ6jtyLU,11554
|
|
39
|
+
projectdavid-1.33.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
40
|
+
projectdavid-1.33.1.dist-info/top_level.txt,sha256=kil8GU4s7qYRfNnzGnFHhZnSNRSxgNG-J4HLgQMmMtw,13
|
|
41
|
+
projectdavid-1.33.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|