son-logic-engine 0.2.2__tar.gz → 0.2.3__tar.gz

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.
@@ -259,7 +259,7 @@ checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
259
259
 
260
260
  [[package]]
261
261
  name = "son_logic_engine"
262
- version = "0.2.2"
262
+ version = "0.2.3"
263
263
  dependencies = [
264
264
  "pyo3",
265
265
  "serde",
@@ -1,7 +1,7 @@
1
1
 
2
2
  [package]
3
3
  name = "son_logic_engine"
4
- version = "0.2.2"
4
+ version = "0.2.3"
5
5
  edition = "2021"
6
6
  authors = ["Son <sonbuwin@gmail.com>"]
7
7
  readme = "README.md"
@@ -0,0 +1,51 @@
1
+ Metadata-Version: 2.4
2
+ Name: son_logic_engine
3
+ Version: 0.2.3
4
+ Summary: High-performance Rust search engine for RAG systems
5
+ Author-email: Son <sonbuwin@gmail.com>
6
+ Requires-Python: >=3.7
7
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
8
+
9
+ # son-logic-engine
10
+
11
+ High-performance search filter for RAG systems written in Rust, designed for speed and accuracy with Vietnamese text.
12
+
13
+ ## 🚀 Features
14
+ - **Rust Core:** Blazing fast processing for large datasets.
15
+ - **Polymorphic Input:** Supports `List[str]`, `Dict`, or nested `List[Dict]`.
16
+ - **Field Filtering:** Optimize search speed by targeting specific columns.
17
+ - **Unicode Support:** Native handling of Vietnamese characters and custom character mappings.
18
+
19
+ ## 🛠 Installation
20
+ ```bash
21
+ pip install son-logic-engine
22
+ ```
23
+
24
+ ## 📖 API Reference
25
+
26
+ ### 1. `load_mapping(path: str)`
27
+ Loads the character weight mapping from a JSON file. This is required for the search logic to compute character-based relevance.
28
+ ```python
29
+ import son_logic_engine as slg
30
+ mapping = slg.load_mapping('path/to/mapping.json')
31
+ ```
32
+
33
+ ### 2. `loc(query: str, database: Any, mapping: dict, field_name: str = None)`
34
+ The core search function. Returns a list of records (as JSON strings) ranked by relevance to the query.
35
+ - `query`: The search term.
36
+ - `database`: Your data (List of strings or List of Dictionaries).
37
+ - `mapping`: The mapping object from `load_mapping`.
38
+ - `field_name`: (Optional) The specific key in your dictionary to search within.
39
+
40
+ ### 3. `print(raw_results: list)`
41
+ A utility function to decode and pretty-print the JSON results returned by `loc`.
42
+ ```python
43
+ results = slg.loc("search term", data, mapping)
44
+ slg.print(results)
45
+ ```
46
+
47
+ ## 🔒 Security & Contact
48
+ The underlying search algorithm and character weight logic are proprietary. For access to standard mapping files or custom integration, please contact:
49
+
50
+ 📩 **Email:** sonbuwin@gmail.com
51
+
@@ -0,0 +1,42 @@
1
+ # son-logic-engine
2
+
3
+ High-performance search filter for RAG systems written in Rust, designed for speed and accuracy with Vietnamese text.
4
+
5
+ ## 🚀 Features
6
+ - **Rust Core:** Blazing fast processing for large datasets.
7
+ - **Polymorphic Input:** Supports `List[str]`, `Dict`, or nested `List[Dict]`.
8
+ - **Field Filtering:** Optimize search speed by targeting specific columns.
9
+ - **Unicode Support:** Native handling of Vietnamese characters and custom character mappings.
10
+
11
+ ## 🛠 Installation
12
+ ```bash
13
+ pip install son-logic-engine
14
+ ```
15
+
16
+ ## 📖 API Reference
17
+
18
+ ### 1. `load_mapping(path: str)`
19
+ Loads the character weight mapping from a JSON file. This is required for the search logic to compute character-based relevance.
20
+ ```python
21
+ import son_logic_engine as slg
22
+ mapping = slg.load_mapping('path/to/mapping.json')
23
+ ```
24
+
25
+ ### 2. `loc(query: str, database: Any, mapping: dict, field_name: str = None)`
26
+ The core search function. Returns a list of records (as JSON strings) ranked by relevance to the query.
27
+ - `query`: The search term.
28
+ - `database`: Your data (List of strings or List of Dictionaries).
29
+ - `mapping`: The mapping object from `load_mapping`.
30
+ - `field_name`: (Optional) The specific key in your dictionary to search within.
31
+
32
+ ### 3. `print(raw_results: list)`
33
+ A utility function to decode and pretty-print the JSON results returned by `loc`.
34
+ ```python
35
+ results = slg.loc("search term", data, mapping)
36
+ slg.print(results)
37
+ ```
38
+
39
+ ## 🔒 Security & Contact
40
+ The underlying search algorithm and character weight logic are proprietary. For access to standard mapping files or custom integration, please contact:
41
+
42
+ 📩 **Email:** sonbuwin@gmail.com
@@ -5,7 +5,7 @@ build-backend = "maturin"
5
5
 
6
6
  [project]
7
7
  name = "son_logic_engine"
8
- version = "0.2.2"
8
+ version = "0.2.3"
9
9
  description = "High-performance Rust search engine for RAG systems"
10
10
  authors = [{name = "Son", email = "sonbuwin@gmail.com"}]
11
11
  readme = "README.md"
@@ -1,14 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: son_logic_engine
3
- Version: 0.2.2
4
- Summary: High-performance Rust search engine for RAG systems
5
- Author-email: Son <sonbuwin@gmail.com>
6
- Requires-Python: >=3.7
7
- Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
8
-
9
- # son-logic-engine
10
-
11
- High-performance search filter for RAG systems written in Rust.
12
-
13
- Contact sonbuwin@gmail.com for mapping files.
14
-
@@ -1,5 +0,0 @@
1
- # son-logic-engine
2
-
3
- High-performance search filter for RAG systems written in Rust.
4
-
5
- Contact sonbuwin@gmail.com for mapping files.