ragaai-catalyst 2.0.6b2__py3-none-any.whl → 2.0.7b1__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/internal_api_completion.py +1 -1
- ragaai_catalyst/prompt_manager.py +6 -1
- ragaai_catalyst/synthetic_data_generation.py +1 -0
- {ragaai_catalyst-2.0.6b2.dist-info → ragaai_catalyst-2.0.7b1.dist-info}/METADATA +1 -1
- {ragaai_catalyst-2.0.6b2.dist-info → ragaai_catalyst-2.0.7b1.dist-info}/RECORD +7 -7
- {ragaai_catalyst-2.0.6b2.dist-info → ragaai_catalyst-2.0.7b1.dist-info}/WHEEL +1 -1
- {ragaai_catalyst-2.0.6b2.dist-info → ragaai_catalyst-2.0.7b1.dist-info}/top_level.txt +0 -0
@@ -36,7 +36,7 @@ def api_completion(messages, model_config, kwargs):
|
|
36
36
|
raise ValueError(response["error"]["message"])
|
37
37
|
else:
|
38
38
|
result= response["choices"][0]["message"]["content"]
|
39
|
-
response1 = result.replace('\n', '')
|
39
|
+
response1 = result.replace('\n', '').replace('```json','').replace('```', '').strip()
|
40
40
|
try:
|
41
41
|
json_data = json.loads(response1)
|
42
42
|
df = pd.DataFrame(json_data)
|
@@ -432,7 +432,12 @@ class PromptObject:
|
|
432
432
|
Returns:
|
433
433
|
dict: A dictionary of parameters found in the prompt text.
|
434
434
|
"""
|
435
|
-
parameters = {
|
435
|
+
parameters = {}
|
436
|
+
for param in self.parameters:
|
437
|
+
if "value" in param:
|
438
|
+
parameters[param["name"]] = self._convert_value(param["value"], param["type"])
|
439
|
+
else:
|
440
|
+
parameters[param["name"]] = ""
|
436
441
|
parameters["model"] = self.model
|
437
442
|
return parameters
|
438
443
|
|
@@ -289,6 +289,7 @@ class SyntheticDataGeneration:
|
|
289
289
|
|
290
290
|
# Extract the content from the response
|
291
291
|
content = response.choices[0].message.content
|
292
|
+
content = content.replace('\n', '').replace('```json','').replace('```', '').strip()
|
292
293
|
|
293
294
|
# Clean the response if needed (remove any prefix before the JSON list)
|
294
295
|
list_start_index = content.find('[')
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.7b1
|
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
|
@@ -5,11 +5,11 @@ ragaai_catalyst/evaluation.py,sha256=EZGISQH6vGB7vP5OmUBRXmEqkqZPIYN_eEUUz1jTrJ8
|
|
5
5
|
ragaai_catalyst/experiment.py,sha256=8KvqgJg5JVnt9ghhGDJvdb4mN7ETBX_E5gNxBT0Nsn8,19010
|
6
6
|
ragaai_catalyst/guard_executor.py,sha256=llPbE3DyVtrybojXknzBZj8-dtUrGBQwi9-ZiPJxGRo,3762
|
7
7
|
ragaai_catalyst/guardrails_manager.py,sha256=DILMOAASK57FH9BLq_8yC1AQzRJ8McMFLwCXgYwNAd4,11904
|
8
|
-
ragaai_catalyst/internal_api_completion.py,sha256=
|
9
|
-
ragaai_catalyst/prompt_manager.py,sha256=
|
8
|
+
ragaai_catalyst/internal_api_completion.py,sha256=DdICI5yfEudiOAIC8L4oxH0Qz7kX-BZCdo9IWsi2gNo,2965
|
9
|
+
ragaai_catalyst/prompt_manager.py,sha256=W8ypramzOprrJ7-22d5vkBXIuIQ8v9XAzKDGxKsTK28,16550
|
10
10
|
ragaai_catalyst/proxy_call.py,sha256=CHxldeceZUaLU-to_hs_Kf1z_b2vHMssLS_cOBedu78,5499
|
11
11
|
ragaai_catalyst/ragaai_catalyst.py,sha256=FdqMzwuQLqS2-3JJDsTQ8uh2itllOxfPrRUjb8Kwmn0,17428
|
12
|
-
ragaai_catalyst/synthetic_data_generation.py,sha256=
|
12
|
+
ragaai_catalyst/synthetic_data_generation.py,sha256=uDV9tNwto2xSkWg5XHXUvjErW-4P34CTrxaJpRfezyA,19250
|
13
13
|
ragaai_catalyst/utils.py,sha256=TlhEFwLyRU690HvANbyoRycR3nQ67lxVUQoUOfTPYQ0,3772
|
14
14
|
ragaai_catalyst/tracers/__init__.py,sha256=NppmJhD3sQ5R1q6teaZLS7rULj08Gb6JT8XiPRIe_B0,49
|
15
15
|
ragaai_catalyst/tracers/llamaindex_callback.py,sha256=vPE7MieKjfwLrLUnnPs20Df0xNYqoCCj-Mt2NbiuiKU,14023
|
@@ -23,7 +23,7 @@ ragaai_catalyst/tracers/instrumentators/llamaindex.py,sha256=SMrRlR4xM7k9HK43hak
|
|
23
23
|
ragaai_catalyst/tracers/instrumentators/openai.py,sha256=14R4KW9wQCR1xysLfsP_nxS7cqXrTPoD8En4MBAaZUU,379
|
24
24
|
ragaai_catalyst/tracers/utils/__init__.py,sha256=KeMaZtYaTojilpLv65qH08QmpYclfpacDA0U3wg6Ybw,64
|
25
25
|
ragaai_catalyst/tracers/utils/utils.py,sha256=ViygfJ7vZ7U0CTSA1lbxVloHp4NSlmfDzBRNCJuMhis,2374
|
26
|
-
ragaai_catalyst-2.0.
|
27
|
-
ragaai_catalyst-2.0.
|
28
|
-
ragaai_catalyst-2.0.
|
29
|
-
ragaai_catalyst-2.0.
|
26
|
+
ragaai_catalyst-2.0.7b1.dist-info/METADATA,sha256=A_kASl-qN-h-7s3N9NxL8iZAuRKmwPjpAaVmIH0InpQ,11241
|
27
|
+
ragaai_catalyst-2.0.7b1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
28
|
+
ragaai_catalyst-2.0.7b1.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
29
|
+
ragaai_catalyst-2.0.7b1.dist-info/RECORD,,
|
File without changes
|