pirag 0.1.5__tar.gz → 0.1.6__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.
Files changed (32) hide show
  1. {pirag-0.1.5 → pirag-0.1.6}/PKG-INFO +10 -8
  2. {pirag-0.1.5 → pirag-0.1.6}/README.md +9 -7
  3. {pirag-0.1.5 → pirag-0.1.6}/app/main.py +2 -4
  4. {pirag-0.1.5 → pirag-0.1.6}/app/rag/config.py +0 -9
  5. {pirag-0.1.5 → pirag-0.1.6}/pirag.egg-info/PKG-INFO +10 -8
  6. {pirag-0.1.5 → pirag-0.1.6}/pyproject.toml +1 -1
  7. {pirag-0.1.5 → pirag-0.1.6}/LICENSE +0 -0
  8. {pirag-0.1.5 → pirag-0.1.6}/app/rag/agent.py +0 -0
  9. {pirag-0.1.5 → pirag-0.1.6}/app/rag/ask/__init__.py +0 -0
  10. {pirag-0.1.5 → pirag-0.1.6}/app/rag/ask/config.py +0 -0
  11. {pirag-0.1.5 → pirag-0.1.6}/app/rag/ask/router.py +0 -0
  12. {pirag-0.1.5 → pirag-0.1.6}/app/rag/ask/service.py +0 -0
  13. {pirag-0.1.5 → pirag-0.1.6}/app/rag/doctor/__init__.py +0 -0
  14. {pirag-0.1.5 → pirag-0.1.6}/app/rag/doctor/config.py +0 -0
  15. {pirag-0.1.5 → pirag-0.1.6}/app/rag/doctor/router.py +0 -0
  16. {pirag-0.1.5 → pirag-0.1.6}/app/rag/doctor/service.py +0 -0
  17. {pirag-0.1.5 → pirag-0.1.6}/app/rag/test/__init__.py +0 -0
  18. {pirag-0.1.5 → pirag-0.1.6}/app/rag/test/config.py +0 -0
  19. {pirag-0.1.5 → pirag-0.1.6}/app/rag/test/router.py +0 -0
  20. {pirag-0.1.5 → pirag-0.1.6}/app/rag/test/service.py +0 -0
  21. {pirag-0.1.5 → pirag-0.1.6}/app/rag/train/__init__.py +0 -0
  22. {pirag-0.1.5 → pirag-0.1.6}/app/rag/train/config.py +0 -0
  23. {pirag-0.1.5 → pirag-0.1.6}/app/rag/train/router.py +0 -0
  24. {pirag-0.1.5 → pirag-0.1.6}/app/rag/train/service.py +0 -0
  25. {pirag-0.1.5 → pirag-0.1.6}/app/requirements.txt +0 -0
  26. {pirag-0.1.5 → pirag-0.1.6}/app/setup.py +0 -0
  27. {pirag-0.1.5 → pirag-0.1.6}/pirag.egg-info/SOURCES.txt +0 -0
  28. {pirag-0.1.5 → pirag-0.1.6}/pirag.egg-info/dependency_links.txt +0 -0
  29. {pirag-0.1.5 → pirag-0.1.6}/pirag.egg-info/entry_points.txt +0 -0
  30. {pirag-0.1.5 → pirag-0.1.6}/pirag.egg-info/requires.txt +0 -0
  31. {pirag-0.1.5 → pirag-0.1.6}/pirag.egg-info/top_level.txt +0 -0
  32. {pirag-0.1.5 → pirag-0.1.6}/setup.cfg +0 -0
@@ -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
@@ -12,6 +12,8 @@
12
12
  [![LangChain](https://img.shields.io/badge/LangChain-blue?style=flat&logo=Langchain&logoColor=white)](https://langchain.com)
13
13
  [![Milvus](https://img.shields.io/badge/Milvus-red?style=flat&logo=Milvus&logoColor=white)](https://milvus.io/)
14
14
  [![MinIO](https://img.shields.io/badge/MinIO-red?style=flat&logo=MinIO&logoColor=white)](https://min.io/)
15
+
16
+ [![PyPI - Version](https://img.shields.io/pypi/v/pirag?logo=pypi&logoColor=white)](https://pypi.org/project/pirag/)
15
17
  [![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)
16
18
  <!-- [![Docker](https://img.shields.io/badge/Docker-blue?style=flat&logo=Docker&logoColor=white)](https://docker.com) -->
17
19
 
@@ -23,12 +25,9 @@
23
25
 
24
26
  ## 🔧 Setup
25
27
 
26
- ### (Optional) Setup External Dependencies
28
+ ### Install pirag from PyPI
27
29
  ```bash
28
- git clone https://github.com/jyje/pilot-onpremise-rag
29
- cd pilot-onpremise-rag
30
-
31
- docker compose -f docker/compose.yaml up
30
+ pip install pirag
32
31
  ```
33
32
 
34
33
  ### Install pirag from source
@@ -39,9 +38,12 @@ cd pilot-onpremise-rag
39
38
  pip install --upgrade -e .
40
39
  ```
41
40
 
42
- ### Install pirag from PyPI
41
+ ### (Optional) Setup External Dependencies
43
42
  ```bash
44
- pip install --upgrade pirag
43
+ git clone https://github.com/jyje/pilot-onpremise-rag
44
+ cd pilot-onpremise-rag
45
+
46
+ docker compose -f docker/compose.yaml up
45
47
  ```
46
48
 
47
49
  ## 📚 Usage
@@ -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':
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "pirag"
3
- version = "0.1.5"
3
+ version = "0.1.6"
4
4
  description = "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
  authors = [
6
6
  { name="semir4in", email="semir4in@gmail.com" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes