ragaai-catalyst 2.1.5b28__py3-none-any.whl → 2.1.5b29__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/synthetic_data_generation.py +4 -2
- {ragaai_catalyst-2.1.5b28.dist-info → ragaai_catalyst-2.1.5b29.dist-info}/METADATA +1 -1
- {ragaai_catalyst-2.1.5b28.dist-info → ragaai_catalyst-2.1.5b29.dist-info}/RECORD +6 -6
- {ragaai_catalyst-2.1.5b28.dist-info → ragaai_catalyst-2.1.5b29.dist-info}/LICENSE +0 -0
- {ragaai_catalyst-2.1.5b28.dist-info → ragaai_catalyst-2.1.5b29.dist-info}/WHEEL +0 -0
- {ragaai_catalyst-2.1.5b28.dist-info → ragaai_catalyst-2.1.5b29.dist-info}/top_level.txt +0 -0
@@ -84,7 +84,6 @@ class SyntheticDataGeneration:
|
|
84
84
|
|
85
85
|
try:
|
86
86
|
system_message = self._get_system_message(question_type, current_batch_size)
|
87
|
-
|
88
87
|
if "internal_llm_proxy" in kwargs:
|
89
88
|
batch_df = self._generate_internal_response(text, system_message, model_config, kwargs)
|
90
89
|
else:
|
@@ -232,7 +231,8 @@ class SyntheticDataGeneration:
|
|
232
231
|
ValueError: If an invalid question type is specified.
|
233
232
|
"""
|
234
233
|
if question_type == 'simple':
|
235
|
-
return f'''Generate a set of {n} very simple questions answerable in a single phrase.
|
234
|
+
return f'''Generate a set of {n} very simple questions answerable in a single phrase using the below text.
|
235
|
+
Only generate questions answerable from the text given, to cover all parts of the given document.
|
236
236
|
Also return the answers for the generated questions.
|
237
237
|
Return the response in a list of object format.
|
238
238
|
Each object in list should have Question and corresponding answer.
|
@@ -241,6 +241,7 @@ class SyntheticDataGeneration:
|
|
241
241
|
'''
|
242
242
|
elif question_type == 'mcq':
|
243
243
|
return f'''Generate a set of {n} questions with 4 probable answers from the given text.
|
244
|
+
Only generate questions answerable from the text given, to cover all parts of the given document.
|
244
245
|
The options should not be longer than a phrase. There should be only 1 correct answer.
|
245
246
|
There should not be any ambiguity between correct and incorrect options.
|
246
247
|
Return the response in a list of object format.
|
@@ -250,6 +251,7 @@ class SyntheticDataGeneration:
|
|
250
251
|
'''
|
251
252
|
elif question_type == 'complex':
|
252
253
|
return f'''Can you generate a set of {n} complex questions answerable in long form from the below texts.
|
254
|
+
Only generate questions answerable from the text given, to cover all parts of the given document.
|
253
255
|
Make sure the questions are important and provide new information to the user.
|
254
256
|
Return the response in a list of object format. Enclose any quotes in single quote.
|
255
257
|
Do not use double quotes within questions or answers.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.5b29
|
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>, Tushar Kumar <tushar.kumar@raga.ai>
|
6
6
|
Requires-Python: <3.13,>=3.9
|
@@ -10,7 +10,7 @@ ragaai_catalyst/prompt_manager.py,sha256=W8ypramzOprrJ7-22d5vkBXIuIQ8v9XAzKDGxKs
|
|
10
10
|
ragaai_catalyst/proxy_call.py,sha256=CHxldeceZUaLU-to_hs_Kf1z_b2vHMssLS_cOBedu78,5499
|
11
11
|
ragaai_catalyst/ragaai_catalyst.py,sha256=5nVg3_-lcvhrXjNkPTeGhe3tdUjm_4ZIctOcqWXBkRA,17939
|
12
12
|
ragaai_catalyst/redteaming.py,sha256=pvHfwaHZgrq0HYhygEUm6-WotAxA2X9Xg1Kj9NlEzAI,6803
|
13
|
-
ragaai_catalyst/synthetic_data_generation.py,sha256=
|
13
|
+
ragaai_catalyst/synthetic_data_generation.py,sha256=QdabyUErLHhEwE-grlD-OJgqbL9N0S_tCPp9GmuMSyo,21617
|
14
14
|
ragaai_catalyst/utils.py,sha256=TlhEFwLyRU690HvANbyoRycR3nQ67lxVUQoUOfTPYQ0,3772
|
15
15
|
ragaai_catalyst/tracers/__init__.py,sha256=LfgTes-nHpazssbGKnn8kyLZNr49kIPrlkrqqoTFTfc,301
|
16
16
|
ragaai_catalyst/tracers/distributed.py,sha256=MwlBwIxCAng-OI-7Ove_rkE1mTLeuW4Jw-wWEVJBNlI,9968
|
@@ -71,8 +71,8 @@ ragaai_catalyst/tracers/utils/convert_llama_instru_callback.py,sha256=8qLo7x4Zsn
|
|
71
71
|
ragaai_catalyst/tracers/utils/extraction_logic_llama_index.py,sha256=ZhPs0YhVtB82-Pq9o1BvCinKE_WPvVxPTEcZjlJbFYM,2371
|
72
72
|
ragaai_catalyst/tracers/utils/langchain_tracer_extraction_logic.py,sha256=XS2_x2qneqEx9oAighLg-LRiueWcESLwIC2r7eJT-Ww,3117
|
73
73
|
ragaai_catalyst/tracers/utils/utils.py,sha256=ViygfJ7vZ7U0CTSA1lbxVloHp4NSlmfDzBRNCJuMhis,2374
|
74
|
-
ragaai_catalyst-2.1.
|
75
|
-
ragaai_catalyst-2.1.
|
76
|
-
ragaai_catalyst-2.1.
|
77
|
-
ragaai_catalyst-2.1.
|
78
|
-
ragaai_catalyst-2.1.
|
74
|
+
ragaai_catalyst-2.1.5b29.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
75
|
+
ragaai_catalyst-2.1.5b29.dist-info/METADATA,sha256=VtRy6oG0L-rNaky2LVNVNvXV6pAHjdRs6aMah4Qp3yM,19472
|
76
|
+
ragaai_catalyst-2.1.5b29.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
77
|
+
ragaai_catalyst-2.1.5b29.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
78
|
+
ragaai_catalyst-2.1.5b29.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|