projectdavid 1.33.23__py3-none-any.whl → 1.33.25__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 +3 -1
- projectdavid/entity.py +17 -4
- {projectdavid-1.33.23.dist-info → projectdavid-1.33.25.dist-info}/METADATA +1 -1
- {projectdavid-1.33.23.dist-info → projectdavid-1.33.25.dist-info}/RECORD +7 -7
- {projectdavid-1.33.23.dist-info → projectdavid-1.33.25.dist-info}/WHEEL +0 -0
- {projectdavid-1.33.23.dist-info → projectdavid-1.33.25.dist-info}/licenses/LICENSE +0 -0
- {projectdavid-1.33.23.dist-info → projectdavid-1.33.25.dist-info}/top_level.txt +0 -0
projectdavid/clients/vectors.py
CHANGED
|
@@ -92,7 +92,9 @@ class VectorStoreClient:
|
|
|
92
92
|
self.identifier_service = UtilsInterface.IdentifierService()
|
|
93
93
|
|
|
94
94
|
# 🔶 forward kwargs into the upgraded FileProcessor
|
|
95
|
-
self.file_processor = FileProcessor(**(file_processor_kwargs or {}))
|
|
95
|
+
# self.file_processor = FileProcessor(**(file_processor_kwargs or {}))
|
|
96
|
+
# Using Stripped down version for now until we move forward with multi-modal stores
|
|
97
|
+
self.file_processor = FileProcessor()
|
|
96
98
|
|
|
97
99
|
log.info("VectorStoreClient → %s", self.base_url)
|
|
98
100
|
|
projectdavid/entity.py
CHANGED
|
@@ -18,13 +18,14 @@ from .clients.users_client import UsersClient
|
|
|
18
18
|
from .clients.vectors import VectorStoreClient
|
|
19
19
|
from .utils.run_monitor import HttpRunMonitor
|
|
20
20
|
|
|
21
|
-
# Load environment variables from .env file.
|
|
22
|
-
load_dotenv()
|
|
23
|
-
|
|
24
21
|
# Initialize logging utility.
|
|
25
22
|
logging_utility = UtilsInterface.LoggingUtility()
|
|
26
23
|
|
|
27
24
|
|
|
25
|
+
class MissingAPIKeyError(ValueError):
|
|
26
|
+
"""Raised when no API key is provided via arg or ENTITIES_API_KEY env var."""
|
|
27
|
+
|
|
28
|
+
|
|
28
29
|
class Entity:
|
|
29
30
|
def __init__(
|
|
30
31
|
self,
|
|
@@ -39,10 +40,22 @@ class Entity:
|
|
|
39
40
|
|
|
40
41
|
self.file_processor_kwargs = file_processor_kwargs
|
|
41
42
|
|
|
43
|
+
# -------- 1. Resolve key -------------------------------------------------
|
|
44
|
+
self.api_key = (
|
|
45
|
+
api_key
|
|
46
|
+
or os.getenv("ENTITIES_API_KEY") # new variable name
|
|
47
|
+
or os.getenv("API_KEY") # legacy support, if you like
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
if not self.api_key:
|
|
51
|
+
raise MissingAPIKeyError(
|
|
52
|
+
"No API key supplied. Set ENTITIES_API_KEY in your environment "
|
|
53
|
+
"or pass api_key='sk-...' when creating the client."
|
|
54
|
+
)
|
|
55
|
+
|
|
42
56
|
self.base_url = base_url or os.getenv(
|
|
43
57
|
"ENTITIES_BASE_URL", "http://localhost:9000/"
|
|
44
58
|
)
|
|
45
|
-
self.api_key = api_key or os.getenv("API_KEY", "your_api_key")
|
|
46
59
|
|
|
47
60
|
logging_utility.info("Entity initialized with base_url: %s", self.base_url)
|
|
48
61
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: projectdavid
|
|
3
|
-
Version: 1.33.
|
|
3
|
+
Version: 1.33.25
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
projectdavid/__init__.py,sha256=QKjYL0-e4ifiRWyp05lK_dGm0u_jaxo36fyF-c0qqeI,224
|
|
2
2
|
projectdavid/_version.py,sha256=_qiy4uXbgWEU-in9CM9h6tk4Ddhzpvv-HnoAYSuiGg0,100
|
|
3
3
|
projectdavid/decorators.py,sha256=xwjzSNJdg8pOeicdtWEeJeuwAwfrWfM2_cH9tI5O-l0,1730
|
|
4
|
-
projectdavid/entity.py,sha256=
|
|
4
|
+
projectdavid/entity.py,sha256=gTaNoRbic2MCIqTRR3R1MYGIkMGR7gJyS5WL_SkD1wA,6329
|
|
5
5
|
projectdavid/events.py,sha256=m_vu5BgphrM6dpBmnkTXK8jczwyYXO1UwXXI9340vjQ,720
|
|
6
6
|
projectdavid/serializers.py,sha256=OdipJGXGGjRoZBcPkpmHSDgsNptXUg0CMn2TQoCZIOI,1723
|
|
7
7
|
projectdavid/clients/actions_client.py,sha256=9DVkQzRA3wQ7DIHR1ab6VFQYcIkhExAQz1-EK8MEt2c,17006
|
|
@@ -21,7 +21,7 @@ projectdavid/clients/threads_client.py,sha256=ekzU5w14zftmtmFkiec3NC90Of-_KVSUY1
|
|
|
21
21
|
projectdavid/clients/tools_client.py,sha256=GkCVOmwpAoPqVt6aYmH0G1HIFha3iEwR9IIf9teR0j8,11487
|
|
22
22
|
projectdavid/clients/users_client.py,sha256=eCuUb9qvyH1GUFhZu6TRL9zdoK-qzHSs8-Vmrk_0mmg,13729
|
|
23
23
|
projectdavid/clients/vector_store_manager.py,sha256=A-L1rhURKwiRs0EDd1HOuIShOtaC9Hb1yHB4He456Zc,15943
|
|
24
|
-
projectdavid/clients/vectors.py,sha256=
|
|
24
|
+
projectdavid/clients/vectors.py,sha256=BSa2dN5MKhn0bqDrDCD1wey5J9hCPGOJZFMbOUENPlo,32096
|
|
25
25
|
projectdavid/clients/vision-file_processor.py,sha256=19ft9IUeY5x9_22vC4JqndiFlpDYyUn6z1ygv-EV2NE,16852
|
|
26
26
|
projectdavid/clients/vision_vectors.py,sha256=cysPVbUzW3byB82MTqG2X1Iz5ZAe82WTS1JfQcoqVhE,40229
|
|
27
27
|
projectdavid/constants/platform.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -37,8 +37,8 @@ projectdavid/utils/monitor_launcher.py,sha256=3YAgJdeuaUvq3JGvpA4ymqFsAnk29nH5q9
|
|
|
37
37
|
projectdavid/utils/peek_gate.py,sha256=5whMRnDOQjATRpThWDJkvY9ScXuJ7Sd_-9rvGgXeTAQ,2532
|
|
38
38
|
projectdavid/utils/run_monitor.py,sha256=F_WkqIP-qnWH-4llIbileWWLfRj2Q1Cg-ni23SR1rec,3786
|
|
39
39
|
projectdavid/utils/vector_search_formatter.py,sha256=YTe3HPGec26qGY7uxY8_GS8lc4QaN6aNXMzkl29nZpI,1735
|
|
40
|
-
projectdavid-1.33.
|
|
41
|
-
projectdavid-1.33.
|
|
42
|
-
projectdavid-1.33.
|
|
43
|
-
projectdavid-1.33.
|
|
44
|
-
projectdavid-1.33.
|
|
40
|
+
projectdavid-1.33.25.dist-info/licenses/LICENSE,sha256=_8yjiEGttpS284BkfhXxfERqTRZW_tUaHiBB0GTJTMg,4563
|
|
41
|
+
projectdavid-1.33.25.dist-info/METADATA,sha256=i6DR3KY_pePURWRfT9l_bdTn1F-qcF6NX0OCbc87UKU,11555
|
|
42
|
+
projectdavid-1.33.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
43
|
+
projectdavid-1.33.25.dist-info/top_level.txt,sha256=kil8GU4s7qYRfNnzGnFHhZnSNRSxgNG-J4HLgQMmMtw,13
|
|
44
|
+
projectdavid-1.33.25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|