blue-assistant 4.380.1__tar.gz → 4.401.1__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.
- {blue_assistant-4.380.1/blue_assistant.egg-info → blue_assistant-4.401.1}/PKG-INFO +12 -4
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/README.md +2 -2
- blue_assistant-4.401.1/blue_assistant/.abcli/RAG/query_pdf.sh +30 -0
- blue_assistant-4.401.1/blue_assistant/.abcli/RAG.sh +15 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/alias.sh +2 -0
- blue_assistant-4.401.1/blue_assistant/.abcli/tests/RAG_query_pdf.sh +16 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/tests/help.sh +3 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/README.py +11 -1
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/__init__.py +1 -1
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/config.env +3 -1
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/env.py +4 -0
- blue_assistant-4.401.1/blue_assistant/help/RAG.py +33 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/help/functions.py +2 -0
- blue_assistant-4.401.1/blue_assistant/sample.env +3 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1/blue_assistant.egg-info}/PKG-INFO +12 -4
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant.egg-info/SOURCES.txt +4 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant.egg-info/requires.txt +7 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/requirements.txt +9 -0
- blue_assistant-4.380.1/blue_assistant/sample.env +0 -1
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/LICENSE +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/MANIFEST.in +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/abcli.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/actions.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/blue_assistant.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/browse.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/hue/create_user.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/hue/list.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/hue/set.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/hue.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/script/list.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/script/run.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/script.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/tests/README.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/tests/script_list.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/tests/script_run.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/tests/version.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/tests/web_crawl.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/tests/web_fetch.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/web/crawl.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/web/fetch.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/web.sh +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/__main__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/functions.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/help/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/help/__main__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/help/hue.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/help/script.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/help/web.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/host.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/logger.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/__main__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/actions/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/actions/generate_image.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/actions/generate_text.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/actions/generic.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/actions/web_crawl.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/load.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/base/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/base/classes.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/base/root.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/blue_amo/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/blue_amo/actions/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/blue_amo/actions/setting_frame_prompts.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/blue_amo/actions/stitching_the_frames.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/blue_amo/classes.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/functions.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/__main__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/api.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/classes.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/colors.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/orbital_data_explorer/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/orbital_data_explorer/actions/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/orbital_data_explorer/actions/expanding_the_extractions.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/orbital_data_explorer/classes.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/urls.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/web/__init__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/web/__main__.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/web/crawl.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/web/fetch.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/web/functions.py +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant.egg-info/dependency_links.txt +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant.egg-info/top_level.txt +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/pyproject.toml +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/setup.cfg +0 -0
- {blue_assistant-4.380.1 → blue_assistant-4.401.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: blue_assistant
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.401.1
|
4
4
|
Summary: 🧠 An AI Assistant.
|
5
5
|
Home-page: https://github.com/kamangir/blue-assistant
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
@@ -33,6 +33,13 @@ Requires-Dist: tqdm
|
|
33
33
|
Requires-Dist: beautifulsoup4
|
34
34
|
Requires-Dist: networkx
|
35
35
|
Requires-Dist: pydot
|
36
|
+
Requires-Dist: openai
|
37
|
+
Requires-Dist: faiss-cpu
|
38
|
+
Requires-Dist: langchain
|
39
|
+
Requires-Dist: pypdf2
|
40
|
+
Requires-Dist: langchain_openai
|
41
|
+
Requires-Dist: sentence-transformers
|
42
|
+
Requires-Dist: langchain_community
|
36
43
|
Dynamic: author
|
37
44
|
Dynamic: author-email
|
38
45
|
Dynamic: classifier
|
@@ -40,6 +47,7 @@ Dynamic: description
|
|
40
47
|
Dynamic: description-content-type
|
41
48
|
Dynamic: home-page
|
42
49
|
Dynamic: license
|
50
|
+
Dynamic: license-file
|
43
51
|
Dynamic: requires-dist
|
44
52
|
Dynamic: summary
|
45
53
|
|
@@ -56,13 +64,13 @@ pip install blue-assistant
|
|
56
64
|
| | | |
|
57
65
|
| --- | --- | --- |
|
58
66
|
| [`orbital-data-explorer`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/orbital_data_explorer) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/orbital_data_explorer) Poking around [Orbital Data Explorer](https://ode.rsl.wustl.edu/) with an [AI DAG](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/orbital_data_explorer/metadata.yaml). ⏸️ | [`@hue`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/hue) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/hue) "[Hey AI](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/hue/metadata.yaml), help me write code to send color commands to the [Hue LED lights](https://www.philips-hue.com/en-ca) in my apartment." | [`blue-amo`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/blue_amo/README.md) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/blue_amo/README.md) Story development and visualization, with an [AI DAG](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/blue_amo/metadata.yaml). |
|
59
|
-
| [`🌀 blue script`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/) A minimal AI DAG interface. | | [``@web``](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/web/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/web/) A minimal web interface for an AI agent. |
|
67
|
+
| [`🌀 blue script`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/) A minimal AI DAG interface. | [``@RAG``](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/RAG/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/RAG/) RAG on a DAG. 🔥 | [``@web``](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/web/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/web/) A minimal web interface for an AI agent. |
|
60
68
|
|
61
69
|
---
|
62
70
|
|
63
71
|
|
64
72
|
[](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-assistant/) [](https://pypistats.org/packages/blue-assistant)
|
65
73
|
|
66
|
-
built by 🌀 [`blue_options-4.240.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.
|
74
|
+
built by 🌀 [`blue_options-4.240.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.401.1`](https://github.com/kamangir/blue-assistant).
|
67
75
|
|
68
76
|
built by 🌀 [`blueness-3.96.1`](https://github.com/kamangir/blueness).
|
@@ -68,11 +68,11 @@ graph LR
|
|
68
68
|
| | | |
|
69
69
|
| --- | --- | --- |
|
70
70
|
| [`orbital-data-explorer`](./blue_assistant/script/repository/orbital_data_explorer) [](./blue_assistant/script/repository/orbital_data_explorer) Poking around [Orbital Data Explorer](https://ode.rsl.wustl.edu/) with an [AI DAG](./blue_assistant/script/repository/orbital_data_explorer/metadata.yaml). ⏸️ | [`@hue`](./blue_assistant/script/repository/hue) [](./blue_assistant/script/repository/hue) "[Hey AI](./blue_assistant/script/repository/hue/metadata.yaml), help me write code to send color commands to the [Hue LED lights](https://www.philips-hue.com/en-ca) in my apartment." | [`blue-amo`](./blue_assistant/script/repository/blue_amo/README.md) [](./blue_assistant/script/repository/blue_amo/README.md) Story development and visualization, with an [AI DAG](./blue_assistant/script/repository/blue_amo/metadata.yaml). |
|
71
|
-
| [`🌀 blue script`](./blue_assistant/script/) [](./blue_assistant/script/) A minimal AI DAG interface. | | [``@web``](./blue_assistant/web/) [](./blue_assistant/web/) A minimal web interface for an AI agent. |
|
71
|
+
| [`🌀 blue script`](./blue_assistant/script/) [](./blue_assistant/script/) A minimal AI DAG interface. | [``@RAG``](./blue_assistant/RAG/) [](./blue_assistant/RAG/) RAG on a DAG. 🔥 | [``@web``](./blue_assistant/web/) [](./blue_assistant/web/) A minimal web interface for an AI agent. |
|
72
72
|
|
73
73
|
---
|
74
74
|
|
75
75
|
|
76
76
|
[](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-assistant/) [](https://pypistats.org/packages/blue-assistant)
|
77
77
|
|
78
|
-
built by 🌀 [`blue_options-4.240.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.
|
78
|
+
built by 🌀 [`blue_options-4.240.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.401.1`](https://github.com/kamangir/blue-assistant).
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#! /usr/bin/env bash
|
2
|
+
|
3
|
+
function blue_assistant_RAG_query_pdf() {
|
4
|
+
local options=$1
|
5
|
+
local do_dryrun=$(abcli_option_int "$options" dryrun 0)
|
6
|
+
local do_download=$(abcli_option_int "$options" download $(abcli_not $do_dryrun))
|
7
|
+
local filename=$(abcli_option "$options" filename document.pdf)
|
8
|
+
local do_upload=$(abcli_option_int "$options" upload $(abcli_not $do_dryrun))
|
9
|
+
|
10
|
+
local object_name=$(abcli_clarify_object $2 .)
|
11
|
+
[[ "$do_download" == 1 ]] &&
|
12
|
+
abcli_download - $object_name
|
13
|
+
|
14
|
+
local question=${3:-void}
|
15
|
+
local encoded_question=${question// /__}
|
16
|
+
|
17
|
+
abcli_eval dryrun=$do_dryrun \
|
18
|
+
python3 -m blue_assistant.RAG \
|
19
|
+
query_pdf \
|
20
|
+
--object_name $object_name \
|
21
|
+
--filename $filename \
|
22
|
+
--encoded_question $encoded_question \
|
23
|
+
"${@:4}"
|
24
|
+
[[ $? -ne 0 ]] && return 1
|
25
|
+
|
26
|
+
[[ "$do_upload" == 1 ]] &&
|
27
|
+
abcli_upload - $object_name
|
28
|
+
|
29
|
+
return 0
|
30
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#! /usr/bin/env bash
|
2
|
+
|
3
|
+
function blue_assistant_RAG() {
|
4
|
+
local task=$(abcli_unpack_keyword $1 help)
|
5
|
+
|
6
|
+
local function_name=blue_assistant_RAG_$task
|
7
|
+
if [[ $(type -t $function_name) == "function" ]]; then
|
8
|
+
$function_name "${@:2}"
|
9
|
+
return
|
10
|
+
fi
|
11
|
+
|
12
|
+
python3 -m blue_assistant.RAG "$@"
|
13
|
+
}
|
14
|
+
|
15
|
+
abcli_source_caller_suffix_path /RAG
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#! /usr/bin/env bash
|
2
|
+
|
3
|
+
function test_blue_assistant_RAG_query_pdf() {
|
4
|
+
local options=$1
|
5
|
+
|
6
|
+
local object_name=$(abcli_mlflow_tags_search \
|
7
|
+
contains=latest-giza \
|
8
|
+
--log 0 \
|
9
|
+
--count 1)
|
10
|
+
abcli_assert $object_name - non-empty
|
11
|
+
|
12
|
+
blue_assistant_RAG_query_pdf \
|
13
|
+
~upload,filename=giza,$options \
|
14
|
+
$object_name \
|
15
|
+
"What is the importance of Bash in AI? in less than 20 words."
|
16
|
+
}
|
@@ -33,7 +33,12 @@ items = README.Items(
|
|
33
33
|
"description": "A minimal AI DAG interface.",
|
34
34
|
"url": "./blue_assistant/script/",
|
35
35
|
},
|
36
|
-
{
|
36
|
+
{
|
37
|
+
"name": "`@RAG`",
|
38
|
+
"marquee": "https://github.com/kamangir/assets/raw/main/orbital-data-explorer-2025-03-16-xoo5vc/thumbnail-workflow.png?raw=true",
|
39
|
+
"description": " RAG on a DAG. 🔥",
|
40
|
+
"url": "./blue_assistant/RAG/",
|
41
|
+
},
|
37
42
|
{
|
38
43
|
"name": "`@web`",
|
39
44
|
"marquee": "https://github.com/kamangir/assets/raw/main/blue-plugin/marquee.png?raw=true",
|
@@ -74,6 +79,11 @@ def build():
|
|
74
79
|
{"path": "script/repository/hue/docs/round-1.md"},
|
75
80
|
{"path": "script/repository/hue/docs"},
|
76
81
|
#
|
82
|
+
{"path": "RAG/docs/round-1.md"},
|
83
|
+
{"path": "RAG/docs/round-2.md"},
|
84
|
+
{"path": "RAG/docs/round-3.md"},
|
85
|
+
{"path": "RAG/docs"},
|
86
|
+
#
|
77
87
|
{"path": "script/"},
|
78
88
|
{"path": "web/"},
|
79
89
|
]
|
@@ -19,3 +19,7 @@ HUE_BRIDGE_IP_ADDRESS = get_env("HUE_BRIDGE_IP_ADDRESS")
|
|
19
19
|
HUE_BRIDGE_USERNAME = get_env("HUE_BRIDGE_USERNAME")
|
20
20
|
HUE_TEST_DEFAULT_INTERVAL = get_env("HUE_TEST_DEFAULT_INTERVAL", 0.01)
|
21
21
|
HUE_MAX_SATURATION = get_env("HUE_MAX_SATURATION", 254)
|
22
|
+
|
23
|
+
RAG_DEFAULT_DOCUMENTS_OBJECT_NAME = get_env("RAG_DEFAULT_DOCUMENTS_OBJECT_NAME")
|
24
|
+
|
25
|
+
HUGGINGFACEHUB_API_TOKEN = get_env("HUGGINGFACEHUB_API_TOKEN")
|
@@ -0,0 +1,33 @@
|
|
1
|
+
from typing import List
|
2
|
+
|
3
|
+
from blue_options.terminal import show_usage, xtra
|
4
|
+
|
5
|
+
|
6
|
+
def help_query_pdf(
|
7
|
+
tokens: List[str],
|
8
|
+
mono: bool,
|
9
|
+
) -> str:
|
10
|
+
options = "".join(
|
11
|
+
[
|
12
|
+
xtra("~download,dryrun,", mono=mono),
|
13
|
+
"filename=<filename.pdf>",
|
14
|
+
xtra(",~upload", mono=mono),
|
15
|
+
]
|
16
|
+
)
|
17
|
+
|
18
|
+
return show_usage(
|
19
|
+
[
|
20
|
+
"@RAG",
|
21
|
+
"query_pdf",
|
22
|
+
f"[{options}]",
|
23
|
+
"[.|<object-name>]",
|
24
|
+
"<question>",
|
25
|
+
],
|
26
|
+
"query <question> in <object-name>/<filename.pdf>.",
|
27
|
+
mono=mono,
|
28
|
+
)
|
29
|
+
|
30
|
+
|
31
|
+
help_functions = {
|
32
|
+
"query_pdf": help_query_pdf,
|
33
|
+
}
|
@@ -5,6 +5,7 @@ from abcli.help.generic import help_functions as generic_help_functions
|
|
5
5
|
|
6
6
|
from blue_assistant import ALIAS
|
7
7
|
from blue_assistant.help.hue import help_functions as help_hue
|
8
|
+
from blue_assistant.help.RAG import help_functions as help_RAG
|
8
9
|
from blue_assistant.help.script import help_functions as help_script
|
9
10
|
from blue_assistant.help.web import help_functions as help_web
|
10
11
|
|
@@ -32,6 +33,7 @@ help_functions.update(
|
|
32
33
|
{
|
33
34
|
"browse": help_browse,
|
34
35
|
"hue": help_hue,
|
36
|
+
"RAG": help_RAG,
|
35
37
|
"script": help_script,
|
36
38
|
"web": help_web,
|
37
39
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: blue_assistant
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.401.1
|
4
4
|
Summary: 🧠 An AI Assistant.
|
5
5
|
Home-page: https://github.com/kamangir/blue-assistant
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
@@ -33,6 +33,13 @@ Requires-Dist: tqdm
|
|
33
33
|
Requires-Dist: beautifulsoup4
|
34
34
|
Requires-Dist: networkx
|
35
35
|
Requires-Dist: pydot
|
36
|
+
Requires-Dist: openai
|
37
|
+
Requires-Dist: faiss-cpu
|
38
|
+
Requires-Dist: langchain
|
39
|
+
Requires-Dist: pypdf2
|
40
|
+
Requires-Dist: langchain_openai
|
41
|
+
Requires-Dist: sentence-transformers
|
42
|
+
Requires-Dist: langchain_community
|
36
43
|
Dynamic: author
|
37
44
|
Dynamic: author-email
|
38
45
|
Dynamic: classifier
|
@@ -40,6 +47,7 @@ Dynamic: description
|
|
40
47
|
Dynamic: description-content-type
|
41
48
|
Dynamic: home-page
|
42
49
|
Dynamic: license
|
50
|
+
Dynamic: license-file
|
43
51
|
Dynamic: requires-dist
|
44
52
|
Dynamic: summary
|
45
53
|
|
@@ -56,13 +64,13 @@ pip install blue-assistant
|
|
56
64
|
| | | |
|
57
65
|
| --- | --- | --- |
|
58
66
|
| [`orbital-data-explorer`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/orbital_data_explorer) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/orbital_data_explorer) Poking around [Orbital Data Explorer](https://ode.rsl.wustl.edu/) with an [AI DAG](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/orbital_data_explorer/metadata.yaml). ⏸️ | [`@hue`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/hue) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/hue) "[Hey AI](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/hue/metadata.yaml), help me write code to send color commands to the [Hue LED lights](https://www.philips-hue.com/en-ca) in my apartment." | [`blue-amo`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/blue_amo/README.md) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/blue_amo/README.md) Story development and visualization, with an [AI DAG](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/repository/blue_amo/metadata.yaml). |
|
59
|
-
| [`🌀 blue script`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/) A minimal AI DAG interface. | | [``@web``](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/web/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/web/) A minimal web interface for an AI agent. |
|
67
|
+
| [`🌀 blue script`](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/script/) A minimal AI DAG interface. | [``@RAG``](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/RAG/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/RAG/) RAG on a DAG. 🔥 | [``@web``](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/web/) [](https://github.com/kamangir/blue-assistant/blob/main/blue_assistant/web/) A minimal web interface for an AI agent. |
|
60
68
|
|
61
69
|
---
|
62
70
|
|
63
71
|
|
64
72
|
[](https://github.com/kamangir/blue-assistant/actions/workflows/pylint.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/pytest.yml) [](https://github.com/kamangir/blue-assistant/actions/workflows/bashtest.yml) [](https://pypi.org/project/blue-assistant/) [](https://pypistats.org/packages/blue-assistant)
|
65
73
|
|
66
|
-
built by 🌀 [`blue_options-4.240.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.
|
74
|
+
built by 🌀 [`blue_options-4.240.1`](https://github.com/kamangir/awesome-bash-cli), based on 🧠 [`blue_assistant-4.401.1`](https://github.com/kamangir/blue-assistant).
|
67
75
|
|
68
76
|
built by 🌀 [`blueness-3.96.1`](https://github.com/kamangir/blueness).
|
@@ -19,6 +19,7 @@ blue_assistant.egg-info/SOURCES.txt
|
|
19
19
|
blue_assistant.egg-info/dependency_links.txt
|
20
20
|
blue_assistant.egg-info/requires.txt
|
21
21
|
blue_assistant.egg-info/top_level.txt
|
22
|
+
blue_assistant/.abcli/RAG.sh
|
22
23
|
blue_assistant/.abcli/abcli.sh
|
23
24
|
blue_assistant/.abcli/actions.sh
|
24
25
|
blue_assistant/.abcli/alias.sh
|
@@ -27,11 +28,13 @@ blue_assistant/.abcli/browse.sh
|
|
27
28
|
blue_assistant/.abcli/hue.sh
|
28
29
|
blue_assistant/.abcli/script.sh
|
29
30
|
blue_assistant/.abcli/web.sh
|
31
|
+
blue_assistant/.abcli/RAG/query_pdf.sh
|
30
32
|
blue_assistant/.abcli/hue/create_user.sh
|
31
33
|
blue_assistant/.abcli/hue/list.sh
|
32
34
|
blue_assistant/.abcli/hue/set.sh
|
33
35
|
blue_assistant/.abcli/script/list.sh
|
34
36
|
blue_assistant/.abcli/script/run.sh
|
37
|
+
blue_assistant/.abcli/tests/RAG_query_pdf.sh
|
35
38
|
blue_assistant/.abcli/tests/README.sh
|
36
39
|
blue_assistant/.abcli/tests/help.sh
|
37
40
|
blue_assistant/.abcli/tests/script_list.sh
|
@@ -41,6 +44,7 @@ blue_assistant/.abcli/tests/web_crawl.sh
|
|
41
44
|
blue_assistant/.abcli/tests/web_fetch.sh
|
42
45
|
blue_assistant/.abcli/web/crawl.sh
|
43
46
|
blue_assistant/.abcli/web/fetch.sh
|
47
|
+
blue_assistant/help/RAG.py
|
44
48
|
blue_assistant/help/__init__.py
|
45
49
|
blue_assistant/help/__main__.py
|
46
50
|
blue_assistant/help/functions.py
|
@@ -1 +0,0 @@
|
|
1
|
-
HUE_BRIDGE_USERNAME=
|
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
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/.abcli/tests/script_list.sh
RENAMED
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
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/actions/generate_image.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/actions/generate_text.py
RENAMED
File without changes
|
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/actions/web_crawl.py
RENAMED
File without changes
|
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/__init__.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/base/__init__.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/base/classes.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/base/root.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/functions.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/__init__.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/__main__.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/api.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/classes.py
RENAMED
File without changes
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant/script/repository/hue/colors.py
RENAMED
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
|
{blue_assistant-4.380.1 → blue_assistant-4.401.1}/blue_assistant.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|