fabricatio 0.2.6.dev2__cp312-cp312-win_amd64.whl → 0.2.7.dev3__cp312-cp312-win_amd64.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.
Files changed (35) hide show
  1. fabricatio/__init__.py +7 -24
  2. fabricatio/_rust.cp312-win_amd64.pyd +0 -0
  3. fabricatio/_rust.pyi +22 -0
  4. fabricatio/actions/article.py +150 -19
  5. fabricatio/actions/article_rag.py +35 -0
  6. fabricatio/actions/output.py +21 -6
  7. fabricatio/actions/rag.py +51 -3
  8. fabricatio/capabilities/correct.py +34 -4
  9. fabricatio/capabilities/rag.py +67 -16
  10. fabricatio/capabilities/rating.py +15 -6
  11. fabricatio/capabilities/review.py +7 -4
  12. fabricatio/capabilities/task.py +5 -5
  13. fabricatio/config.py +29 -21
  14. fabricatio/decorators.py +32 -0
  15. fabricatio/models/action.py +117 -43
  16. fabricatio/models/extra/article_essence.py +226 -0
  17. fabricatio/models/extra/article_main.py +359 -0
  18. fabricatio/models/extra/article_outline.py +276 -0
  19. fabricatio/models/extra/article_proposal.py +37 -0
  20. fabricatio/models/generic.py +95 -9
  21. fabricatio/models/kwargs_types.py +40 -10
  22. fabricatio/models/role.py +30 -6
  23. fabricatio/models/tool.py +6 -2
  24. fabricatio/models/usages.py +94 -47
  25. fabricatio/models/utils.py +29 -2
  26. fabricatio/parser.py +2 -0
  27. fabricatio/workflows/articles.py +12 -1
  28. fabricatio-0.2.7.dev3.data/scripts/tdown.exe +0 -0
  29. {fabricatio-0.2.6.dev2.dist-info → fabricatio-0.2.7.dev3.dist-info}/METADATA +6 -2
  30. fabricatio-0.2.7.dev3.dist-info/RECORD +46 -0
  31. {fabricatio-0.2.6.dev2.dist-info → fabricatio-0.2.7.dev3.dist-info}/WHEEL +1 -1
  32. fabricatio/models/extra.py +0 -171
  33. fabricatio-0.2.6.dev2.data/scripts/tdown.exe +0 -0
  34. fabricatio-0.2.6.dev2.dist-info/RECORD +0 -42
  35. {fabricatio-0.2.6.dev2.dist-info → fabricatio-0.2.7.dev3.dist-info}/licenses/LICENSE +0 -0
@@ -1,171 +0,0 @@
1
- """Extra models for built-in actions."""
2
-
3
- from typing import List
4
-
5
- from fabricatio.models.generic import Base, Display, FinalizedDumpAble, PrepareVectorization, ProposedAble
6
- from pydantic import Field
7
-
8
-
9
- class Equation(Base):
10
- """Structured representation of mathematical equations (including their physical or conceptual meanings)."""
11
-
12
- description: str
13
- """A concise explanation of the equation's meaning, purpose, and relevance in the context of the research."""
14
-
15
- latex_code: str
16
- """The LaTeX code used to represent the equation in a publication-ready format."""
17
-
18
-
19
- class Figure(Base):
20
- """Structured representation of figures (including their academic significance and explanatory captions)."""
21
-
22
- description: str
23
- """A detailed explanation of the figure's content and its role in conveying key insights."""
24
-
25
- figure_caption: str
26
- """The caption accompanying the figure, summarizing its main points and academic value."""
27
-
28
- figure_path: str
29
- """The file path to the figure"""
30
-
31
-
32
- class Highlightings(Base):
33
- """Structured representation of highlighted elements in an academic paper (including equations, algorithms, figures, and tables)."""
34
-
35
- # Academic Achievements Showcase
36
- highlighted_equations: List[Equation] = Field(default_factory=list)
37
- """Core mathematical equations that represent breakthroughs in the field, accompanied by explanations of their physical or conceptual significance,Should always be in LaTeX format wrapped in $ or $$ signs."""
38
-
39
- highlighted_algorithms: List[str] = Field(default_factory=list)
40
- """Pseudocode for key algorithms, annotated to highlight innovative components."""
41
-
42
- highlighted_figures: List[Figure] = Field(default_factory=list)
43
- """Critical diagrams or illustrations, each accompanied by a caption explaining their academic importance."""
44
-
45
- highlighted_tables: List[str] = Field(default_factory=list)
46
- """Important data tables, annotated to indicate statistical significance or other notable findings."""
47
-
48
-
49
- class ArticleEssence(ProposedAble, Display, PrepareVectorization):
50
- """Structured representation of the core elements of an academic paper(providing a comprehensive digital profile of the paper's essential information)."""
51
-
52
- # Basic Metadata
53
- title: str = Field(...)
54
- """The full title of the paper, including any subtitles if applicable."""
55
-
56
- authors: List[str]
57
- """A list of the paper's authors, typically in the order of contribution."""
58
-
59
- keywords: List[str]
60
- """A list of keywords that summarize the paper's focus and facilitate indexing."""
61
-
62
- publication_year: int
63
- """The year in which the paper was published."""
64
-
65
- # Core Content Elements
66
- highlightings: Highlightings = Field(default_factory=Highlightings)
67
- """A collection of highlighted elements in the paper, including equations, algorithms, figures, and tables."""
68
-
69
- domain: List[str]
70
- """The research domains or fields addressed by the paper (e.g., ['Natural Language Processing', 'Computer Vision'])."""
71
-
72
- abstract: str = Field(...)
73
- """A structured abstract that outlines the research problem, methodology, and conclusions in three distinct sections."""
74
-
75
- core_contributions: List[str]
76
- """Key academic contributions that distinguish the paper from prior work in the field."""
77
-
78
- technical_novelty: List[str]
79
- """Specific technical innovations introduced by the research, listed as individual points."""
80
-
81
- # Academic Discussion Dimensions
82
- research_problems: List[str]
83
- """A clearly defined research question or problem addressed by the study."""
84
-
85
- limitations: List[str]
86
- """An analysis of the methodological or experimental limitations of the research."""
87
-
88
- future_work: List[str]
89
- """Suggestions for potential directions or topics for follow-up studies."""
90
-
91
- impact_analysis: List[str]
92
- """An assessment of the paper's potential influence on the development of the field."""
93
-
94
- def _prepare_vectorization_inner(self) -> str:
95
- return self.model_dump_json()
96
-
97
-
98
- class ArticleProposal(ProposedAble, Display):
99
- """Structured representation of the proposal for an academic paper."""
100
-
101
- title: str = Field(...)
102
- """The proposed title of the paper."""
103
-
104
- focused_problem: List[str] = Field(default_factory=list)
105
- """The specific research problem or question that the paper aims to address."""
106
- research_aim: List[str] = Field(default_factory=list)
107
- """The main objective or goal of the research, outlining what the study aims to achieve."""
108
- research_methods: List[str] = Field(default_factory=list)
109
- """The methods used in the research, including the approach, techniques, and tools employed."""
110
-
111
-
112
- class ArticleSubsectionOutline(Base):
113
- """Structured representation of the subsections of an academic paper."""
114
-
115
- title: str = Field(...)
116
- """The title of the subsection."""
117
-
118
- description: str = Field(...)
119
- """A brief description of the subsection's content should be, how it fits into the overall structure of the paper, and its significance in the context of the research."""
120
-
121
-
122
- class ArticleSectionOutline(Base):
123
- """Structured representation of the sections of an academic paper."""
124
-
125
- title: str = Field(...)
126
- """The title of the section."""
127
- description: str = Field(...)
128
- """A brief description of the section's content should be, how it fits into the overall structure of the paper, and its significance in the context of the research."""
129
- subsections: List[ArticleSubsectionOutline] = Field(default_factory=list)
130
- """The subsections of the section, outlining their content and significance."""
131
-
132
-
133
- class ArticleChapterOutline(Base):
134
- """Structured representation of the chapters of an academic paper."""
135
-
136
- title: str = Field(...)
137
- """The title of the chapter."""
138
- description: str = Field(...)
139
- """A brief description of the chapter's content should be, how it fits into the overall structure of the paper, and its significance in the context of the research."""
140
- sections: List[ArticleSectionOutline] = Field(default_factory=list)
141
- """The sections of the chapter, outlining their content and significance."""
142
-
143
-
144
- class ArticleOutline(ProposedAble, Display, FinalizedDumpAble):
145
- """Structured representation of the outline for an academic paper."""
146
-
147
- title: str = Field(...)
148
- """The proposed title of the paper."""
149
-
150
- prospect: str = Field(...)
151
- """A brief description of the research problem or question that the paper aims to address manipulating methods or techniques"""
152
-
153
- chapters: List[ArticleChapterOutline] = Field(default_factory=list)
154
- """The chapters of the paper, outlining their content and significance."""
155
-
156
- def finalized_dump(self) -> str:
157
- """Finalized dump of the article outline.
158
-
159
- Returns:
160
- str: The finalized dump of the article outline.
161
- """
162
- lines: List[str] = []
163
-
164
- for chapter in self.chapters:
165
- lines.append(f"= {chapter.title}")
166
- for section in chapter.sections:
167
- lines.append(f"== {section.title}")
168
- for subsection in section.subsections:
169
- lines.append(f"=== {subsection.title}")
170
-
171
- return "\n\n".join(lines)
@@ -1,42 +0,0 @@
1
- fabricatio-0.2.6.dev2.dist-info/METADATA,sha256=bzt1bm_oxz4nv8eH7gaT5B6sEYsDx1bZ76p5RXdiO-8,14085
2
- fabricatio-0.2.6.dev2.dist-info/WHEEL,sha256=tpW5AN9B-9qsM9WW2FXG2r193YXiqexDadpKp0A2daI,96
3
- fabricatio-0.2.6.dev2.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
4
- fabricatio/actions/article.py,sha256=yzRwgc203vI3MW_oWyFybDxTz6kaBBvUgN2zOJJ9Amc,2825
5
- fabricatio/actions/output.py,sha256=KSSLvEvXsA10ACN2mbqGo98QwKLVUAoMUJNKYk6HhGc,645
6
- fabricatio/actions/rag.py,sha256=GpT7YlqOYznZyaT-6Y84_33HtZGT-5s71ZK8iroQA9g,813
7
- fabricatio/capabilities/correct.py,sha256=0BYhjo9WrLwKsXQR8bTPvdQITbrMs7RX1xpzhuQt_yY,5222
8
- fabricatio/capabilities/propose.py,sha256=y3kge5g6bb8HYuV8e9h4MdqOMTlsfAIZpqE_cagWPTY,1593
9
- fabricatio/capabilities/rag.py,sha256=OebdGps8LGniN_HkRAOuwZd1ZQsyQe3WrduNAmBSxLM,15773
10
- fabricatio/capabilities/rating.py,sha256=R9otyZVE2E3kKxrOCTZMeesBCPbC-fSb7bXgZPMQzfU,14406
11
- fabricatio/capabilities/review.py,sha256=XYzpSnFCT9HS2XytQT8HDgV4SjXehexoJgucZFMx6P8,11102
12
- fabricatio/capabilities/task.py,sha256=nVsC8smZRM5kGnIDiQtgP9kiGkz5KB1S9NXhMvwY2CQ,4607
13
- fabricatio/config.py,sha256=bpj8i0KT8HQ9ka2kX3lcILBWh4S5_PenCas9wu_Ueg0,16302
14
- fabricatio/core.py,sha256=VQ_JKgUGIy2gZ8xsTBZCdr_IP7wC5aPg0_bsOmjQ588,6458
15
- fabricatio/decorators.py,sha256=uzsP4tFKQNjDHBkofsjjoJA0IUAaYOtt6YVedoyOqlo,6551
16
- fabricatio/fs/curd.py,sha256=N6l2MncjrFfnXBRtteRouXp5Rjy8EAKC_i29_G-zz98,4618
17
- fabricatio/fs/readers.py,sha256=EZKN_AZdrp8DggJECP53QHw3uHeSDf-AwCAA_V7fNKU,1202
18
- fabricatio/fs/__init__.py,sha256=PCf0s_9KDjVfNw7AfPoJzGt3jMq4gJOfbcT4pb0D0ZY,588
19
- fabricatio/journal.py,sha256=stnEP88aUBA_GmU9gfTF2EZI8FS2OyMLGaMSTgK4QgA,476
20
- fabricatio/models/action.py,sha256=25kaph3csV0VQtxVPQCyRAusgwp6E1R1g4KBs7H9T2c,6448
21
- fabricatio/models/events.py,sha256=QvlnS8FEELg6KNabcJMeh2GV_y0ZBzKOPphcteKYWYU,4183
22
- fabricatio/models/extra.py,sha256=O8ncZVsaNmlR5f8c_b2HJc-yVZQ2YhB6ddDbfT0Ysh4,7412
23
- fabricatio/models/generic.py,sha256=IdPJMf3qxZFq8yqd6OuAYKfCM0wBlJkozgxvxQZVEEc,14025
24
- fabricatio/models/kwargs_types.py,sha256=Q-dTKfh-_FddyVCI13FzLBlgVjYrRtzXpZoQdy-G9I4,4573
25
- fabricatio/models/role.py,sha256=7S3HSjFLaSTZ5bzgTJLeZ3PpAQDEGBxPhou5Mp8ONpQ,1842
26
- fabricatio/models/task.py,sha256=8NaR7ojQWyM740EDTqt9stwHKdrD6axCRpLKo0QzS-I,10492
27
- fabricatio/models/tool.py,sha256=4b-v4WIC_LuLOKzzXL9bvKXr8vmGZ8O2uAFv5-1KRA0,7052
28
- fabricatio/models/usages.py,sha256=hR4OU4sjQ2jKaH5_kkN83vG58n3kcKnt9osND0BYi0Q,28634
29
- fabricatio/models/utils.py,sha256=1bCqeB6za7ecCAM3cU1raNWuN56732m45rXtlIlc3I4,5017
30
- fabricatio/parser.py,sha256=SzyVzbKj5L_0IcI5Z5ILpopJxE-1hGhmomskTWdcc68,6194
31
- fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- fabricatio/toolboxes/arithmetic.py,sha256=WLqhY-Pikv11Y_0SGajwZx3WhsLNpHKf9drzAqOf_nY,1369
33
- fabricatio/toolboxes/fs.py,sha256=l4L1CVxJmjw9Ld2XUpIlWfV0_Fu_2Og6d3E13I-S4aE,736
34
- fabricatio/toolboxes/__init__.py,sha256=KBJi5OG_pExscdlM7Bnt_UF43j4I3Lv6G71kPVu4KQU,395
35
- fabricatio/workflows/articles.py,sha256=RebdC_BzSXC-xsck5I9ccC_XIgfhtoeM8FZuhtVDn3U,580
36
- fabricatio/workflows/rag.py,sha256=-YYp2tlE9Vtfgpg6ROpu6QVO8j8yVSPa6yDzlN3qVxs,520
37
- fabricatio/_rust.pyi,sha256=pI747rOciunGuQZDvfC3O0A6pLyOiaHSa3A5kHuQO0E,3169
38
- fabricatio/_rust_instances.py,sha256=2GwF8aVfYNemRI2feBzH1CZfBGno-XJJE5imJokGEYw,314
39
- fabricatio/__init__.py,sha256=wTPzKLGztMr7orV-KizHRXJFhPGncvAHE7BPeSmBVDU,1926
40
- fabricatio/_rust.cp312-win_amd64.pyd,sha256=cAUlGwAeoyfEkzITxfCVr8ngDBeEcEdpVS8iTOP82kk,1815552
41
- fabricatio-0.2.6.dev2.data/scripts/tdown.exe,sha256=panGfEi6b9ALQ9_0Be3Px-jxGpvmvKeet9UXBF6f9zU,3395072
42
- fabricatio-0.2.6.dev2.dist-info/RECORD,,