fabricatio 0.14.2__cp312-cp312-win_amd64.whl → 0.14.3__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.
@@ -44,9 +44,9 @@ if find_spec("fabricatio_improve"):
44
44
  __all__ += ["Correct", "Review"]
45
45
 
46
46
  if find_spec("fabricatio_judge"):
47
- from fabricatio_judge.capabilities.advanced_judge import AdvancedJudge
47
+ from fabricatio_judge.capabilities.advanced_judge import EvidentlyJudge, VoteJudge
48
48
 
49
- __all__ += ["AdvancedJudge"]
49
+ __all__ += ["EvidentlyJudge", "VoteJudge"]
50
50
 
51
51
  if find_spec("fabricatio_digest"):
52
52
  from fabricatio_digest.capabilities.digest import Digest
@@ -74,10 +74,13 @@ if find_spec("fabricatio_yue"):
74
74
 
75
75
  __all__ += ["Lyricize", "SelectGenre"]
76
76
  if find_spec("fabricatio_memory"):
77
- from fabricatio_memory.capabilities.memory import Remember
77
+ from fabricatio_memory.capabilities.remember import Remember
78
78
 
79
79
  __all__ += ["Remember"]
80
+ if find_spec("fabricatio_judge"):
81
+ from fabricatio_memory.capabilities.selective_remember import SelectiveRemember
80
82
 
83
+ __all__ += ["SelectiveRemember"]
81
84
 
82
85
  if find_spec("fabricatio_translate"):
83
86
  from fabricatio_translate.capabilities.translate import Translate
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fabricatio
3
- Version: 0.14.2
3
+ Version: 0.14.3
4
4
  Classifier: License :: OSI Approved :: MIT License
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: 3.12
@@ -144,30 +144,25 @@ leverages Rust for performance-critical tasks, Handlebars for templating, and Py
144
144
 
145
145
  ## Installation
146
146
 
147
- ### Using UV (Recommended)
148
-
149
147
  ```bash
150
- # Install uv if not already installed
151
- pip install uv
148
+ # install fabricatio with full capabilities.
149
+ pip install fabricatio[full]
152
150
 
153
- # Clone the repository
154
- git clone https://github.com/Whth/fabricatio.git
155
- cd fabricatio
151
+ # or with uv
156
152
 
157
- # Install the package in development mode with uvx
158
- uvx --with-editable . maturin develop --uv -r
153
+ uv add fabricatio[full]
159
154
 
160
- # Or, with make
161
- make dev
162
- ```
163
155
 
164
- ### Building Distribution
156
+ # install fabricatio with only rag and rule capabilities.
157
+ pip install fabricatio[rag,rule]
158
+
159
+ # or with uv
160
+
161
+ uv add fabricatio[rag,rule]
165
162
 
166
- ```bash
167
- # Build distribution packages
168
- make bdist
169
163
  ```
170
164
 
165
+
171
166
  ## Usage
172
167
 
173
168
  ### Basic Example
@@ -216,39 +211,85 @@ _(For full example details, please check our detailed documentation, see [Exampl
216
211
 
217
212
  ## Configuration
218
213
 
219
- The configuration for Fabricatio is managed via environment variables or TOML files. For example:
214
+ Fabricatio supports flexible configuration through multiple sources, with the following priority order:
215
+ `./.env` > `Environment Variables` > `./fabricatio.toml` > `./pyproject.toml` > `<ROMANING>/fabricatio/fabricatio.toml` > `Defaults`.
216
+
217
+ Below is a unified view of the same configuration expressed in different formats:
218
+
219
+ ### Format Examples: Unified Configuration Representation
220
+
221
+ #### Environment variables or dotenv file
222
+ ```dotenv
223
+ FABRIK_LLM__API_ENDPOINT=https://api.openai.com
224
+ FABRIK_LLM__API_KEY=your_openai_api_key
225
+ FABRIK_LLM__TIMEOUT=300
226
+ FABRIK_LLM__MAX_RETRIES=3
227
+ FABRIK_LLM__MODEL=openai/gpt-3.5-turbo
228
+ FABRIK_LLM__TEMPERATURE=1.0
229
+ FABRIK_LLM__TOP_P=0.35
230
+ FABRIK_LLM__GENERATION_COUNT=1
231
+ FABRIK_LLM__STREAM=false
232
+ FABRIK_LLM__MAX_TOKENS=8192
233
+ FABRIK_DEBUG__LOG_LEVEL=INFO
234
+ ```
220
235
 
236
+ #### `fabricatio.toml` file
221
237
  ```toml
222
238
  [llm]
223
239
  api_endpoint = "https://api.openai.com"
224
240
  api_key = "your_openai_api_key"
225
241
  timeout = 300
226
242
  max_retries = 3
227
- model = "gpt-3.5-turbo"
243
+ model = "openai/gpt-3.5-turbo"
244
+ temperature = 1.0
245
+ top_p = 0.35
246
+ generation_count = 1
247
+ stream = false
248
+ max_tokens = 8192
249
+
250
+ [debug]
251
+ log_level = "INFO"
252
+ ```
253
+
254
+ #### `pyproject.toml` file
255
+ ```toml
256
+ [tool.fabricatio.llm]
257
+ api_endpoint = "https://api.openai.com"
258
+ api_key = "your_openai_api_key"
259
+ timeout = 300
260
+ max_retries = 3
261
+ model = "openai/gpt-3.5-turbo"
228
262
  temperature = 1.0
229
- stop_sign = ["\n\n\n", "User:"]
230
263
  top_p = 0.35
231
264
  generation_count = 1
232
265
  stream = false
233
266
  max_tokens = 8192
267
+
268
+ [tool.fabricatio.debug]
269
+ log_level = "INFO"
234
270
  ```
235
271
 
236
272
  ## Development Setup
237
273
 
238
274
  1. **Clone the Repository**:
239
- ```bash
240
- git clone https://github.com/Whth/fabricatio.git
241
- cd fabricatio
242
- ```
275
+ ```bash
276
+ git clone https://github.com/Whth/fabricatio.git
277
+ cd fabricatio
278
+ ```
243
279
  2. **Install Dependencies**:
244
- ```bash
245
- make dev
246
- ```
247
- 3. **Run Tests**:
248
- ```bash
249
- make test
250
- ```
251
-
280
+ ```bash
281
+ make init
282
+ ```
283
+
284
+ 3. **Build the Package**:
285
+ ```bash
286
+ make dev
287
+ ```
288
+ 4. **Run Tests**:
289
+ ```bash
290
+ make tests
291
+ ```
292
+
252
293
  ## Contributing
253
294
 
254
295
  Contributions are welcome! Follow these steps:
@@ -0,0 +1,12 @@
1
+ fabricatio-0.14.3.data/scripts/tdown.exe,sha256=iQ9yJC_c355JZvxli97RC7l65MX4urAS-BzDUZSly9Q,3813888
2
+ fabricatio-0.14.3.dist-info/METADATA,sha256=xSawC4X6jnM2vO3om6F202kHCNWgacGSYpLrNB9FPcc,9782
3
+ fabricatio-0.14.3.dist-info/WHEEL,sha256=0ua6B-UmXPKizyn4Mhcu6S66EB8t6wxm_Wsw5H1bZYs,96
4
+ fabricatio-0.14.3.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
5
+ fabricatio/__init__.py,sha256=E4CcZi8ry4WxcO-Ety0lzQtln9VaYM9c0g7s925gR9k,590
6
+ fabricatio/actions/__init__.py,sha256=LUG5gCijcn-QgAtjkLeQO3NAXW0wEiuTmm371avzQbQ,2322
7
+ fabricatio/capabilities/__init__.py,sha256=XwfTGv9OTQRh0oItCEO5NAHzWw2TDaCNA2pIkVHs3HA,3228
8
+ fabricatio/models/__init__.py,sha256=Nn1WXRlFOj2hwLB3VD-h0osXu6pL2nAaoga5BRn5Qjo,1659
9
+ fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ fabricatio/rust.cp312-win_amd64.pyd,sha256=DMkNoxfmGiRbxN9d642DrtNSKE48bbwjxhTEmVfu6wM,279552
11
+ fabricatio/workflows/__init__.py,sha256=Twr7FaI7scUhz0LOlPktB6lf_k3VdcHNabCjpTsw938,315
12
+ fabricatio-0.14.3.dist-info/RECORD,,
Binary file
@@ -1,12 +0,0 @@
1
- fabricatio-0.14.2.data/scripts/tdown.exe,sha256=KuEkwrCFgBtXPuhbG8c1aTw-WX7Gjpa---mLsXIpYPU,3842048
2
- fabricatio-0.14.2.dist-info/METADATA,sha256=UQlpwPHSe4OWvGfbQ1RRlvH52G2JLqr5Chu1U8uD5S8,8773
3
- fabricatio-0.14.2.dist-info/WHEEL,sha256=0ua6B-UmXPKizyn4Mhcu6S66EB8t6wxm_Wsw5H1bZYs,96
4
- fabricatio-0.14.2.dist-info/licenses/LICENSE,sha256=do7J7EiCGbq0QPbMAL_FqLYufXpHnCnXBOuqVPwSV8Y,1088
5
- fabricatio/__init__.py,sha256=E4CcZi8ry4WxcO-Ety0lzQtln9VaYM9c0g7s925gR9k,590
6
- fabricatio/actions/__init__.py,sha256=LUG5gCijcn-QgAtjkLeQO3NAXW0wEiuTmm371avzQbQ,2322
7
- fabricatio/capabilities/__init__.py,sha256=QrR40mLS_B_q56Cos0tt8sjtD1FU7yXxU9JCHdDiNmg,3030
8
- fabricatio/models/__init__.py,sha256=Nn1WXRlFOj2hwLB3VD-h0osXu6pL2nAaoga5BRn5Qjo,1659
9
- fabricatio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- fabricatio/rust.cp312-win_amd64.pyd,sha256=iQWdnursFTssGYOoCP6SOjCgHb9P0Wb4Q_Ha7P8pX48,280064
11
- fabricatio/workflows/__init__.py,sha256=Twr7FaI7scUhz0LOlPktB6lf_k3VdcHNabCjpTsw938,315
12
- fabricatio-0.14.2.dist-info/RECORD,,