pirag 0.1.5__py3-none-any.whl → 0.1.6__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.
app/main.py CHANGED
@@ -58,14 +58,12 @@ subparsers.add_parser(
58
58
 
59
59
  def main():
60
60
  args = parser.parse_args()
61
-
62
- command_message = f"with command: {args.command}" if args.command else ""
63
- logger.info(f"RAG Started {command_message}")
64
-
65
61
  setup_logger(
66
62
  log_level = args.log_level,
67
63
  log_dir = args.log_dir,
68
64
  )
65
+ command_message = f"with command: {args.command}" if args.command else ""
66
+ logger.info(f"RAG Started {command_message}")
69
67
  logger.debug(f"Parsed arguments: {args}")
70
68
 
71
69
  if args.command == 'doctor':
app/rag/config.py CHANGED
@@ -8,15 +8,6 @@ LOG_FILE_FORMAT = f"{LOG_TIME_FORMAT} | {{level: <8}} | {{name}}:{{function}}:{{
8
8
  LOG_CONSOLE_FORMAT_FULL = f"<green>{LOG_TIME_FORMAT}</green> | <level>{{level: <8}}</level> | <cyan>{{name}}</cyan>:<cyan>{{function}}</cyan>:<cyan>{{line}}</cyan> - <level>{{message}}</level>\n"
9
9
  LOG_CONSOLE_FORMAT_SIMPLE = f"<green>{LOG_TIME_FORMAT}</green> | <level>{{level: <8}}</level> | <level>{{message}}</level>\n"
10
10
 
11
- # Initial logger setup before setup_logger()
12
- logger.remove()
13
- logger.add(
14
- sink = sys.stderr,
15
- level = "INFO",
16
- format = lambda record: LOG_CONSOLE_FORMAT_SIMPLE if record["level"].name == "INFO" else LOG_CONSOLE_FORMAT_FULL,
17
- colorize = True
18
- )
19
-
20
11
  def setup_logger(log_level: str, log_dir: str):
21
12
  """Configure logger with specified level and outputs"""
22
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pirag
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: CLI Projects of On-Premise RAG. You can use your own LLM and vector DB. Or just add remote LLM servers and vector DB.
5
5
  Author-email: semir4in <semir4in@gmail.com>, jyje <jyjeon@outlook.com>
6
6
  Project-URL: Homepage, https://github.com/jyje/pilot-onpremise-rag
@@ -31,6 +31,8 @@ Dynamic: license-file
31
31
  [![LangChain](https://img.shields.io/badge/LangChain-blue?style=flat&logo=Langchain&logoColor=white)](https://langchain.com)
32
32
  [![Milvus](https://img.shields.io/badge/Milvus-red?style=flat&logo=Milvus&logoColor=white)](https://milvus.io/)
33
33
  [![MinIO](https://img.shields.io/badge/MinIO-red?style=flat&logo=MinIO&logoColor=white)](https://min.io/)
34
+
35
+ [![PyPI - Version](https://img.shields.io/pypi/v/pirag?logo=pypi&logoColor=white)](https://pypi.org/project/pirag/)
34
36
  [![Build Status](https://github.com/jyje/pilot-onpremise-rag/actions/workflows/build-and-publish.yml/badge.svg)](https://github.com/jyje/pilot-onpremise-rag/actions/workflows/build-and-publish.yml)
35
37
  <!-- [![Docker](https://img.shields.io/badge/Docker-blue?style=flat&logo=Docker&logoColor=white)](https://docker.com) -->
36
38
 
@@ -42,12 +44,9 @@ Dynamic: license-file
42
44
 
43
45
  ## 🔧 Setup
44
46
 
45
- ### (Optional) Setup External Dependencies
47
+ ### Install pirag from PyPI
46
48
  ```bash
47
- git clone https://github.com/jyje/pilot-onpremise-rag
48
- cd pilot-onpremise-rag
49
-
50
- docker compose -f docker/compose.yaml up
49
+ pip install pirag
51
50
  ```
52
51
 
53
52
  ### Install pirag from source
@@ -58,9 +57,12 @@ cd pilot-onpremise-rag
58
57
  pip install --upgrade -e .
59
58
  ```
60
59
 
61
- ### Install pirag from PyPI
60
+ ### (Optional) Setup External Dependencies
62
61
  ```bash
63
- pip install --upgrade pirag
62
+ git clone https://github.com/jyje/pilot-onpremise-rag
63
+ cd pilot-onpremise-rag
64
+
65
+ docker compose -f docker/compose.yaml up
64
66
  ```
65
67
 
66
68
  ## 📚 Usage
@@ -1,8 +1,8 @@
1
- app/main.py,sha256=Zl9yGtnZqTH8-0ljdvsvvQ_7Nksv8_1wo-oZntmhbos,2241
1
+ app/main.py,sha256=yPDjSCvnbrJBCHKSKmf6-2DhjLOhDd7WalfuMvfuC_s,2235
2
2
  app/requirements.txt,sha256=JFEWoQHN7hwDg0bDrWlN0vxZVR3oe8dYgv7mkHrQg1g,128
3
3
  app/setup.py,sha256=j9qcfapv_jOW3jORYGfHzKDAcxNRItHcHA34_mMDGj4,744
4
4
  app/rag/agent.py,sha256=u1ovyqALsmOMHDCW-hdlkMU72XdlTMiFJ-WRbLHHrYQ,2190
5
- app/rag/config.py,sha256=KVDuJ8wVwgb9akMSxEl8cTJ3p7UHECZHlXKiyRopj10,5172
5
+ app/rag/config.py,sha256=Gm4fAHZrlTiRmzRjyzx73TL0J3lxjhjlsFyuGG-8f0o,4914
6
6
  app/rag/ask/__init__.py,sha256=41lK4nmvWT2ZZ3G_FMtOiG-0JFJdDVT4zoxkoes8TaE,59
7
7
  app/rag/ask/config.py,sha256=tRHOBrEAmTMBaBmYPKPsRJmSaVyKT8-TBSDJQXEndxc,386
8
8
  app/rag/ask/router.py,sha256=5nuaaHzWVr2ltYqOuQ30ujmZ-GFyx-22OLVODILd5iE,76
@@ -19,9 +19,9 @@ app/rag/train/__init__.py,sha256=41lK4nmvWT2ZZ3G_FMtOiG-0JFJdDVT4zoxkoes8TaE,59
19
19
  app/rag/train/config.py,sha256=PO4iRMmZXViFHOMBbOOhnFHqBu8hRfbI61zGCuksKhI,668
20
20
  app/rag/train/router.py,sha256=5nuaaHzWVr2ltYqOuQ30ujmZ-GFyx-22OLVODILd5iE,76
21
21
  app/rag/train/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- pirag-0.1.5.dist-info/licenses/LICENSE,sha256=gBUmwRyDQYI4Q4Ju5S88urvB-B-nqsXN45n8oQ3DZ3Y,1079
23
- pirag-0.1.5.dist-info/METADATA,sha256=SXdyCa3Og7nEhHDl_AZNcN-j7FT7GY6zanku4Swlfuo,5430
24
- pirag-0.1.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
25
- pirag-0.1.5.dist-info/entry_points.txt,sha256=1tHs5rP66AVq5SMEWRRIWRf_XqJo2Gb1TJl9-Kw_MSo,40
26
- pirag-0.1.5.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
27
- pirag-0.1.5.dist-info/RECORD,,
22
+ pirag-0.1.6.dist-info/licenses/LICENSE,sha256=gBUmwRyDQYI4Q4Ju5S88urvB-B-nqsXN45n8oQ3DZ3Y,1079
23
+ pirag-0.1.6.dist-info/METADATA,sha256=jNjeKOkfiXZkL8EFdO_lUH7gUqiErbmE6pWMBaraeuM,5537
24
+ pirag-0.1.6.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
25
+ pirag-0.1.6.dist-info/entry_points.txt,sha256=1tHs5rP66AVq5SMEWRRIWRf_XqJo2Gb1TJl9-Kw_MSo,40
26
+ pirag-0.1.6.dist-info/top_level.txt,sha256=io9g7LCbfmTG1SFKgEOGXmCFB9uMP2H5lerm0HiHWQE,4
27
+ pirag-0.1.6.dist-info/RECORD,,
File without changes