sinapsis 0.2.7__tar.gz → 0.2.8__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.
- sinapsis-0.2.8/.dockerignore +1 -0
- sinapsis-0.2.8/.gitignore +49 -0
- sinapsis-0.2.8/.pre-commit-config.yaml +46 -0
- sinapsis-0.2.8/.python-version +1 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/PKG-INFO +7 -66
- sinapsis-0.2.8/README-internal.md +272 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/README.md +6 -65
- sinapsis-0.2.8/docker/Dockerfile +43 -0
- sinapsis-0.2.8/docker/compose.yaml +18 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/pyproject.toml +1 -1
- sinapsis-0.2.8/src/sinapsis/configs/hello_world_agent.yml +22 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis.egg-info/PKG-INFO +7 -66
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis.egg-info/SOURCES.txt +9 -0
- sinapsis-0.2.8/uv.lock +1313 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/LICENSE +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/setup.cfg +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/__init__.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/bin/sinapsis_cli.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/templates/__init__.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/templates/display_hello_world.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/templates/hello_world.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/webapp/__init__.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/webapp/agent_gradio_helper.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/webapp/agent_webapp_utils.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/webapp/chatbot_base.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis/webapp/tts_base.py +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis.egg-info/dependency_links.txt +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis.egg-info/entry_points.txt +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis.egg-info/requires.txt +0 -0
- {sinapsis-0.2.7 → sinapsis-0.2.8}/src/sinapsis.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.venv
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# Distribution / packaging
|
|
7
|
+
.Python
|
|
8
|
+
build/
|
|
9
|
+
develop-eggs/
|
|
10
|
+
dist/
|
|
11
|
+
downloads/
|
|
12
|
+
eggs/
|
|
13
|
+
.eggs/
|
|
14
|
+
lib/
|
|
15
|
+
lib64/
|
|
16
|
+
parts/
|
|
17
|
+
sdist/
|
|
18
|
+
var/
|
|
19
|
+
wheels/
|
|
20
|
+
share/python-wheels/
|
|
21
|
+
*.egg-info/
|
|
22
|
+
.installed.cfg
|
|
23
|
+
*.egg
|
|
24
|
+
MANIFEST
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
.pdm.toml
|
|
28
|
+
.pdm-python
|
|
29
|
+
.pdm-build/
|
|
30
|
+
|
|
31
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
32
|
+
__pypackages__/
|
|
33
|
+
|
|
34
|
+
# Environments
|
|
35
|
+
.env
|
|
36
|
+
.venv
|
|
37
|
+
env/
|
|
38
|
+
venv/
|
|
39
|
+
ENV/
|
|
40
|
+
env.bak/
|
|
41
|
+
venv.bak/
|
|
42
|
+
|
|
43
|
+
# mypy
|
|
44
|
+
.mypy_cache/
|
|
45
|
+
.dmypy.json
|
|
46
|
+
dmypy.json
|
|
47
|
+
|
|
48
|
+
artifacts/*
|
|
49
|
+
.vscode/*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
fail_fast: True
|
|
2
|
+
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v5.0.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: fix-encoding-pragma
|
|
8
|
+
exclude: 'docs/.*'
|
|
9
|
+
- id: check-yaml
|
|
10
|
+
exclude: 'docs/.*'
|
|
11
|
+
- id: trailing-whitespace
|
|
12
|
+
exclude: 'docs/.*'
|
|
13
|
+
- id: name-tests-test
|
|
14
|
+
args: ["--pytest-test-first"]
|
|
15
|
+
exclude: 'docs/.*'
|
|
16
|
+
- id: check-added-large-files
|
|
17
|
+
args: ["--maxkb=10"]
|
|
18
|
+
- id: check-docstring-first
|
|
19
|
+
exclude: 'docs/.*'
|
|
20
|
+
- id: check-case-conflict
|
|
21
|
+
exclude: 'docs/.*'
|
|
22
|
+
- id: check-shebang-scripts-are-executable
|
|
23
|
+
exclude: 'docs/.*'
|
|
24
|
+
|
|
25
|
+
- repo: https://github.com/gitleaks/gitleaks
|
|
26
|
+
rev: v8.16.1
|
|
27
|
+
hooks:
|
|
28
|
+
- id: gitleaks
|
|
29
|
+
exclude: '.*/tests/.*'
|
|
30
|
+
|
|
31
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
32
|
+
rev: v0.9.3
|
|
33
|
+
hooks:
|
|
34
|
+
- id: ruff
|
|
35
|
+
- id: ruff-format
|
|
36
|
+
|
|
37
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
38
|
+
rev: v1.14.1
|
|
39
|
+
hooks:
|
|
40
|
+
- id: mypy
|
|
41
|
+
name: mypy
|
|
42
|
+
entry: mypy
|
|
43
|
+
language: python
|
|
44
|
+
types: [python]
|
|
45
|
+
additional_dependencies:
|
|
46
|
+
- "pydantic>=2.8.2"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.10.12
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sinapsis
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: Modular and Universal AI platform
|
|
5
5
|
Author-email: SinapsisAI <dev@sinapsis.tech>
|
|
6
6
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -901,41 +901,18 @@ Tutorials for different projects within sinapsis are available at [sinapsis tuto
|
|
|
901
901
|
|
|
902
902
|
The sinapsis framework contains a list of public packages with **Templates** covering a wide range of tasks,
|
|
903
903
|
including computer vision, time series, nlp, llm'. These packages include:
|
|
904
|
-
|
|
905
|
-
<details>
|
|
906
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis anomaly detection</span></strong></summary>
|
|
907
|
-
|
|
908
|
-
* [sinapsis-anomaly-detection](https://github.com/Sinapsis-ai/sinapsis-anomaly-detection)
|
|
909
|
-
</details>
|
|
910
|
-
|
|
911
|
-
<details>
|
|
912
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis chatbots</span></strong></summary>
|
|
913
|
-
|
|
914
|
-
* [sinapsis-chatbots](https://github.com/Sinapsis-ai/sinapsis-chatbots)
|
|
915
|
-
</details>
|
|
916
|
-
|
|
917
904
|
<details>
|
|
918
905
|
<summary><strong><span style="font-size: 1.4em;">sinapsis data tools</span></strong></summary>
|
|
919
906
|
|
|
920
|
-
* [sinapsis-data-tools](https://github.com/Sinapsis-ai/sinapsis-data-tools)
|
|
921
|
-
</details>
|
|
922
|
-
|
|
923
|
-
<details>
|
|
924
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis framework converter</span></strong></summary>
|
|
925
907
|
|
|
926
|
-
* [sinapsis-
|
|
927
|
-
</details>
|
|
908
|
+
* [sinapsis-data-readers](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_readers)
|
|
928
909
|
|
|
929
|
-
|
|
930
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis huggingface</span></strong></summary>
|
|
910
|
+
* [sinapsis-data-writers](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_writers)
|
|
931
911
|
|
|
932
|
-
* [sinapsis-
|
|
933
|
-
</details>
|
|
912
|
+
* [sinapsis-data-visualization](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_visualization)
|
|
934
913
|
|
|
935
|
-
|
|
936
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis image transforms</span></strong></summary>
|
|
914
|
+
* [sinapsis-generic-data-tools](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_generic_data_tools)
|
|
937
915
|
|
|
938
|
-
* [sinapsis-image-transforms](https://github.com/Sinapsis-ai/sinapsis-image-transforms)
|
|
939
916
|
</details>
|
|
940
917
|
|
|
941
918
|
<details>
|
|
@@ -943,48 +920,12 @@ including computer vision, time series, nlp, llm'. These packages include:
|
|
|
943
920
|
|
|
944
921
|
* [sinapsis-langchain-readers](https://github.com/Sinapsis-ai/sinapsis-langchain)
|
|
945
922
|
</details>
|
|
946
|
-
|
|
947
|
-
<details>
|
|
948
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis ocr</span></strong></summary>
|
|
949
|
-
|
|
950
|
-
* [sinapsis-ocr](https://github.com/Sinapsis-ai/sinapsis-ocr)
|
|
951
|
-
</details>
|
|
952
|
-
|
|
953
|
-
<details>
|
|
954
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis object detection</span></strong></summary>
|
|
955
|
-
|
|
956
|
-
* [sinapsis-object-detection](https://github.com/Sinapsis-ai/sinapsis-object-detection)
|
|
957
|
-
</details>
|
|
958
|
-
|
|
959
|
-
<details>
|
|
960
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis openai</span></strong></summary>
|
|
961
|
-
|
|
962
|
-
* [sinapsis-openai](https://github.com/Sinapsis-ai/sinapsis-openai)
|
|
963
|
-
</details>
|
|
964
|
-
|
|
965
|
-
<details>
|
|
966
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis retina face trt</span></strong></summary>
|
|
967
|
-
|
|
968
|
-
* [sinapsis-retina-face-trt](https://github.com/Sinapsis-ai/sinapsis-retina-face-trt)
|
|
969
|
-
</details>
|
|
970
|
-
|
|
971
|
-
<details>
|
|
972
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis speech</span></strong></summary>
|
|
973
|
-
|
|
974
|
-
* [sinapsis-speech](https://github.com/Sinapsis-ai/sinapsis-speech)
|
|
975
|
-
</details>
|
|
976
|
-
|
|
977
923
|
<details>
|
|
978
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis
|
|
924
|
+
<summary><strong><span style="font-size: 1.4em;">sinapsis image transforms</span></strong></summary>
|
|
979
925
|
|
|
980
|
-
* [sinapsis-
|
|
926
|
+
* [sinapsis-image-transforms](https://github.com/Sinapsis-ai/sinapsis-image-transforms)
|
|
981
927
|
</details>
|
|
982
928
|
|
|
983
|
-
<details>
|
|
984
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis trackers</span></strong></summary>
|
|
985
|
-
|
|
986
|
-
* [sinapsis-trackers](https://github.com/Sinapsis-ai/sinapsis-trackers)
|
|
987
|
-
</details>
|
|
988
929
|
|
|
989
930
|
<h2 id="license">🔍 License</h2>
|
|
990
931
|
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<br>
|
|
3
|
+
<a href="https://sinapsis.tech/">
|
|
4
|
+
<img
|
|
5
|
+
src="https://github.com/Sinapsis-AI/brand-resources/blob/main/sinapsis_logo/4x/logo.png?raw=true"
|
|
6
|
+
alt="" width="300">
|
|
7
|
+
</a>
|
|
8
|
+
<br>
|
|
9
|
+
Sinapsis
|
|
10
|
+
<br>
|
|
11
|
+
</h1>
|
|
12
|
+
|
|
13
|
+
<h4 align="center">Build and manage AI workflows through modular and scalable Agents based on composite and reusable Templates. </h4>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="#installation">⚙️ Installation</a> •
|
|
17
|
+
<a href="#quickstart">⚡ Quickstart</a> •
|
|
18
|
+
<a href="#features">🎯 Features</a> •
|
|
19
|
+
<a href="#examples">👀 Examples</a> •
|
|
20
|
+
<a href="#documentation">📙 Documentation</a> •
|
|
21
|
+
<a href="#packages">📚 Available sinapsis packages</a>
|
|
22
|
+
<a href="#packages">🔍 License</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
<h4 align="center">
|
|
26
|
+
<b>Welcome to Sinapsis!</b>
|
|
27
|
+
The all-in-one AI-native platform that unifies the most powerful and innovative AI tools, from computer vision
|
|
28
|
+
and NLP to GenAI, speech processing, time-series analysis, and beyond. Whether you're building, experimenting, or
|
|
29
|
+
deploying, Sinapsis empowers you to create seamless end-to-end workflows, unlocking new possibilities and
|
|
30
|
+
accelerating AI-driven innovation like never before. Join us in shaping the future of AI!
|
|
31
|
+
</h4>
|
|
32
|
+
|
|
33
|
+
<h2 id="installation">⚙️ Installation</h2>
|
|
34
|
+
1. Clone the repository.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
git clone git@github.com:Sinapsis-ai/sinapsis.git
|
|
38
|
+
cd sinapsis
|
|
39
|
+
```
|
|
40
|
+
> [!IMPORTANT]
|
|
41
|
+
> Sinapsis requires Python 3.10 or higher.
|
|
42
|
+
>
|
|
43
|
+
|
|
44
|
+
We strongly encourage the use of <code>uv</code>, although any other package manager should work too.
|
|
45
|
+
If you need to install <code>uv</code> please see the [official documentation](https://docs.astral.sh/uv/getting-started/installation/#installation-methods).
|
|
46
|
+
|
|
47
|
+
<details>
|
|
48
|
+
<summary><strong><span style="font-size: 1.4em;">🐍 Install from PyPi </span></strong></summary>
|
|
49
|
+
|
|
50
|
+
2. Install using your favourite package manager.
|
|
51
|
+
|
|
52
|
+
Example with <code>uv</code>:
|
|
53
|
+
```bash
|
|
54
|
+
uv pip install sinapsis
|
|
55
|
+
```
|
|
56
|
+
or with raw <code>pip</code>:
|
|
57
|
+
```bash
|
|
58
|
+
pip install sinapsis
|
|
59
|
+
```
|
|
60
|
+
</details>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
<details>
|
|
64
|
+
<summary><strong><span style="font-size: 1.4em;">💻 Build from source with UV</span></strong></summary>
|
|
65
|
+
|
|
66
|
+
2. Create virtual environment and install dependencies:
|
|
67
|
+
```bash
|
|
68
|
+
uv sync --frozen --all-extras
|
|
69
|
+
```
|
|
70
|
+
3. Activate the virtual environment:
|
|
71
|
+
```bash
|
|
72
|
+
source .venv/bin/activate
|
|
73
|
+
```
|
|
74
|
+
4. Build and install the package:
|
|
75
|
+
```bash
|
|
76
|
+
uv build && uv pip install dist/sinapsis-0.1.0-py3-none-any.whl
|
|
77
|
+
```
|
|
78
|
+
</details>
|
|
79
|
+
|
|
80
|
+
<details>
|
|
81
|
+
<summary><strong><span style="font-size: 1.4em;">🐳 Build with Docker</span></strong></summary>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
Sinapsis provides Docker images with all dependencies pre-configured. To build images:
|
|
85
|
+
|
|
86
|
+
2. run the following command
|
|
87
|
+
```bash
|
|
88
|
+
docker compose -f docker/compose.yaml build
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
This will create two docker images:
|
|
92
|
+
- **sinapsis:base**: Contains UV package manager, git with SSH support, and Python 3.10 environment.
|
|
93
|
+
- **sinapsis-nvidia:base**: Same as base plus CUDA 12.4.0 support for GPU acceleration.
|
|
94
|
+
</details>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<h2 id="quickstart">⚡ Quickstart</h2>
|
|
98
|
+
|
|
99
|
+
<details>
|
|
100
|
+
<summary><strong><span style="font-size: 1.4em;">CLI usage</span></strong></summary>
|
|
101
|
+
|
|
102
|
+
The Sinapsis CLI provides an easy way to run agents and get information about templates:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Run an agent with a config file
|
|
106
|
+
sinapsis run config.yml
|
|
107
|
+
|
|
108
|
+
# Run an agent with profiler enabled
|
|
109
|
+
sinapsis run config.yml --enable-profiler
|
|
110
|
+
|
|
111
|
+
# List all available templates
|
|
112
|
+
sinapsis info --all-template-names
|
|
113
|
+
|
|
114
|
+
# Get detailed info about a specific template
|
|
115
|
+
sinapsis info --template TemplateName
|
|
116
|
+
|
|
117
|
+
# Get example config for a template
|
|
118
|
+
sinapsis info --example-template-config TemplateName
|
|
119
|
+
|
|
120
|
+
# Display info for all templates
|
|
121
|
+
sinapsis info --all
|
|
122
|
+
```
|
|
123
|
+
</details>
|
|
124
|
+
|
|
125
|
+
<details>
|
|
126
|
+
<summary><strong><span style="font-size: 1.4em;">📖 Hello World Sinapsis</span></strong></summary>
|
|
127
|
+
|
|
128
|
+
**Create a config file my_test_agent.yml:**
|
|
129
|
+
|
|
130
|
+
You can also use the ones defined under the ```src/configs/``` folder
|
|
131
|
+
```yaml
|
|
132
|
+
agent:
|
|
133
|
+
name: my_test_agent
|
|
134
|
+
|
|
135
|
+
templates:
|
|
136
|
+
- template_name: InputTemplate-1
|
|
137
|
+
class_name: InputTemplate
|
|
138
|
+
attributes: {}
|
|
139
|
+
|
|
140
|
+
- template_name: HelloWorld-1
|
|
141
|
+
class_name: HelloWorld
|
|
142
|
+
template_input: InputTemplate-1
|
|
143
|
+
attributes:
|
|
144
|
+
display_text: "Hello, this is my first template!"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Run the agent:**
|
|
148
|
+
```bash
|
|
149
|
+
sinapsis run my_test_agent.yml
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
**Output**
|
|
153
|
+
|
|
154
|
+
```console
|
|
155
|
+
... | DEBUG | my_test_agent:__instantiate_templates:105 - Initialized template: InputTemplate-1
|
|
156
|
+
... | DEBUG | my_test_agent:__instantiate_templates:105 - Initialized template: HelloWorld-1
|
|
157
|
+
... | DEBUG | my_test_agent:_log_agent_execution_order:119 - Execution Order
|
|
158
|
+
... | DEBUG | my_test_agent:_log_agent_execution_order:122 - Order: <<0>>, template name: <<InputTemplate-1>>
|
|
159
|
+
... | DEBUG | my_test_agent:_log_agent_execution_order:122 - Order: <<1>>, template name: <<HelloWorld-1>>
|
|
160
|
+
... | INFO | my_test_agent:_lazy_init:63 - Agent and templates initialized
|
|
161
|
+
... | INFO | my_test_agent:signal_block_if_needed:156 - Signaling block mode for HelloWorld-1 no: 2/2
|
|
162
|
+
... | INFO | my_test_agent:all_templates_finished:192 - All templates returned finished, stopping execution...
|
|
163
|
+
... | DEBUG | .../run_agent_from_config.py:run_agent_from_config:41 - result: DataContainer(container_id=abc..., images=[], audios=[], texts=[TextPacket(content='Hello, this is my first template!', id='abc...', source='HelloWorld-1', modified_by_templates=['HelloWorld-1'], embedding=[], generic_data={}, annotations=None)], time_series=[], binary_data=[], generic_data={})
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
</details>
|
|
167
|
+
|
|
168
|
+
<h2 id="features">🎯 Key Features</h2>
|
|
169
|
+
|
|
170
|
+
<details>
|
|
171
|
+
<summary><strong><span style="font-size: 1.4em;">Agents</span></strong></summary>
|
|
172
|
+
|
|
173
|
+
- Declarative workflows
|
|
174
|
+
- Multiple execution modes:
|
|
175
|
+
- Generator
|
|
176
|
+
- Single execute
|
|
177
|
+
- Continuous execution
|
|
178
|
+
- Sophisticated template orchestration:
|
|
179
|
+
- Topological sorting of execution order
|
|
180
|
+
- Parallel template execution
|
|
181
|
+
- Execution blocking control
|
|
182
|
+
- Built-in profiling capabilities:
|
|
183
|
+
- Execution time tracking
|
|
184
|
+
- State management:
|
|
185
|
+
- Dynamic attribute updates
|
|
186
|
+
- Failure handling
|
|
187
|
+
</details>
|
|
188
|
+
|
|
189
|
+
<details>
|
|
190
|
+
<summary><strong><span style="font-size: 1.4em;">Templates</span></strong></summary>
|
|
191
|
+
|
|
192
|
+
- Self-contained components
|
|
193
|
+
- Modular task-focused execution
|
|
194
|
+
- Eager or lazy evaluation
|
|
195
|
+
- Dynamic template definitions
|
|
196
|
+
- Composite templates
|
|
197
|
+
- SubAgents
|
|
198
|
+
|
|
199
|
+
</details>
|
|
200
|
+
|
|
201
|
+
<details>
|
|
202
|
+
<summary><strong><span style="font-size: 1.4em;">Data Containers</span></strong></summary>
|
|
203
|
+
|
|
204
|
+
- Universal data transport
|
|
205
|
+
- Domain agnostic design
|
|
206
|
+
- Native built-in support for images, audio, text, time series
|
|
207
|
+
- Multimodal data
|
|
208
|
+
|
|
209
|
+
</details>
|
|
210
|
+
|
|
211
|
+
<details>
|
|
212
|
+
<summary><strong><span style="font-size: 1.4em;">General</span></strong></summary>
|
|
213
|
+
|
|
214
|
+
- Data Validation and Type Safety through Pydantic
|
|
215
|
+
- YAML-based configuration files
|
|
216
|
+
</details>
|
|
217
|
+
|
|
218
|
+
<h2 id="examples">👀 Examples</h2>
|
|
219
|
+
|
|
220
|
+
You can find specific implementations of templates in:
|
|
221
|
+
|
|
222
|
+
* **Static Templates**
|
|
223
|
+
* [Hello World Template](src/sinapsis/templates/hello_world.py)
|
|
224
|
+
* [Sinapsis Video Readers](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_readers)
|
|
225
|
+
|
|
226
|
+
* **Dynamic Templates**
|
|
227
|
+
* [Sinapsis LangChain](https://github.com/Sinapsis-ai/sinapsis-langchain)
|
|
228
|
+
|
|
229
|
+
<h2 id="documentation">📙 Documentation</h2>
|
|
230
|
+
|
|
231
|
+
Documentation is available on the [sinapsis website](https://docs.sinapsis.tech/docs)
|
|
232
|
+
|
|
233
|
+
Tutorials for different projects within sinapsis are available at [sinapsis tutorials page](https://docs.sinapsis.tech/tutorials)
|
|
234
|
+
|
|
235
|
+
<h2 id="packages">📚 Available sinapsis packages</h2>
|
|
236
|
+
|
|
237
|
+
The sinapsis framework contains a list of public packages with **Templates** covering a wide range of tasks,
|
|
238
|
+
including computer vision, time series, nlp, llm'. These packages include:
|
|
239
|
+
<details>
|
|
240
|
+
<summary><strong><span style="font-size: 1.4em;">sinapsis data tools</span></strong></summary>
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
* [sinapsis-data-readers](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_readers): package with tools to handle the data reading, using different libraries to process images, videos, audios, etc.
|
|
244
|
+
|
|
245
|
+
* [sinapsis-data-writers](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_writers): package with tools to handle data writing, using different libraries to write in local environment images, audios, videos, etc.
|
|
246
|
+
|
|
247
|
+
* [sinapsis-data-visualization](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_visualization): package with data visualization and drawing tools.
|
|
248
|
+
|
|
249
|
+
* [sinapsis-generic-data-tools](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_generic_data_tools): package with generic tools for data handling; i.e., selection regions of interest, buffering of data, postprocessing of text, etc.
|
|
250
|
+
|
|
251
|
+
</details>
|
|
252
|
+
|
|
253
|
+
<details>
|
|
254
|
+
<summary><strong><span style="font-size: 1.4em;">sinapsis langchain</span></strong></summary>
|
|
255
|
+
|
|
256
|
+
* [sinapsis-langchain-readers](https://github.com/Sinapsis-ai/sinapsis-langchain): package with document readers using the langchain library.
|
|
257
|
+
</details>
|
|
258
|
+
<details>
|
|
259
|
+
<summary><strong><span style="font-size: 1.4em;">sinapsis image transforms</span></strong></summary>
|
|
260
|
+
|
|
261
|
+
* [sinapsis-image-transforms](https://github.com/Sinapsis-ai/sinapsis-image-transforms): package with templates using the Albumentations library to perform image transformations.
|
|
262
|
+
</details>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
<h2 id="license">🔍 License</h2>
|
|
266
|
+
|
|
267
|
+
This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the [LICENSE](LICENSE) file.
|
|
268
|
+
|
|
269
|
+
For commercial use, please refer to our [official Sinapsis website](https://sinapsis.tech) for information on obtaining a commercial license.
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
@@ -222,41 +222,18 @@ Tutorials for different projects within sinapsis are available at [sinapsis tuto
|
|
|
222
222
|
|
|
223
223
|
The sinapsis framework contains a list of public packages with **Templates** covering a wide range of tasks,
|
|
224
224
|
including computer vision, time series, nlp, llm'. These packages include:
|
|
225
|
-
|
|
226
|
-
<details>
|
|
227
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis anomaly detection</span></strong></summary>
|
|
228
|
-
|
|
229
|
-
* [sinapsis-anomaly-detection](https://github.com/Sinapsis-ai/sinapsis-anomaly-detection)
|
|
230
|
-
</details>
|
|
231
|
-
|
|
232
|
-
<details>
|
|
233
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis chatbots</span></strong></summary>
|
|
234
|
-
|
|
235
|
-
* [sinapsis-chatbots](https://github.com/Sinapsis-ai/sinapsis-chatbots)
|
|
236
|
-
</details>
|
|
237
|
-
|
|
238
225
|
<details>
|
|
239
226
|
<summary><strong><span style="font-size: 1.4em;">sinapsis data tools</span></strong></summary>
|
|
240
227
|
|
|
241
|
-
* [sinapsis-data-tools](https://github.com/Sinapsis-ai/sinapsis-data-tools)
|
|
242
|
-
</details>
|
|
243
|
-
|
|
244
|
-
<details>
|
|
245
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis framework converter</span></strong></summary>
|
|
246
228
|
|
|
247
|
-
* [sinapsis-
|
|
248
|
-
</details>
|
|
229
|
+
* [sinapsis-data-readers](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_readers)
|
|
249
230
|
|
|
250
|
-
|
|
251
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis huggingface</span></strong></summary>
|
|
231
|
+
* [sinapsis-data-writers](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_writers)
|
|
252
232
|
|
|
253
|
-
* [sinapsis-
|
|
254
|
-
</details>
|
|
233
|
+
* [sinapsis-data-visualization](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_data_visualization)
|
|
255
234
|
|
|
256
|
-
|
|
257
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis image transforms</span></strong></summary>
|
|
235
|
+
* [sinapsis-generic-data-tools](https://github.com/Sinapsis-ai/sinapsis-data-tools/tree/main/packages/sinapsis_generic_data_tools)
|
|
258
236
|
|
|
259
|
-
* [sinapsis-image-transforms](https://github.com/Sinapsis-ai/sinapsis-image-transforms)
|
|
260
237
|
</details>
|
|
261
238
|
|
|
262
239
|
<details>
|
|
@@ -264,48 +241,12 @@ including computer vision, time series, nlp, llm'. These packages include:
|
|
|
264
241
|
|
|
265
242
|
* [sinapsis-langchain-readers](https://github.com/Sinapsis-ai/sinapsis-langchain)
|
|
266
243
|
</details>
|
|
267
|
-
|
|
268
|
-
<details>
|
|
269
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis ocr</span></strong></summary>
|
|
270
|
-
|
|
271
|
-
* [sinapsis-ocr](https://github.com/Sinapsis-ai/sinapsis-ocr)
|
|
272
|
-
</details>
|
|
273
|
-
|
|
274
|
-
<details>
|
|
275
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis object detection</span></strong></summary>
|
|
276
|
-
|
|
277
|
-
* [sinapsis-object-detection](https://github.com/Sinapsis-ai/sinapsis-object-detection)
|
|
278
|
-
</details>
|
|
279
|
-
|
|
280
|
-
<details>
|
|
281
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis openai</span></strong></summary>
|
|
282
|
-
|
|
283
|
-
* [sinapsis-openai](https://github.com/Sinapsis-ai/sinapsis-openai)
|
|
284
|
-
</details>
|
|
285
|
-
|
|
286
|
-
<details>
|
|
287
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis retina face trt</span></strong></summary>
|
|
288
|
-
|
|
289
|
-
* [sinapsis-retina-face-trt](https://github.com/Sinapsis-ai/sinapsis-retina-face-trt)
|
|
290
|
-
</details>
|
|
291
|
-
|
|
292
|
-
<details>
|
|
293
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis speech</span></strong></summary>
|
|
294
|
-
|
|
295
|
-
* [sinapsis-speech](https://github.com/Sinapsis-ai/sinapsis-speech)
|
|
296
|
-
</details>
|
|
297
|
-
|
|
298
244
|
<details>
|
|
299
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis
|
|
245
|
+
<summary><strong><span style="font-size: 1.4em;">sinapsis image transforms</span></strong></summary>
|
|
300
246
|
|
|
301
|
-
* [sinapsis-
|
|
247
|
+
* [sinapsis-image-transforms](https://github.com/Sinapsis-ai/sinapsis-image-transforms)
|
|
302
248
|
</details>
|
|
303
249
|
|
|
304
|
-
<details>
|
|
305
|
-
<summary><strong><span style="font-size: 1.4em;">sinapsis trackers</span></strong></summary>
|
|
306
|
-
|
|
307
|
-
* [sinapsis-trackers](https://github.com/Sinapsis-ai/sinapsis-trackers)
|
|
308
|
-
</details>
|
|
309
250
|
|
|
310
251
|
<h2 id="license">🔍 License</h2>
|
|
311
252
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
ARG UBUNTU_VERSION=22.04
|
|
2
|
+
ARG CUDA_VERSION=12.4.0
|
|
3
|
+
FROM ubuntu:$UBUNTU_VERSION AS base
|
|
4
|
+
|
|
5
|
+
# install essential packages
|
|
6
|
+
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
7
|
+
build-essential \
|
|
8
|
+
python3.10 \
|
|
9
|
+
python3-pip \
|
|
10
|
+
curl \
|
|
11
|
+
ca-certificates \
|
|
12
|
+
-y libglib2.0-0 libgl1-mesa-glx \
|
|
13
|
+
&& apt clean && rm -rf /var/lib/apt/lists/*
|
|
14
|
+
|
|
15
|
+
# install uv
|
|
16
|
+
ADD https://astral.sh/uv/install.sh /uv-installer.sh
|
|
17
|
+
RUN sh /uv-installer.sh && rm /uv-installer.sh
|
|
18
|
+
ENV PATH="/root/.local/bin/:$PATH"
|
|
19
|
+
COPY . /app/
|
|
20
|
+
|
|
21
|
+
# sync all requirements including optional ones
|
|
22
|
+
WORKDIR /app/.venv
|
|
23
|
+
RUN uv sync --frozen --all-extras
|
|
24
|
+
|
|
25
|
+
# install the generated wheel for this app
|
|
26
|
+
RUN uv pip install sinapsis --extra-index-url https://pypi.sinapsis.tech
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
FROM nvidia/cuda:${CUDA_VERSION}-base-ubuntu$UBUNTU_VERSION AS nvidia-base
|
|
30
|
+
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
31
|
+
build-essential \
|
|
32
|
+
python3.10 \
|
|
33
|
+
python3-pip \
|
|
34
|
+
curl \
|
|
35
|
+
ca-certificates \
|
|
36
|
+
-y libglib2.0-0 libgl1-mesa-glx \
|
|
37
|
+
&& apt clean && rm -rf /var/lib/apt/lists/*
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
COPY --from=base /root/.local/bin /root/.local/bin
|
|
41
|
+
COPY --from=base /app/ /app/
|
|
42
|
+
ENV PATH="/root/.local/bin/:$PATH"
|
|
43
|
+
WORKDIR /app/.venv
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
services:
|
|
2
|
+
sinapsis-base: &default
|
|
3
|
+
image: sinapsis:base
|
|
4
|
+
build:
|
|
5
|
+
context: ../
|
|
6
|
+
dockerfile: docker/Dockerfile
|
|
7
|
+
target: base
|
|
8
|
+
ssh:
|
|
9
|
+
- default
|
|
10
|
+
environment:
|
|
11
|
+
PYTHONPATH: /lib/python3.10/:/app/.venv/lib/python3.10/site-packages
|
|
12
|
+
|
|
13
|
+
sinapsis-nvidia-base:
|
|
14
|
+
extends:
|
|
15
|
+
service: sinapsis-base
|
|
16
|
+
image: sinapsis-nvidia:base
|
|
17
|
+
build:
|
|
18
|
+
target: nvidia-base
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
agent:
|
|
2
|
+
name: hello_world_agent
|
|
3
|
+
attributes:
|
|
4
|
+
templates_to_profile: "HelloWorld"
|
|
5
|
+
description: "Hello world agent example"
|
|
6
|
+
|
|
7
|
+
templates:
|
|
8
|
+
- template_name: InputTemplate # template name can be anything but must be unique
|
|
9
|
+
class_name: InputTemplate
|
|
10
|
+
attributes: {}
|
|
11
|
+
|
|
12
|
+
- template_name: HelloWorld
|
|
13
|
+
class_name: HelloWorld
|
|
14
|
+
template_input: InputTemplate
|
|
15
|
+
attributes:
|
|
16
|
+
display_text: "Hello, this is my first template!"
|
|
17
|
+
|
|
18
|
+
- template_name: DisplayHelloWorld
|
|
19
|
+
class_name: DisplayHelloWorld
|
|
20
|
+
template_input: HelloWorld
|
|
21
|
+
attributes: {} # we did not define any attributes in our template
|
|
22
|
+
|