ragaai-catalyst 1.0.8b4__py3-none-any.whl → 1.0.8.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.
- ragaai_catalyst/ragaai_catalyst.py +11 -11
- {ragaai_catalyst-1.0.8b4.dist-info → ragaai_catalyst-1.0.8.1.dist-info}/METADATA +1 -1
- {ragaai_catalyst-1.0.8b4.dist-info → ragaai_catalyst-1.0.8.1.dist-info}/RECORD +5 -5
- {ragaai_catalyst-1.0.8b4.dist-info → ragaai_catalyst-1.0.8.1.dist-info}/WHEEL +1 -1
- {ragaai_catalyst-1.0.8b4.dist-info → ragaai_catalyst-1.0.8.1.dist-info}/top_level.txt +0 -0
@@ -54,16 +54,19 @@ class RagaAICatalyst:
|
|
54
54
|
|
55
55
|
self.api_keys = api_keys or {}
|
56
56
|
|
57
|
-
if self.api_keys:
|
58
|
-
self._upload_keys()
|
59
|
-
|
60
57
|
if base_url:
|
61
58
|
RagaAICatalyst.BASE_URL = base_url
|
62
59
|
try:
|
63
60
|
self.get_token()
|
64
61
|
os.environ["RAGAAI_CATALYST_BASE_URL"] = base_url
|
65
62
|
except requests.exceptions.RequestException:
|
66
|
-
raise ConnectionError(
|
63
|
+
raise ConnectionError(
|
64
|
+
"The provided base_url is not accessible. Please re-check the base_url."
|
65
|
+
)
|
66
|
+
|
67
|
+
# Set the API keys, if available
|
68
|
+
if self.api_keys:
|
69
|
+
self._upload_keys()
|
67
70
|
|
68
71
|
def _set_access_key_secret_key(self, access_key, secret_key):
|
69
72
|
os.environ["RAGAAI_CATALYST_ACCESS_KEY"] = access_key
|
@@ -145,10 +148,7 @@ class RagaAICatalyst:
|
|
145
148
|
return None
|
146
149
|
|
147
150
|
headers = {"Content-Type": "application/json"}
|
148
|
-
json_data = {
|
149
|
-
"accessKey": access_key,
|
150
|
-
"secretKey": secret_key
|
151
|
-
}
|
151
|
+
json_data = {"accessKey": access_key, "secretKey": secret_key}
|
152
152
|
|
153
153
|
response = requests.post(
|
154
154
|
f"{ RagaAICatalyst.BASE_URL}/token",
|
@@ -161,7 +161,9 @@ class RagaAICatalyst:
|
|
161
161
|
if response.status_code == 400:
|
162
162
|
token_response = response.json()
|
163
163
|
if token_response.get("message") == "Please enter valid credentials":
|
164
|
-
raise Exception(
|
164
|
+
raise Exception(
|
165
|
+
"Authentication failed. Invalid credentials provided. Please check your Access key and Secret key. \nTo view or create new keys, navigate to Settings -> Authenticate in the RagaAI Catalyst dashboard."
|
166
|
+
)
|
165
167
|
|
166
168
|
response.raise_for_status()
|
167
169
|
|
@@ -183,7 +185,6 @@ class RagaAICatalyst:
|
|
183
185
|
logger.error("Token(s) not set")
|
184
186
|
return None
|
185
187
|
|
186
|
-
|
187
188
|
def create_project(self, project_name, type="llm", description=""):
|
188
189
|
"""
|
189
190
|
Creates a project with the given project_name, type, and description.
|
@@ -253,7 +254,6 @@ class RagaAICatalyst:
|
|
253
254
|
"Unexpected error while creating project: %s", str(general_err1)
|
254
255
|
)
|
255
256
|
return "An unexpected error occurred while creating the project"
|
256
|
-
|
257
257
|
|
258
258
|
def list_projects(self, num_projects=100):
|
259
259
|
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.8.1
|
4
4
|
Summary: RAGA AI CATALYST
|
5
5
|
Author-email: Kiran Scaria <kiran.scaria@raga.ai>, Kedar Gaikwad <kedar.gaikwad@raga.ai>, Dushyant Mahajan <dushyant.mahajan@raga.ai>, Siddhartha Kosti <siddhartha.kosti@raga.ai>, Ritika Goel <ritika.goel@raga.ai>, Vijay Chaurasia <vijay.chaurasia@raga.ai>
|
6
6
|
Requires-Python: >=3.9
|
@@ -3,7 +3,7 @@ ragaai_catalyst/_version.py,sha256=JKt9KaVNOMVeGs8ojO6LvIZr7ZkMzNN-gCcvryy4x8E,4
|
|
3
3
|
ragaai_catalyst/dataset.py,sha256=xEun-MqTgT0JGyGB2t0BwwC6M7t1aUT7x5X12C-_4pI,7644
|
4
4
|
ragaai_catalyst/experiment.py,sha256=c0l72fNULb4KZVcXwehZKdXb116JRyd0Y3hU3CVf8Fs,18999
|
5
5
|
ragaai_catalyst/prompt_manager.py,sha256=3jEcgS0JRZzjHww_ityOkq9SMvi7DQ75PlKu-17dXW4,14729
|
6
|
-
ragaai_catalyst/ragaai_catalyst.py,sha256=
|
6
|
+
ragaai_catalyst/ragaai_catalyst.py,sha256=FIyYriVe11GrHZ6CAErk76Hm38DTlUNSMLTEyS_yST8,16302
|
7
7
|
ragaai_catalyst/utils.py,sha256=TlhEFwLyRU690HvANbyoRycR3nQ67lxVUQoUOfTPYQ0,3772
|
8
8
|
ragaai_catalyst/tracers/__init__.py,sha256=NppmJhD3sQ5R1q6teaZLS7rULj08Gb6JT8XiPRIe_B0,49
|
9
9
|
ragaai_catalyst/tracers/tracer.py,sha256=LZQNKQF6hRfzxDu_Ljs2HBxQinjihKQoH189gIsO4w4,9171
|
@@ -16,7 +16,7 @@ ragaai_catalyst/tracers/instrumentators/llamaindex.py,sha256=SMrRlR4xM7k9HK43hak
|
|
16
16
|
ragaai_catalyst/tracers/instrumentators/openai.py,sha256=14R4KW9wQCR1xysLfsP_nxS7cqXrTPoD8En4MBAaZUU,379
|
17
17
|
ragaai_catalyst/tracers/utils/__init__.py,sha256=KeMaZtYaTojilpLv65qH08QmpYclfpacDA0U3wg6Ybw,64
|
18
18
|
ragaai_catalyst/tracers/utils/utils.py,sha256=ViygfJ7vZ7U0CTSA1lbxVloHp4NSlmfDzBRNCJuMhis,2374
|
19
|
-
ragaai_catalyst-1.0.
|
20
|
-
ragaai_catalyst-1.0.
|
21
|
-
ragaai_catalyst-1.0.
|
22
|
-
ragaai_catalyst-1.0.
|
19
|
+
ragaai_catalyst-1.0.8.1.dist-info/METADATA,sha256=9cvmDF2LmHG_U6NI1LrkKZYroqakYGpD7TIWjTdDoUM,6499
|
20
|
+
ragaai_catalyst-1.0.8.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
21
|
+
ragaai_catalyst-1.0.8.1.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
22
|
+
ragaai_catalyst-1.0.8.1.dist-info/RECORD,,
|
File without changes
|