Spaces:
Running
Running
Split LynxKite into several Python packages.
Browse filesThis view is limited to 50 files because it contains too many changes. Β
See raw diff
- .gitignore +3 -1
- LICENSE.txt +0 -201
- README.md +6 -21
- lynxkite-app/MANIFEST.in +2 -0
- lynxkite-app/README.md +25 -0
- {data β lynxkite-app/data}/Graph RAG +0 -0
- {data β lynxkite-app/data}/Image processing +0 -0
- {data β lynxkite-app/data}/LynxScribe demo +249 -311
- {data β lynxkite-app/data}/NetworkX demo +0 -0
- {data β lynxkite-app/data}/PyTorch demo +0 -0
- {data β lynxkite-app/data}/RAG chatbot app +0 -0
- {data β lynxkite-app/data}/sql +0 -0
- lynxkite-app/pyproject.toml +39 -0
- run.sh β lynxkite-app/run.sh +0 -0
- lynxkite-app/src/build_frontend.py +26 -0
- {server β lynxkite-app/src/lynxkite}/__init__.py +0 -0
- lynxkite-app/src/lynxkite/__main__.py +13 -0
- {server β lynxkite-app/src/lynxkite}/crdt.py +0 -0
- {server β lynxkite-app/src/lynxkite}/main.py +24 -2
- lynxkite-app/src/lynxkite/web_assets/__init__.py +1 -0
- lynxkite-app/src/lynxkite/web_assets/assets/__init__.py +1 -0
- lynxkite-app/uv.lock +0 -0
- {web β lynxkite-app/web}/.gitignore +0 -0
- {web β lynxkite-app/web}/README.md +0 -0
- {web β lynxkite-app/web}/eslint.config.js +0 -0
- {web β lynxkite-app/web}/index.html +0 -0
- {web β lynxkite-app/web}/package-lock.json +0 -0
- {web β lynxkite-app/web}/package.json +4 -4
- {web β lynxkite-app/web}/postcss.config.js +0 -0
- {web β lynxkite-app/web}/src/Directory.tsx +0 -0
- {web β lynxkite-app/web}/src/apiTypes.ts +0 -0
- {web β lynxkite-app/web}/src/assets/favicon.ico +0 -0
- {web β lynxkite-app/web}/src/assets/logo.png +0 -0
- {web β lynxkite-app/web}/src/index.css +0 -0
- {web β lynxkite-app/web}/src/main.tsx +0 -0
- {web β lynxkite-app/web}/src/vite-env.d.ts +0 -0
- {web β lynxkite-app/web}/src/workspace/EnvironmentSelector.tsx +0 -0
- {web β lynxkite-app/web}/src/workspace/LynxKiteState.ts +0 -0
- {web β lynxkite-app/web}/src/workspace/NodeSearch.tsx +0 -0
- {web β lynxkite-app/web}/src/workspace/Workspace.tsx +1 -1
- {web β lynxkite-app/web}/src/workspace/nodes/LynxKiteNode.tsx +0 -0
- {web β lynxkite-app/web}/src/workspace/nodes/NodeParameter.tsx +10 -3
- {web β lynxkite-app/web}/src/workspace/nodes/NodeWithImage.tsx +0 -0
- {web β lynxkite-app/web}/src/workspace/nodes/NodeWithParams.tsx +0 -0
- {web β lynxkite-app/web}/src/workspace/nodes/NodeWithTableView.tsx +0 -0
- {web β lynxkite-app/web}/src/workspace/nodes/NodeWithVisualization.tsx +1 -1
- {web β lynxkite-app/web}/src/workspace/nodes/Table.tsx +0 -0
- {web β lynxkite-app/web}/tailwind.config.js +1 -0
- {web β lynxkite-app/web}/tsconfig.app.json +0 -0
- {web β lynxkite-app/web}/tsconfig.json +0 -0
.gitignore
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
# Editor directories and files
|
2 |
.vscode/*
|
3 |
!.vscode/extensions.json
|
4 |
.idea
|
@@ -9,3 +8,6 @@
|
|
9 |
*.sln
|
10 |
*.sw?
|
11 |
__pycache__
|
|
|
|
|
|
|
|
|
|
1 |
.vscode/*
|
2 |
!.vscode/extensions.json
|
3 |
.idea
|
|
|
8 |
*.sln
|
9 |
*.sw?
|
10 |
__pycache__
|
11 |
+
node_modules
|
12 |
+
dist
|
13 |
+
*.egg-info
|
LICENSE.txt
DELETED
@@ -1,201 +0,0 @@
|
|
1 |
-
Apache License
|
2 |
-
Version 2.0, January 2004
|
3 |
-
http://www.apache.org/licenses/
|
4 |
-
|
5 |
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6 |
-
|
7 |
-
1. Definitions.
|
8 |
-
|
9 |
-
"License" shall mean the terms and conditions for use, reproduction,
|
10 |
-
and distribution as defined by Sections 1 through 9 of this document.
|
11 |
-
|
12 |
-
"Licensor" shall mean the copyright owner or entity authorized by
|
13 |
-
the copyright owner that is granting the License.
|
14 |
-
|
15 |
-
"Legal Entity" shall mean the union of the acting entity and all
|
16 |
-
other entities that control, are controlled by, or are under common
|
17 |
-
control with that entity. For the purposes of this definition,
|
18 |
-
"control" means (i) the power, direct or indirect, to cause the
|
19 |
-
direction or management of such entity, whether by contract or
|
20 |
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21 |
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
22 |
-
|
23 |
-
"You" (or "Your") shall mean an individual or Legal Entity
|
24 |
-
exercising permissions granted by this License.
|
25 |
-
|
26 |
-
"Source" form shall mean the preferred form for making modifications,
|
27 |
-
including but not limited to software source code, documentation
|
28 |
-
source, and configuration files.
|
29 |
-
|
30 |
-
"Object" form shall mean any form resulting from mechanical
|
31 |
-
transformation or translation of a Source form, including but
|
32 |
-
not limited to compiled object code, generated documentation,
|
33 |
-
and conversions to other media types.
|
34 |
-
|
35 |
-
"Work" shall mean the work of authorship, whether in Source or
|
36 |
-
Object form, made available under the License, as indicated by a
|
37 |
-
copyright notice that is included in or attached to the work
|
38 |
-
(an example is provided in the Appendix below).
|
39 |
-
|
40 |
-
"Derivative Works" shall mean any work, whether in Source or Object
|
41 |
-
form, that is based on (or derived from) the Work and for which the
|
42 |
-
editorial revisions, annotations, elaborations, or other modifications
|
43 |
-
represent, as a whole, an original work of authorship. For the purposes
|
44 |
-
of this License, Derivative Works shall not include works that remain
|
45 |
-
separable from, or merely link (or bind by name) to the interfaces of,
|
46 |
-
the Work and Derivative Works thereof.
|
47 |
-
|
48 |
-
"Contribution" shall mean any work of authorship, including
|
49 |
-
the original version of the Work and any modifications or additions
|
50 |
-
to that Work or Derivative Works thereof, that is intentionally
|
51 |
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
52 |
-
or by an individual or Legal Entity authorized to submit on behalf of
|
53 |
-
the copyright owner. For the purposes of this definition, "submitted"
|
54 |
-
means any form of electronic, verbal, or written communication sent
|
55 |
-
to the Licensor or its representatives, including but not limited to
|
56 |
-
communication on electronic mailing lists, source code control systems,
|
57 |
-
and issue tracking systems that are managed by, or on behalf of, the
|
58 |
-
Licensor for the purpose of discussing and improving the Work, but
|
59 |
-
excluding communication that is conspicuously marked or otherwise
|
60 |
-
designated in writing by the copyright owner as "Not a Contribution."
|
61 |
-
|
62 |
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63 |
-
on behalf of whom a Contribution has been received by Licensor and
|
64 |
-
subsequently incorporated within the Work.
|
65 |
-
|
66 |
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
67 |
-
this License, each Contributor hereby grants to You a perpetual,
|
68 |
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69 |
-
copyright license to reproduce, prepare Derivative Works of,
|
70 |
-
publicly display, publicly perform, sublicense, and distribute the
|
71 |
-
Work and such Derivative Works in Source or Object form.
|
72 |
-
|
73 |
-
3. Grant of Patent License. Subject to the terms and conditions of
|
74 |
-
this License, each Contributor hereby grants to You a perpetual,
|
75 |
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76 |
-
(except as stated in this section) patent license to make, have made,
|
77 |
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78 |
-
where such license applies only to those patent claims licensable
|
79 |
-
by such Contributor that are necessarily infringed by their
|
80 |
-
Contribution(s) alone or by combination of their Contribution(s)
|
81 |
-
with the Work to which such Contribution(s) was submitted. If You
|
82 |
-
institute patent litigation against any entity (including a
|
83 |
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84 |
-
or a Contribution incorporated within the Work constitutes direct
|
85 |
-
or contributory patent infringement, then any patent licenses
|
86 |
-
granted to You under this License for that Work shall terminate
|
87 |
-
as of the date such litigation is filed.
|
88 |
-
|
89 |
-
4. Redistribution. You may reproduce and distribute copies of the
|
90 |
-
Work or Derivative Works thereof in any medium, with or without
|
91 |
-
modifications, and in Source or Object form, provided that You
|
92 |
-
meet the following conditions:
|
93 |
-
|
94 |
-
(a) You must give any other recipients of the Work or
|
95 |
-
Derivative Works a copy of this License; and
|
96 |
-
|
97 |
-
(b) You must cause any modified files to carry prominent notices
|
98 |
-
stating that You changed the files; and
|
99 |
-
|
100 |
-
(c) You must retain, in the Source form of any Derivative Works
|
101 |
-
that You distribute, all copyright, patent, trademark, and
|
102 |
-
attribution notices from the Source form of the Work,
|
103 |
-
excluding those notices that do not pertain to any part of
|
104 |
-
the Derivative Works; and
|
105 |
-
|
106 |
-
(d) If the Work includes a "NOTICE" text file as part of its
|
107 |
-
distribution, then any Derivative Works that You distribute must
|
108 |
-
include a readable copy of the attribution notices contained
|
109 |
-
within such NOTICE file, excluding those notices that do not
|
110 |
-
pertain to any part of the Derivative Works, in at least one
|
111 |
-
of the following places: within a NOTICE text file distributed
|
112 |
-
as part of the Derivative Works; within the Source form or
|
113 |
-
documentation, if provided along with the Derivative Works; or,
|
114 |
-
within a display generated by the Derivative Works, if and
|
115 |
-
wherever such third-party notices normally appear. The contents
|
116 |
-
of the NOTICE file are for informational purposes only and
|
117 |
-
do not modify the License. You may add Your own attribution
|
118 |
-
notices within Derivative Works that You distribute, alongside
|
119 |
-
or as an addendum to the NOTICE text from the Work, provided
|
120 |
-
that such additional attribution notices cannot be construed
|
121 |
-
as modifying the License.
|
122 |
-
|
123 |
-
You may add Your own copyright statement to Your modifications and
|
124 |
-
may provide additional or different license terms and conditions
|
125 |
-
for use, reproduction, or distribution of Your modifications, or
|
126 |
-
for any such Derivative Works as a whole, provided Your use,
|
127 |
-
reproduction, and distribution of the Work otherwise complies with
|
128 |
-
the conditions stated in this License.
|
129 |
-
|
130 |
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131 |
-
any Contribution intentionally submitted for inclusion in the Work
|
132 |
-
by You to the Licensor shall be under the terms and conditions of
|
133 |
-
this License, without any additional terms or conditions.
|
134 |
-
Notwithstanding the above, nothing herein shall supersede or modify
|
135 |
-
the terms of any separate license agreement you may have executed
|
136 |
-
with Licensor regarding such Contributions.
|
137 |
-
|
138 |
-
6. Trademarks. This License does not grant permission to use the trade
|
139 |
-
names, trademarks, service marks, or product names of the Licensor,
|
140 |
-
except as required for reasonable and customary use in describing the
|
141 |
-
origin of the Work and reproducing the content of the NOTICE file.
|
142 |
-
|
143 |
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
144 |
-
agreed to in writing, Licensor provides the Work (and each
|
145 |
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146 |
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147 |
-
implied, including, without limitation, any warranties or conditions
|
148 |
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149 |
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150 |
-
appropriateness of using or redistributing the Work and assume any
|
151 |
-
risks associated with Your exercise of permissions under this License.
|
152 |
-
|
153 |
-
8. Limitation of Liability. In no event and under no legal theory,
|
154 |
-
whether in tort (including negligence), contract, or otherwise,
|
155 |
-
unless required by applicable law (such as deliberate and grossly
|
156 |
-
negligent acts) or agreed to in writing, shall any Contributor be
|
157 |
-
liable to You for damages, including any direct, indirect, special,
|
158 |
-
incidental, or consequential damages of any character arising as a
|
159 |
-
result of this License or out of the use or inability to use the
|
160 |
-
Work (including but not limited to damages for loss of goodwill,
|
161 |
-
work stoppage, computer failure or malfunction, or any and all
|
162 |
-
other commercial damages or losses), even if such Contributor
|
163 |
-
has been advised of the possibility of such damages.
|
164 |
-
|
165 |
-
9. Accepting Warranty or Additional Liability. While redistributing
|
166 |
-
the Work or Derivative Works thereof, You may choose to offer,
|
167 |
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
168 |
-
or other liability obligations and/or rights consistent with this
|
169 |
-
License. However, in accepting such obligations, You may act only
|
170 |
-
on Your own behalf and on Your sole responsibility, not on behalf
|
171 |
-
of any other Contributor, and only if You agree to indemnify,
|
172 |
-
defend, and hold each Contributor harmless for any liability
|
173 |
-
incurred by, or claims asserted against, such Contributor by reason
|
174 |
-
of your accepting any such warranty or additional liability.
|
175 |
-
|
176 |
-
END OF TERMS AND CONDITIONS
|
177 |
-
|
178 |
-
APPENDIX: How to apply the Apache License to your work.
|
179 |
-
|
180 |
-
To apply the Apache License to your work, attach the following
|
181 |
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
182 |
-
replaced with your own identifying information. (Don't include
|
183 |
-
the brackets!) The text should be enclosed in the appropriate
|
184 |
-
comment syntax for the file format. We also recommend that a
|
185 |
-
file or class name and description of purpose be included on the
|
186 |
-
same "printed page" as the copyright notice for easier
|
187 |
-
identification within third-party archives.
|
188 |
-
|
189 |
-
Copyright [yyyy] [name of copyright owner]
|
190 |
-
|
191 |
-
Licensed under the Apache License, Version 2.0 (the "License");
|
192 |
-
you may not use this file except in compliance with the License.
|
193 |
-
You may obtain a copy of the License at
|
194 |
-
|
195 |
-
http://www.apache.org/licenses/LICENSE-2.0
|
196 |
-
|
197 |
-
Unless required by applicable law or agreed to in writing, software
|
198 |
-
distributed under the License is distributed on an "AS IS" BASIS,
|
199 |
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200 |
-
See the License for the specific language governing permissions and
|
201 |
-
limitations under the License.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -7,25 +7,10 @@ original LynxKite. The primary goals of this rewrite are:
|
|
7 |
- More extensible backend. Make it easy to add new LynxKite boxes. Make it easy to use our frontend for other purposes,
|
8 |
configuring and executing other pipelines.
|
9 |
|
10 |
-
##
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
```
|
18 |
-
|
19 |
-
To run the frontend:
|
20 |
-
|
21 |
-
```bash
|
22 |
-
cd web
|
23 |
-
npm i
|
24 |
-
npm run dev
|
25 |
-
```
|
26 |
-
|
27 |
-
To run a chat UI for LynxScribe workspaces:
|
28 |
-
|
29 |
-
```bash
|
30 |
-
WEBUI_AUTH=false OPENAI_API_BASE_URL=http://localhost:8000/api/service/server.lynxscribe_ops uvx open-webui serve
|
31 |
-
```
|
|
|
7 |
- More extensible backend. Make it easy to add new LynxKite boxes. Make it easy to use our frontend for other purposes,
|
8 |
configuring and executing other pipelines.
|
9 |
|
10 |
+
## Structure
|
11 |
|
12 |
+
- `lynxkite-ops`: Core types and utilities. Depend on this lightweight package if you are writing LynxKite plugins.
|
13 |
+
- `lynxkite-app`: The LynxKite web application. Install some plugins then run this to use LynxKite.
|
14 |
+
- `lynxkite-graph-analytics`: Graph analytics plugin. The classical LynxKite experience!
|
15 |
+
- `lynxkite-pillow`: A simple example plugin.
|
16 |
+
- `lynxkite-lynxscribe`: A plugin for building and running LynxScribe applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lynxkite-app/MANIFEST.in
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
graft web
|
2 |
+
prune web/node_modules
|
lynxkite-app/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# LynxKite MM
|
2 |
+
|
3 |
+
This is an experimental rewrite of [LynxKite](https://github.com/lynxkite/lynxkite). It is not compatible with the
|
4 |
+
original LynxKite. The primary goals of this rewrite are:
|
5 |
+
|
6 |
+
- Target GPU clusters instead of Hadoop clusters. We use Python instead of Scala, RAPIDS instead of Apache Spark.
|
7 |
+
- More extensible backend. Make it easy to add new LynxKite boxes. Make it easy to use our frontend for other purposes,
|
8 |
+
configuring and executing other pipelines.
|
9 |
+
|
10 |
+
## Development
|
11 |
+
|
12 |
+
To run the backend:
|
13 |
+
|
14 |
+
```bash
|
15 |
+
PYTHONPATH=. uv run pydantic2ts --module server.workspace --output ./web/src/apiTypes.ts --json2ts-cmd "npm exec --prefix web json2ts"
|
16 |
+
uv run fastapi run server/main.py --reload
|
17 |
+
```
|
18 |
+
|
19 |
+
To run the frontend:
|
20 |
+
|
21 |
+
```bash
|
22 |
+
cd web
|
23 |
+
npm i
|
24 |
+
npm run dev
|
25 |
+
```
|
{data β lynxkite-app/data}/Graph RAG
RENAMED
File without changes
|
{data β lynxkite-app/data}/Image processing
RENAMED
File without changes
|
{data β lynxkite-app/data}/LynxScribe demo
RENAMED
@@ -11,17 +11,9 @@
|
|
11 |
},
|
12 |
"display": null,
|
13 |
"error": null,
|
|
|
|
|
14 |
"meta": {
|
15 |
-
"params": {
|
16 |
-
"chat": {
|
17 |
-
"name": "chat",
|
18 |
-
"default": null,
|
19 |
-
"type": {
|
20 |
-
"type": "<class 'str'>"
|
21 |
-
}
|
22 |
-
}
|
23 |
-
},
|
24 |
-
"inputs": {},
|
25 |
"type": "basic",
|
26 |
"outputs": {
|
27 |
"output": {
|
@@ -32,10 +24,18 @@
|
|
32 |
}
|
33 |
}
|
34 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
"name": "Input chat"
|
36 |
-
}
|
37 |
-
"__execution_delay": 0.0,
|
38 |
-
"collapsed": null
|
39 |
},
|
40 |
"position": {
|
41 |
"x": 0.0,
|
@@ -48,75 +48,10 @@
|
|
48 |
"data": {
|
49 |
"title": "View",
|
50 |
"params": {},
|
51 |
-
"display":
|
52 |
-
"dataframes": {
|
53 |
-
"df": {
|
54 |
-
"columns": [
|
55 |
-
"answer",
|
56 |
-
"sources",
|
57 |
-
"confidence_score",
|
58 |
-
"confidence_score_description",
|
59 |
-
"meta_outputs"
|
60 |
-
],
|
61 |
-
"data": [
|
62 |
-
[
|
63 |
-
"The Chief Innovation Officer (CIO) of Lynx Analytics is Gabor Benedek. He is responsible for defining the methodological roadmap for Lynx's predictive analytics consulting and product development departments. If you need more information about Gabor or his role, feel free to ask!\n\nPlease visit https://www.lynxanalytics.com/team-leadership for further information.",
|
64 |
-
[
|
65 |
-
{
|
66 |
-
"id": "i_541",
|
67 |
-
"body": "Lynx Analytics is a big data company founded in 2010 by Gyorgy Lajtai and a team from INSEAD. The company aims to solve real-world problems using big data graphs. The team is composed of individuals with diverse backgrounds and experiences spanning various industries. The company has a Chief Innovation Officer, a COO, a CTO, a Senior Board Advisor, a Finance Director, and a Director of People. They are responsible for defining the methodological roadmap, implementing solutions, managing finances, and leading HR services and talent management as the company expands globally.\n\n Part of the article: \n\nAs Lynx Analytics CFO between 2016 and 2021, Dan managed the companys capital raising initiatives and set up its financial management functions and team from the ground up.\n\nHe remains involved with the company as a shareholder and in an advisory capacity.\n\nLi Lee, Finance Director\nLi oversees the whole finance spectrum at Lynx Analytics.\n\nThe dynamic environment, exposure to investors, and continuous innovation requirements are aspects of the job she particularly enjoys.\n\nLi likes to find solutions to new business needs and to implement automated internal controls & procedures to support the companys growth.\n\nLi is a financial professional with more than 15 years of experience in financial accounting & reporting and finance-related matters.\nBefore joining Lynx, she held different Finance positions at accounting & audit firms as well as MNCs in various sectors.\n\nEdina Choo, Director of People\nAs the Director of People at Lynx, Edina provides strategic leadership and management across the various HR services provided to our global talent.\n\nShe is responsible for building a proactive human resources team that drives recruitment, engagement, talent management, people and leadership development and shaping the people culture within Lynx as we expand into USA, Europe and various parts of Asia.\n\nEdina is passionate about harnessing and maximising the potential of each individual that joins our team!",
|
68 |
-
"confidence_score": 0.9249657988548279,
|
69 |
-
"title": null,
|
70 |
-
"description": null,
|
71 |
-
"type": "information"
|
72 |
-
},
|
73 |
-
{
|
74 |
-
"id": "i_151",
|
75 |
-
"body": "Lynx Analytics is a company founded by a team from INSEAD in 2010, with a focus on solving real-world problems using big data graphs. The company's CEO and co-founder, Gyorgy Lajtai, has experience in CRM challenges and marketing automation. The company's Chief Innovation Officer and co-founder, Gabor Benedek, is responsible for defining the methodological roadmap of Lynx's predictive analytics consulting and product development departments. The team also includes Miklos Sarvary, Chung Ng, Cintia O. Tavella Gomez, Paul Berriman, and Zsolt Katona, who all have extensive experience in various industries and academia.\n\n Part of the article: \n\nCintia has lived and worked in Asia for 15 years, is originally from Buenos Aires (Argentina), grew up in Spain and currently lives in Seattle.\n\nIn her free time, she loves to learn languages, train for the next triathlon, practice yoga and\n\nmeditation.\n\nPaul Berriman\n\nNon Executive Director at Spark New Zealand, Non Executive Director at Rain Networks, South Africa\n\nUntil January 2021 Paul was Group Chief Technology Officer of the HKT Trust, where he was responsible for leading the groups product and technology roadmap and strategic development,including cross industry propositions, and embedding analytics into everything HKT does.\nPrior to this he was Managing Director of management consultancy Arthur D. Little in Hong Kong and he has held roles in Reuters and several major Hong Kong service providers.\n\nIn 2008 he was listed as one of the Global Telecoms Business Magazinestop100 most influential persons in telecoms.\n\nHe is Chairman of a Global TD-LTE Initiative (GTI) Working Group, a board member of the Next Generation Mobile Networks Alliance (NGMN Ltd.) and an independent non-executive director of Spark New Zealand (f.k.a.\n\nTelecom Corporation of New Zealand) having joined the Board in December 2011.\n\nHe is also a non-executive director of mobile operator, Rain Ltd., in South Africa.\n\nHe was also a member of OFTAs Telecommunications Standards Advisory Committee for many years.",
|
76 |
-
"confidence_score": 0.9231036603450775,
|
77 |
-
"title": null,
|
78 |
-
"description": null,
|
79 |
-
"type": "information"
|
80 |
-
},
|
81 |
-
{
|
82 |
-
"id": "s_546",
|
83 |
-
"body": "Lynx Analytics is a big data company co-founded by Gyorgy Lajtai and a team from INSEAD. Miklos Sarvary, a Professor at Columbia Business School, and Chung Ng, a SVP at Group CTO Office of the HKT Trust, are among the company's new executives. Meanwhile, Cintia O. Tavella Gomez is the Senior Director of Strategic Partnerships at Expedia Group, and Paul Berriman was the Group Chief Technology Officer of the HKT Trust until January 2021. Additionally, Zsolt Katona is the faculty director of the Fisher Center for Business Analytics at the Haas School.",
|
84 |
-
"confidence_score": 0.9230074882507324,
|
85 |
-
"title": null,
|
86 |
-
"description": null,
|
87 |
-
"type": "summary"
|
88 |
-
},
|
89 |
-
{
|
90 |
-
"id": "i_182",
|
91 |
-
"body": "Lynx Analytics is a big data graph company founded in 2010 by a team from INSEAD. The company aims to solve real-world problems using big data graphs. The team includes experienced professionals, including co-founders Gyorgy Lajtai and Gabor Benedek, as well as Amit Akhelikar, Chema Lizano, Dan Florea, Adrienne Lee, Li Lee, Edina Choo, Francois de Repentigny, Marton Szel, and Daniel Darabos. The team has expertise in AI startups, telecom, technology strategy, M&A, financial accounting, HR, marketing, data science, and engineering.\n\n Part of the article: \n\nAs Lynx Analytics CFO between 2016 and 2021, Dan managed the companys capital raising initiatives and set up its financial management functions and team from the ground up.\n\nHe remains involved with the company as a shareholder and in an advisory capacity.\n\nLi Lee\n\nFinance Director\n\nLi oversees the whole finance spectrum at Lynx Analytics.\n\nThe dynamic environment, exposure to investors, and continuous innovation requirements are aspects of the job she particularly enjoys.\n\nLi likes to find solutions to new business needs and to implement automated internal controls & procedures to support the companys growth.\n\nLi is a financial professional with more than 15 years of experience in financial accounting & reporting and finance-related matters.\nBefore joining Lynx, she held different Finance positions at accounting & audit firms as well as MNCs in various sectors.\n\nEdina Choo\n\nDirector of People\n\nAs the Director of People at Lynx, Edina provides strategic leadership and management across the various HR services provided to our global talent.\n\nShe is responsible for building a proactive human resources team that drives recruitment, engagement, talent management, people and leadership development and shaping the people culture within Lynx as we expand into USA, Europe and various parts of Asia.\n\nEdina is passionate about harnessing and maximising the potential of each individual that joins our team!",
|
92 |
-
"confidence_score": 0.9217821955680847,
|
93 |
-
"title": null,
|
94 |
-
"description": null,
|
95 |
-
"type": "information"
|
96 |
-
},
|
97 |
-
{
|
98 |
-
"id": "s_459",
|
99 |
-
"body": "Lynx Analytics is a big data company founded in 2010 by Gyorgy Lajtai and a team from INSEAD. The company aims to solve real-world problems using big data graphs. The team is composed of individuals with diverse backgrounds and experiences spanning various industries. The company has a Chief Innovation Officer, a COO, a CTO, a Senior Board Advisor, a Finance Director, and a Director of People. They are responsible for defining the methodological roadmap, implementing solutions, managing finances, and leading HR services and talent management as the company expands globally.",
|
100 |
-
"confidence_score": 0.9208503663539886,
|
101 |
-
"title": null,
|
102 |
-
"description": null,
|
103 |
-
"type": "summary"
|
104 |
-
}
|
105 |
-
],
|
106 |
-
0.9249657988548279,
|
107 |
-
"Score is always between 0 and 1, the total is the maximum of individual source scores.",
|
108 |
-
{}
|
109 |
-
]
|
110 |
-
]
|
111 |
-
}
|
112 |
-
}
|
113 |
-
},
|
114 |
"error": null,
|
115 |
"meta": {
|
116 |
-
"params": {},
|
117 |
"name": "View",
|
118 |
-
"outputs": {},
|
119 |
-
"type": "table_view",
|
120 |
"inputs": {
|
121 |
"input": {
|
122 |
"position": "left",
|
@@ -125,7 +60,10 @@
|
|
125 |
"type": "<class 'inspect._empty'>"
|
126 |
}
|
127 |
}
|
128 |
-
}
|
|
|
|
|
|
|
129 |
}
|
130 |
},
|
131 |
"position": {
|
@@ -143,31 +81,31 @@
|
|
143 |
},
|
144 |
"display": null,
|
145 |
"error": null,
|
|
|
146 |
"meta": {
|
147 |
-
"type": "basic",
|
148 |
"name": "LLM",
|
149 |
"inputs": {},
|
|
|
150 |
"params": {
|
151 |
"name": {
|
152 |
-
"
|
153 |
"type": {
|
154 |
"type": "<class 'str'>"
|
155 |
},
|
156 |
-
"
|
157 |
}
|
158 |
},
|
159 |
"outputs": {
|
160 |
"output": {
|
|
|
161 |
"type": {
|
162 |
"type": "None"
|
163 |
},
|
164 |
-
"name": "output",
|
165 |
"position": "top"
|
166 |
}
|
167 |
}
|
168 |
},
|
169 |
-
"__execution_delay": 0.0
|
170 |
-
"collapsed": null
|
171 |
},
|
172 |
"position": {
|
173 |
"x": 0.0,
|
@@ -185,38 +123,38 @@
|
|
185 |
},
|
186 |
"display": null,
|
187 |
"error": null,
|
|
|
188 |
"meta": {
|
189 |
"outputs": {
|
190 |
"output": {
|
|
|
|
|
191 |
"type": {
|
192 |
"type": "None"
|
193 |
-
}
|
194 |
-
"name": "output",
|
195 |
-
"position": "top"
|
196 |
}
|
197 |
},
|
198 |
-
"
|
199 |
"name": "Scenario selector",
|
200 |
"params": {
|
201 |
"node_types": {
|
|
|
|
|
202 |
"type": {
|
203 |
"type": "<class 'str'>"
|
204 |
-
}
|
205 |
-
"default": "intent_cluster",
|
206 |
-
"name": "node_types"
|
207 |
},
|
208 |
"scenario_file": {
|
209 |
-
"name": "scenario_file",
|
210 |
-
"default": null,
|
211 |
"type": {
|
212 |
"type": "<class 'str'>"
|
213 |
-
}
|
|
|
|
|
214 |
}
|
215 |
},
|
216 |
-
"
|
217 |
},
|
218 |
-
"collapsed": null
|
219 |
-
"__execution_delay": 0.0
|
220 |
},
|
221 |
"position": {
|
222 |
"x": 0.0,
|
@@ -233,53 +171,53 @@
|
|
233 |
},
|
234 |
"display": null,
|
235 |
"error": null,
|
236 |
-
"collapsed": null,
|
237 |
"meta": {
|
238 |
-
"name": "Chat API",
|
239 |
-
"params": {
|
240 |
-
"model": {
|
241 |
-
"default": "gpt-4o-mini",
|
242 |
-
"type": {
|
243 |
-
"type": "<class 'str'>"
|
244 |
-
},
|
245 |
-
"name": "model"
|
246 |
-
}
|
247 |
-
},
|
248 |
"inputs": {
|
249 |
"chat_processor": {
|
250 |
"position": "bottom",
|
251 |
-
"name": "chat_processor",
|
252 |
"type": {
|
253 |
"type": "<class 'inspect._empty'>"
|
254 |
-
}
|
|
|
255 |
},
|
256 |
-
"
|
|
|
257 |
"position": "bottom",
|
258 |
"type": {
|
259 |
"type": "<class 'inspect._empty'>"
|
260 |
-
}
|
261 |
-
"name": "chatbot"
|
262 |
},
|
263 |
-
"
|
264 |
-
"name": "
|
265 |
"type": {
|
266 |
"type": "<class 'inspect._empty'>"
|
267 |
},
|
268 |
"position": "bottom"
|
269 |
}
|
270 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
"outputs": {
|
272 |
"output": {
|
273 |
"name": "output",
|
|
|
274 |
"type": {
|
275 |
"type": "None"
|
276 |
-
}
|
277 |
-
"position": "top"
|
278 |
}
|
279 |
-
}
|
280 |
-
"type": "basic"
|
281 |
},
|
282 |
-
"__execution_delay": 0.0
|
|
|
283 |
},
|
284 |
"position": {
|
285 |
"x": 0.0,
|
@@ -292,47 +230,47 @@
|
|
292 |
"data": {
|
293 |
"title": "Knowledge base",
|
294 |
"params": {
|
295 |
-
"nodes_path": "/home/darabos/nvme/lynxscribe/examples/chat_api/data/lynx/nodes.pickle",
|
296 |
"template_cluster_path": "/home/darabos/nvme/lynxscribe/examples/chat_api/data/lynx/tempclusters.pickle",
|
297 |
-
"edges_path": "/home/darabos/nvme/lynxscribe/examples/chat_api/data/lynx/edges.pickle"
|
|
|
298 |
},
|
299 |
"display": null,
|
300 |
"error": null,
|
301 |
"meta": {
|
302 |
-
"
|
303 |
-
|
304 |
-
|
305 |
-
"
|
306 |
-
"name": "output",
|
307 |
"type": {
|
308 |
-
"type": "
|
309 |
}
|
310 |
-
}
|
311 |
-
},
|
312 |
-
"name": "Knowledge base",
|
313 |
-
"params": {
|
314 |
"edges_path": {
|
315 |
-
"name": "edges_path",
|
316 |
"default": "edges.pickle",
|
|
|
317 |
"type": {
|
318 |
"type": "<class 'str'>"
|
319 |
}
|
320 |
},
|
321 |
"nodes_path": {
|
|
|
322 |
"name": "nodes_path",
|
323 |
"type": {
|
324 |
"type": "<class 'str'>"
|
325 |
-
}
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
|
|
330 |
"type": {
|
331 |
-
"type": "
|
332 |
},
|
333 |
-
"
|
|
|
334 |
}
|
335 |
},
|
|
|
336 |
"inputs": {}
|
337 |
}
|
338 |
},
|
@@ -347,15 +285,46 @@
|
|
347 |
"data": {
|
348 |
"title": "RAG chatbot",
|
349 |
"params": {
|
350 |
-
"negative_answer": "I'm sorry, but the data I've been trained on does not contain any information related to your question.",
|
351 |
-
"strict_limits": true,
|
352 |
"limits_by_type": "{\"information\": [2, 3], \"summary\": [2, 3]}",
|
353 |
-
"
|
|
|
|
|
354 |
},
|
355 |
"display": null,
|
356 |
"error": null,
|
357 |
"meta": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
"name": "RAG chatbot",
|
|
|
359 |
"outputs": {
|
360 |
"output": {
|
361 |
"type": {
|
@@ -367,58 +336,27 @@
|
|
367 |
},
|
368 |
"inputs": {
|
369 |
"rag_graph": {
|
370 |
-
"name": "rag_graph",
|
371 |
"position": "bottom",
|
|
|
372 |
"type": {
|
373 |
"type": "<class 'inspect._empty'>"
|
374 |
}
|
375 |
},
|
376 |
-
"
|
377 |
-
"name": "llm",
|
378 |
"position": "bottom",
|
|
|
379 |
"type": {
|
380 |
"type": "<class 'inspect._empty'>"
|
381 |
}
|
382 |
},
|
383 |
-
"
|
384 |
"type": {
|
385 |
"type": "<class 'inspect._empty'>"
|
386 |
},
|
387 |
-
"
|
388 |
-
"
|
389 |
-
}
|
390 |
-
},
|
391 |
-
"params": {
|
392 |
-
"limits_by_type": {
|
393 |
-
"default": "{}",
|
394 |
-
"name": "limits_by_type",
|
395 |
-
"type": {
|
396 |
-
"type": "<class 'str'>"
|
397 |
-
}
|
398 |
-
},
|
399 |
-
"max_results": {
|
400 |
-
"type": {
|
401 |
-
"type": "<class 'int'>"
|
402 |
-
},
|
403 |
-
"name": "max_results",
|
404 |
-
"default": 5.0
|
405 |
-
},
|
406 |
-
"negative_answer": {
|
407 |
-
"name": "negative_answer",
|
408 |
-
"default": "I'm sorry, but the data I've been trained on does not contain any information related to your question.",
|
409 |
-
"type": {
|
410 |
-
"type": "<class 'str'>"
|
411 |
-
}
|
412 |
-
},
|
413 |
-
"strict_limits": {
|
414 |
-
"default": true,
|
415 |
-
"name": "strict_limits",
|
416 |
-
"type": {
|
417 |
-
"type": "<class 'bool'>"
|
418 |
-
}
|
419 |
}
|
420 |
-
}
|
421 |
-
"type": "basic"
|
422 |
},
|
423 |
"beingResized": false
|
424 |
},
|
@@ -436,37 +374,37 @@
|
|
436 |
"display": null,
|
437 |
"error": null,
|
438 |
"collapsed": true,
|
439 |
-
"__execution_delay": null,
|
440 |
"meta": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
"inputs": {
|
442 |
"vector_store": {
|
|
|
443 |
"type": {
|
444 |
"type": "<class 'inspect._empty'>"
|
445 |
},
|
446 |
-
"name": "vector_store",
|
447 |
"position": "bottom"
|
448 |
},
|
449 |
"text_embedder": {
|
450 |
-
"name": "text_embedder",
|
451 |
"position": "bottom",
|
452 |
"type": {
|
453 |
"type": "<class 'inspect._empty'>"
|
454 |
-
}
|
455 |
-
}
|
456 |
-
},
|
457 |
-
"name": "RAG graph",
|
458 |
-
"params": {},
|
459 |
-
"outputs": {
|
460 |
-
"output": {
|
461 |
-
"type": {
|
462 |
-
"type": "None"
|
463 |
},
|
464 |
-
"
|
465 |
-
"name": "output"
|
466 |
}
|
467 |
-
}
|
468 |
-
|
469 |
-
|
470 |
},
|
471 |
"position": {
|
472 |
"x": 0.0,
|
@@ -479,32 +417,31 @@
|
|
479 |
"data": {
|
480 |
"title": "Vector store",
|
481 |
"params": {
|
482 |
-
"
|
483 |
-
"
|
484 |
},
|
485 |
"display": null,
|
486 |
"error": null,
|
487 |
-
"beingResized": false,
|
488 |
"meta": {
|
489 |
"name": "Vector store",
|
|
|
|
|
490 |
"params": {
|
491 |
-
"name": {
|
492 |
-
"default": "chromadb",
|
493 |
-
"name": "name",
|
494 |
-
"type": {
|
495 |
-
"type": "<class 'str'>"
|
496 |
-
}
|
497 |
-
},
|
498 |
"collection_name": {
|
499 |
"type": {
|
500 |
"type": "<class 'str'>"
|
501 |
},
|
502 |
"default": "lynx",
|
503 |
"name": "collection_name"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
}
|
505 |
},
|
506 |
-
"inputs": {},
|
507 |
-
"type": "basic",
|
508 |
"outputs": {
|
509 |
"output": {
|
510 |
"position": "top",
|
@@ -514,7 +451,8 @@
|
|
514 |
}
|
515 |
}
|
516 |
}
|
517 |
-
}
|
|
|
518 |
},
|
519 |
"position": {
|
520 |
"x": 0.0,
|
@@ -534,35 +472,35 @@
|
|
534 |
"collapsed": null,
|
535 |
"__execution_delay": 0.0,
|
536 |
"meta": {
|
537 |
-
"
|
538 |
-
"
|
539 |
-
"position": "
|
540 |
-
"name": "llm",
|
541 |
"type": {
|
542 |
-
"type": "
|
543 |
-
}
|
|
|
544 |
}
|
545 |
},
|
|
|
546 |
"params": {
|
547 |
"model": {
|
548 |
-
"default": "text-embedding-ada-002",
|
549 |
"name": "model",
|
|
|
550 |
"type": {
|
551 |
"type": "<class 'str'>"
|
552 |
}
|
553 |
}
|
554 |
},
|
555 |
-
"
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
"position": "top",
|
560 |
-
"name": "output",
|
561 |
"type": {
|
562 |
-
"type": "
|
563 |
}
|
564 |
}
|
565 |
-
}
|
|
|
566 |
}
|
567 |
},
|
568 |
"position": {
|
@@ -581,26 +519,26 @@
|
|
581 |
"display": null,
|
582 |
"error": null,
|
583 |
"meta": {
|
584 |
-
"name": "LLM",
|
585 |
"inputs": {},
|
586 |
"params": {
|
587 |
"name": {
|
588 |
"type": {
|
589 |
"type": "<class 'str'>"
|
590 |
},
|
591 |
-
"
|
592 |
-
"
|
593 |
}
|
594 |
},
|
595 |
"outputs": {
|
596 |
"output": {
|
597 |
-
"position": "top",
|
598 |
"name": "output",
|
|
|
599 |
"type": {
|
600 |
"type": "None"
|
601 |
}
|
602 |
}
|
603 |
},
|
|
|
604 |
"type": "basic"
|
605 |
}
|
606 |
},
|
@@ -620,7 +558,8 @@
|
|
620 |
"display": null,
|
621 |
"error": null,
|
622 |
"meta": {
|
623 |
-
"
|
|
|
624 |
"outputs": {
|
625 |
"output": {
|
626 |
"type": {
|
@@ -630,17 +569,16 @@
|
|
630 |
"name": "output"
|
631 |
}
|
632 |
},
|
633 |
-
"type": "basic",
|
634 |
-
"name": "Truncate history",
|
635 |
"params": {
|
636 |
"max_tokens": {
|
637 |
"type": {
|
638 |
"type": "<class 'int'>"
|
639 |
},
|
640 |
-
"
|
641 |
-
"
|
642 |
}
|
643 |
-
}
|
|
|
644 |
}
|
645 |
},
|
646 |
"position": {
|
@@ -657,30 +595,30 @@
|
|
657 |
"display": null,
|
658 |
"error": null,
|
659 |
"meta": {
|
|
|
|
|
660 |
"inputs": {
|
661 |
"processor": {
|
|
|
662 |
"name": "processor",
|
663 |
"type": {
|
664 |
"type": "<class 'inspect._empty'>"
|
665 |
-
}
|
666 |
-
"position": "bottom"
|
667 |
}
|
668 |
},
|
669 |
-
"params": {},
|
670 |
"outputs": {
|
671 |
"output": {
|
672 |
-
"
|
673 |
"type": {
|
674 |
"type": "None"
|
675 |
},
|
676 |
-
"
|
677 |
}
|
678 |
},
|
679 |
-
"type": "basic"
|
680 |
-
"name": "Chat processor"
|
681 |
},
|
682 |
-
"
|
683 |
-
"
|
684 |
},
|
685 |
"position": {
|
686 |
"x": 0.0,
|
@@ -693,56 +631,56 @@
|
|
693 |
"data": {
|
694 |
"title": "Mask",
|
695 |
"params": {
|
696 |
-
"name": "email",
|
697 |
"mask_pattern": "masked_email_address_{}",
|
698 |
"regex": "([a-z0-9!#$%&'*+\\/=?^_`{|.}~-]+@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)",
|
|
|
699 |
"exceptions": "[email protected],[email protected],[email protected],[email protected]"
|
700 |
},
|
701 |
"display": null,
|
702 |
"error": null,
|
703 |
"meta": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
704 |
"params": {
|
705 |
-
"
|
706 |
"type": {
|
707 |
"type": "<class 'str'>"
|
708 |
},
|
709 |
-
"
|
710 |
-
"
|
711 |
},
|
712 |
-
"
|
713 |
-
"name": "regex",
|
714 |
"default": "",
|
|
|
715 |
"type": {
|
716 |
"type": "<class 'str'>"
|
717 |
}
|
718 |
},
|
719 |
"name": {
|
|
|
720 |
"type": {
|
721 |
"type": "<class 'str'>"
|
722 |
},
|
723 |
-
"default": ""
|
724 |
-
"name": "name"
|
725 |
},
|
726 |
-
"
|
727 |
-
"name": "mask_pattern",
|
728 |
-
"default": "",
|
729 |
"type": {
|
730 |
"type": "<class 'str'>"
|
731 |
-
}
|
732 |
-
|
733 |
-
|
734 |
-
"name": "Mask",
|
735 |
-
"inputs": {},
|
736 |
-
"outputs": {
|
737 |
-
"output": {
|
738 |
-
"name": "output",
|
739 |
-
"position": "top",
|
740 |
-
"type": {
|
741 |
-
"type": "None"
|
742 |
-
}
|
743 |
}
|
744 |
-
}
|
745 |
-
"type": "basic"
|
746 |
}
|
747 |
},
|
748 |
"position": {
|
@@ -757,55 +695,55 @@
|
|
757 |
"title": "Mask",
|
758 |
"params": {
|
759 |
"regex": "((?:(?:\\\\d{4}[- ]?){3}\\\\d{4}|\\\\d{15,16}))(?![\\\\d])",
|
760 |
-
"mask_pattern": "masked_credit_card_number_{}",
|
761 |
"exceptions": "",
|
762 |
-
"name": "credit_card"
|
|
|
763 |
},
|
764 |
"display": null,
|
765 |
"error": null,
|
766 |
"meta": {
|
767 |
-
"type": "basic",
|
768 |
-
"outputs": {
|
769 |
-
"output": {
|
770 |
-
"position": "top",
|
771 |
-
"type": {
|
772 |
-
"type": "None"
|
773 |
-
},
|
774 |
-
"name": "output"
|
775 |
-
}
|
776 |
-
},
|
777 |
-
"name": "Mask",
|
778 |
"params": {
|
779 |
-
"
|
|
|
780 |
"default": "",
|
781 |
"type": {
|
782 |
"type": "<class 'str'>"
|
783 |
-
}
|
784 |
-
"name": "mask_pattern"
|
785 |
},
|
786 |
-
"
|
|
|
787 |
"default": "",
|
788 |
"type": {
|
789 |
"type": "<class 'str'>"
|
790 |
-
}
|
791 |
-
"name": "exceptions"
|
792 |
},
|
793 |
-
"
|
794 |
"default": "",
|
795 |
-
"name": "
|
796 |
"type": {
|
797 |
"type": "<class 'str'>"
|
798 |
}
|
799 |
},
|
800 |
-
"
|
|
|
|
|
801 |
"type": {
|
802 |
"type": "<class 'str'>"
|
803 |
-
}
|
804 |
-
"name": "regex",
|
805 |
-
"default": ""
|
806 |
}
|
807 |
},
|
808 |
-
"inputs": {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
809 |
}
|
810 |
},
|
811 |
"position": {
|
@@ -823,27 +761,28 @@
|
|
823 |
},
|
824 |
"display": null,
|
825 |
"error": null,
|
826 |
-
"
|
827 |
"meta": {
|
|
|
828 |
"outputs": {
|
829 |
"output": {
|
830 |
"type": {
|
831 |
"type": "None"
|
832 |
},
|
833 |
-
"
|
834 |
-
"
|
835 |
}
|
836 |
},
|
|
|
837 |
"params": {
|
838 |
"show_details": {
|
839 |
-
"default": false,
|
840 |
-
"name": "show_details",
|
841 |
"type": {
|
842 |
"type": "<class 'bool'>"
|
843 |
-
}
|
|
|
|
|
844 |
}
|
845 |
},
|
846 |
-
"type": "basic",
|
847 |
"inputs": {
|
848 |
"message": {
|
849 |
"position": "left",
|
@@ -853,16 +792,15 @@
|
|
853 |
"name": "message"
|
854 |
},
|
855 |
"chat_api": {
|
856 |
-
"name": "chat_api",
|
857 |
-
"position": "bottom",
|
858 |
"type": {
|
859 |
"type": "<class 'inspect._empty'>"
|
860 |
-
}
|
|
|
|
|
861 |
}
|
862 |
-
}
|
863 |
-
"name": "Test Chat API"
|
864 |
},
|
865 |
-
"
|
866 |
},
|
867 |
"position": {
|
868 |
"x": 0.0,
|
|
|
11 |
},
|
12 |
"display": null,
|
13 |
"error": null,
|
14 |
+
"collapsed": null,
|
15 |
+
"__execution_delay": 0.0,
|
16 |
"meta": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
"type": "basic",
|
18 |
"outputs": {
|
19 |
"output": {
|
|
|
24 |
}
|
25 |
}
|
26 |
},
|
27 |
+
"params": {
|
28 |
+
"chat": {
|
29 |
+
"default": null,
|
30 |
+
"type": {
|
31 |
+
"type": "<class 'str'>"
|
32 |
+
},
|
33 |
+
"name": "chat"
|
34 |
+
}
|
35 |
+
},
|
36 |
+
"inputs": {},
|
37 |
"name": "Input chat"
|
38 |
+
}
|
|
|
|
|
39 |
},
|
40 |
"position": {
|
41 |
"x": 0.0,
|
|
|
48 |
"data": {
|
49 |
"title": "View",
|
50 |
"params": {},
|
51 |
+
"display": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
"error": null,
|
53 |
"meta": {
|
|
|
54 |
"name": "View",
|
|
|
|
|
55 |
"inputs": {
|
56 |
"input": {
|
57 |
"position": "left",
|
|
|
60 |
"type": "<class 'inspect._empty'>"
|
61 |
}
|
62 |
}
|
63 |
+
},
|
64 |
+
"params": {},
|
65 |
+
"outputs": {},
|
66 |
+
"type": "table_view"
|
67 |
}
|
68 |
},
|
69 |
"position": {
|
|
|
81 |
},
|
82 |
"display": null,
|
83 |
"error": null,
|
84 |
+
"collapsed": null,
|
85 |
"meta": {
|
|
|
86 |
"name": "LLM",
|
87 |
"inputs": {},
|
88 |
+
"type": "basic",
|
89 |
"params": {
|
90 |
"name": {
|
91 |
+
"default": "openai",
|
92 |
"type": {
|
93 |
"type": "<class 'str'>"
|
94 |
},
|
95 |
+
"name": "name"
|
96 |
}
|
97 |
},
|
98 |
"outputs": {
|
99 |
"output": {
|
100 |
+
"name": "output",
|
101 |
"type": {
|
102 |
"type": "None"
|
103 |
},
|
|
|
104 |
"position": "top"
|
105 |
}
|
106 |
}
|
107 |
},
|
108 |
+
"__execution_delay": 0.0
|
|
|
109 |
},
|
110 |
"position": {
|
111 |
"x": 0.0,
|
|
|
123 |
},
|
124 |
"display": null,
|
125 |
"error": null,
|
126 |
+
"__execution_delay": 0.0,
|
127 |
"meta": {
|
128 |
"outputs": {
|
129 |
"output": {
|
130 |
+
"position": "top",
|
131 |
+
"name": "output",
|
132 |
"type": {
|
133 |
"type": "None"
|
134 |
+
}
|
|
|
|
|
135 |
}
|
136 |
},
|
137 |
+
"inputs": {},
|
138 |
"name": "Scenario selector",
|
139 |
"params": {
|
140 |
"node_types": {
|
141 |
+
"name": "node_types",
|
142 |
+
"default": "intent_cluster",
|
143 |
"type": {
|
144 |
"type": "<class 'str'>"
|
145 |
+
}
|
|
|
|
|
146 |
},
|
147 |
"scenario_file": {
|
|
|
|
|
148 |
"type": {
|
149 |
"type": "<class 'str'>"
|
150 |
+
},
|
151 |
+
"default": null,
|
152 |
+
"name": "scenario_file"
|
153 |
}
|
154 |
},
|
155 |
+
"type": "basic"
|
156 |
},
|
157 |
+
"collapsed": null
|
|
|
158 |
},
|
159 |
"position": {
|
160 |
"x": 0.0,
|
|
|
171 |
},
|
172 |
"display": null,
|
173 |
"error": null,
|
|
|
174 |
"meta": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
"inputs": {
|
176 |
"chat_processor": {
|
177 |
"position": "bottom",
|
|
|
178 |
"type": {
|
179 |
"type": "<class 'inspect._empty'>"
|
180 |
+
},
|
181 |
+
"name": "chat_processor"
|
182 |
},
|
183 |
+
"knowledge_base": {
|
184 |
+
"name": "knowledge_base",
|
185 |
"position": "bottom",
|
186 |
"type": {
|
187 |
"type": "<class 'inspect._empty'>"
|
188 |
+
}
|
|
|
189 |
},
|
190 |
+
"chatbot": {
|
191 |
+
"name": "chatbot",
|
192 |
"type": {
|
193 |
"type": "<class 'inspect._empty'>"
|
194 |
},
|
195 |
"position": "bottom"
|
196 |
}
|
197 |
},
|
198 |
+
"type": "basic",
|
199 |
+
"name": "Chat API",
|
200 |
+
"params": {
|
201 |
+
"model": {
|
202 |
+
"default": "gpt-4o-mini",
|
203 |
+
"type": {
|
204 |
+
"type": "<class 'str'>"
|
205 |
+
},
|
206 |
+
"name": "model"
|
207 |
+
}
|
208 |
+
},
|
209 |
"outputs": {
|
210 |
"output": {
|
211 |
"name": "output",
|
212 |
+
"position": "top",
|
213 |
"type": {
|
214 |
"type": "None"
|
215 |
+
}
|
|
|
216 |
}
|
217 |
+
}
|
|
|
218 |
},
|
219 |
+
"__execution_delay": 0.0,
|
220 |
+
"collapsed": null
|
221 |
},
|
222 |
"position": {
|
223 |
"x": 0.0,
|
|
|
230 |
"data": {
|
231 |
"title": "Knowledge base",
|
232 |
"params": {
|
|
|
233 |
"template_cluster_path": "/home/darabos/nvme/lynxscribe/examples/chat_api/data/lynx/tempclusters.pickle",
|
234 |
+
"edges_path": "/home/darabos/nvme/lynxscribe/examples/chat_api/data/lynx/edges.pickle",
|
235 |
+
"nodes_path": "/home/darabos/nvme/lynxscribe/examples/chat_api/data/lynx/nodes.pickle"
|
236 |
},
|
237 |
"display": null,
|
238 |
"error": null,
|
239 |
"meta": {
|
240 |
+
"params": {
|
241 |
+
"template_cluster_path": {
|
242 |
+
"name": "template_cluster_path",
|
243 |
+
"default": "tempclusters.pickle",
|
|
|
244 |
"type": {
|
245 |
+
"type": "<class 'str'>"
|
246 |
}
|
247 |
+
},
|
|
|
|
|
|
|
248 |
"edges_path": {
|
|
|
249 |
"default": "edges.pickle",
|
250 |
+
"name": "edges_path",
|
251 |
"type": {
|
252 |
"type": "<class 'str'>"
|
253 |
}
|
254 |
},
|
255 |
"nodes_path": {
|
256 |
+
"default": "nodes.pickle",
|
257 |
"name": "nodes_path",
|
258 |
"type": {
|
259 |
"type": "<class 'str'>"
|
260 |
+
}
|
261 |
+
}
|
262 |
+
},
|
263 |
+
"type": "basic",
|
264 |
+
"outputs": {
|
265 |
+
"output": {
|
266 |
"type": {
|
267 |
+
"type": "None"
|
268 |
},
|
269 |
+
"position": "top",
|
270 |
+
"name": "output"
|
271 |
}
|
272 |
},
|
273 |
+
"name": "Knowledge base",
|
274 |
"inputs": {}
|
275 |
}
|
276 |
},
|
|
|
285 |
"data": {
|
286 |
"title": "RAG chatbot",
|
287 |
"params": {
|
|
|
|
|
288 |
"limits_by_type": "{\"information\": [2, 3], \"summary\": [2, 3]}",
|
289 |
+
"negative_answer": "I'm sorry, but the data I've been trained on does not contain any information related to your question.",
|
290 |
+
"max_results": "5",
|
291 |
+
"strict_limits": true
|
292 |
},
|
293 |
"display": null,
|
294 |
"error": null,
|
295 |
"meta": {
|
296 |
+
"params": {
|
297 |
+
"limits_by_type": {
|
298 |
+
"name": "limits_by_type",
|
299 |
+
"default": "{}",
|
300 |
+
"type": {
|
301 |
+
"type": "<class 'str'>"
|
302 |
+
}
|
303 |
+
},
|
304 |
+
"max_results": {
|
305 |
+
"default": 5.0,
|
306 |
+
"name": "max_results",
|
307 |
+
"type": {
|
308 |
+
"type": "<class 'int'>"
|
309 |
+
}
|
310 |
+
},
|
311 |
+
"strict_limits": {
|
312 |
+
"type": {
|
313 |
+
"type": "<class 'bool'>"
|
314 |
+
},
|
315 |
+
"default": true,
|
316 |
+
"name": "strict_limits"
|
317 |
+
},
|
318 |
+
"negative_answer": {
|
319 |
+
"type": {
|
320 |
+
"type": "<class 'str'>"
|
321 |
+
},
|
322 |
+
"name": "negative_answer",
|
323 |
+
"default": "I'm sorry, but the data I've been trained on does not contain any information related to your question."
|
324 |
+
}
|
325 |
+
},
|
326 |
"name": "RAG chatbot",
|
327 |
+
"type": "basic",
|
328 |
"outputs": {
|
329 |
"output": {
|
330 |
"type": {
|
|
|
336 |
},
|
337 |
"inputs": {
|
338 |
"rag_graph": {
|
|
|
339 |
"position": "bottom",
|
340 |
+
"name": "rag_graph",
|
341 |
"type": {
|
342 |
"type": "<class 'inspect._empty'>"
|
343 |
}
|
344 |
},
|
345 |
+
"scenario_selector": {
|
|
|
346 |
"position": "bottom",
|
347 |
+
"name": "scenario_selector",
|
348 |
"type": {
|
349 |
"type": "<class 'inspect._empty'>"
|
350 |
}
|
351 |
},
|
352 |
+
"llm": {
|
353 |
"type": {
|
354 |
"type": "<class 'inspect._empty'>"
|
355 |
},
|
356 |
+
"position": "bottom",
|
357 |
+
"name": "llm"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
}
|
359 |
+
}
|
|
|
360 |
},
|
361 |
"beingResized": false
|
362 |
},
|
|
|
374 |
"display": null,
|
375 |
"error": null,
|
376 |
"collapsed": true,
|
|
|
377 |
"meta": {
|
378 |
+
"name": "RAG graph",
|
379 |
+
"params": {},
|
380 |
+
"outputs": {
|
381 |
+
"output": {
|
382 |
+
"type": {
|
383 |
+
"type": "None"
|
384 |
+
},
|
385 |
+
"position": "top",
|
386 |
+
"name": "output"
|
387 |
+
}
|
388 |
+
},
|
389 |
+
"type": "basic",
|
390 |
"inputs": {
|
391 |
"vector_store": {
|
392 |
+
"name": "vector_store",
|
393 |
"type": {
|
394 |
"type": "<class 'inspect._empty'>"
|
395 |
},
|
|
|
396 |
"position": "bottom"
|
397 |
},
|
398 |
"text_embedder": {
|
|
|
399 |
"position": "bottom",
|
400 |
"type": {
|
401 |
"type": "<class 'inspect._empty'>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
},
|
403 |
+
"name": "text_embedder"
|
|
|
404 |
}
|
405 |
+
}
|
406 |
+
},
|
407 |
+
"__execution_delay": null
|
408 |
},
|
409 |
"position": {
|
410 |
"x": 0.0,
|
|
|
417 |
"data": {
|
418 |
"title": "Vector store",
|
419 |
"params": {
|
420 |
+
"collection_name": "lynx",
|
421 |
+
"name": "chromadb"
|
422 |
},
|
423 |
"display": null,
|
424 |
"error": null,
|
|
|
425 |
"meta": {
|
426 |
"name": "Vector store",
|
427 |
+
"type": "basic",
|
428 |
+
"inputs": {},
|
429 |
"params": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
"collection_name": {
|
431 |
"type": {
|
432 |
"type": "<class 'str'>"
|
433 |
},
|
434 |
"default": "lynx",
|
435 |
"name": "collection_name"
|
436 |
+
},
|
437 |
+
"name": {
|
438 |
+
"name": "name",
|
439 |
+
"default": "chromadb",
|
440 |
+
"type": {
|
441 |
+
"type": "<class 'str'>"
|
442 |
+
}
|
443 |
}
|
444 |
},
|
|
|
|
|
445 |
"outputs": {
|
446 |
"output": {
|
447 |
"position": "top",
|
|
|
451 |
}
|
452 |
}
|
453 |
}
|
454 |
+
},
|
455 |
+
"beingResized": false
|
456 |
},
|
457 |
"position": {
|
458 |
"x": 0.0,
|
|
|
472 |
"collapsed": null,
|
473 |
"__execution_delay": 0.0,
|
474 |
"meta": {
|
475 |
+
"outputs": {
|
476 |
+
"output": {
|
477 |
+
"position": "top",
|
|
|
478 |
"type": {
|
479 |
+
"type": "None"
|
480 |
+
},
|
481 |
+
"name": "output"
|
482 |
}
|
483 |
},
|
484 |
+
"name": "Text embedder",
|
485 |
"params": {
|
486 |
"model": {
|
|
|
487 |
"name": "model",
|
488 |
+
"default": "text-embedding-ada-002",
|
489 |
"type": {
|
490 |
"type": "<class 'str'>"
|
491 |
}
|
492 |
}
|
493 |
},
|
494 |
+
"inputs": {
|
495 |
+
"llm": {
|
496 |
+
"position": "bottom",
|
497 |
+
"name": "llm",
|
|
|
|
|
498 |
"type": {
|
499 |
+
"type": "<class 'inspect._empty'>"
|
500 |
}
|
501 |
}
|
502 |
+
},
|
503 |
+
"type": "basic"
|
504 |
}
|
505 |
},
|
506 |
"position": {
|
|
|
519 |
"display": null,
|
520 |
"error": null,
|
521 |
"meta": {
|
|
|
522 |
"inputs": {},
|
523 |
"params": {
|
524 |
"name": {
|
525 |
"type": {
|
526 |
"type": "<class 'str'>"
|
527 |
},
|
528 |
+
"name": "name",
|
529 |
+
"default": "openai"
|
530 |
}
|
531 |
},
|
532 |
"outputs": {
|
533 |
"output": {
|
|
|
534 |
"name": "output",
|
535 |
+
"position": "top",
|
536 |
"type": {
|
537 |
"type": "None"
|
538 |
}
|
539 |
}
|
540 |
},
|
541 |
+
"name": "LLM",
|
542 |
"type": "basic"
|
543 |
}
|
544 |
},
|
|
|
558 |
"display": null,
|
559 |
"error": null,
|
560 |
"meta": {
|
561 |
+
"name": "Truncate history",
|
562 |
+
"type": "basic",
|
563 |
"outputs": {
|
564 |
"output": {
|
565 |
"type": {
|
|
|
569 |
"name": "output"
|
570 |
}
|
571 |
},
|
|
|
|
|
572 |
"params": {
|
573 |
"max_tokens": {
|
574 |
"type": {
|
575 |
"type": "<class 'int'>"
|
576 |
},
|
577 |
+
"default": 10000.0,
|
578 |
+
"name": "max_tokens"
|
579 |
}
|
580 |
+
},
|
581 |
+
"inputs": {}
|
582 |
}
|
583 |
},
|
584 |
"position": {
|
|
|
595 |
"display": null,
|
596 |
"error": null,
|
597 |
"meta": {
|
598 |
+
"params": {},
|
599 |
+
"name": "Chat processor",
|
600 |
"inputs": {
|
601 |
"processor": {
|
602 |
+
"position": "bottom",
|
603 |
"name": "processor",
|
604 |
"type": {
|
605 |
"type": "<class 'inspect._empty'>"
|
606 |
+
}
|
|
|
607 |
}
|
608 |
},
|
|
|
609 |
"outputs": {
|
610 |
"output": {
|
611 |
+
"position": "top",
|
612 |
"type": {
|
613 |
"type": "None"
|
614 |
},
|
615 |
+
"name": "output"
|
616 |
}
|
617 |
},
|
618 |
+
"type": "basic"
|
|
|
619 |
},
|
620 |
+
"collapsed": true,
|
621 |
+
"__execution_delay": null
|
622 |
},
|
623 |
"position": {
|
624 |
"x": 0.0,
|
|
|
631 |
"data": {
|
632 |
"title": "Mask",
|
633 |
"params": {
|
|
|
634 |
"mask_pattern": "masked_email_address_{}",
|
635 |
"regex": "([a-z0-9!#$%&'*+\\/=?^_`{|.}~-]+@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)",
|
636 |
+
"name": "email",
|
637 |
"exceptions": "[email protected],[email protected],[email protected],[email protected]"
|
638 |
},
|
639 |
"display": null,
|
640 |
"error": null,
|
641 |
"meta": {
|
642 |
+
"outputs": {
|
643 |
+
"output": {
|
644 |
+
"type": {
|
645 |
+
"type": "None"
|
646 |
+
},
|
647 |
+
"position": "top",
|
648 |
+
"name": "output"
|
649 |
+
}
|
650 |
+
},
|
651 |
+
"inputs": {},
|
652 |
+
"type": "basic",
|
653 |
+
"name": "Mask",
|
654 |
"params": {
|
655 |
+
"mask_pattern": {
|
656 |
"type": {
|
657 |
"type": "<class 'str'>"
|
658 |
},
|
659 |
+
"name": "mask_pattern",
|
660 |
+
"default": ""
|
661 |
},
|
662 |
+
"exceptions": {
|
|
|
663 |
"default": "",
|
664 |
+
"name": "exceptions",
|
665 |
"type": {
|
666 |
"type": "<class 'str'>"
|
667 |
}
|
668 |
},
|
669 |
"name": {
|
670 |
+
"name": "name",
|
671 |
"type": {
|
672 |
"type": "<class 'str'>"
|
673 |
},
|
674 |
+
"default": ""
|
|
|
675 |
},
|
676 |
+
"regex": {
|
|
|
|
|
677 |
"type": {
|
678 |
"type": "<class 'str'>"
|
679 |
+
},
|
680 |
+
"name": "regex",
|
681 |
+
"default": ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
}
|
683 |
+
}
|
|
|
684 |
}
|
685 |
},
|
686 |
"position": {
|
|
|
695 |
"title": "Mask",
|
696 |
"params": {
|
697 |
"regex": "((?:(?:\\\\d{4}[- ]?){3}\\\\d{4}|\\\\d{15,16}))(?![\\\\d])",
|
|
|
698 |
"exceptions": "",
|
699 |
+
"name": "credit_card",
|
700 |
+
"mask_pattern": "masked_credit_card_number_{}"
|
701 |
},
|
702 |
"display": null,
|
703 |
"error": null,
|
704 |
"meta": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
"params": {
|
706 |
+
"name": {
|
707 |
+
"name": "name",
|
708 |
"default": "",
|
709 |
"type": {
|
710 |
"type": "<class 'str'>"
|
711 |
+
}
|
|
|
712 |
},
|
713 |
+
"regex": {
|
714 |
+
"name": "regex",
|
715 |
"default": "",
|
716 |
"type": {
|
717 |
"type": "<class 'str'>"
|
718 |
+
}
|
|
|
719 |
},
|
720 |
+
"mask_pattern": {
|
721 |
"default": "",
|
722 |
+
"name": "mask_pattern",
|
723 |
"type": {
|
724 |
"type": "<class 'str'>"
|
725 |
}
|
726 |
},
|
727 |
+
"exceptions": {
|
728 |
+
"default": "",
|
729 |
+
"name": "exceptions",
|
730 |
"type": {
|
731 |
"type": "<class 'str'>"
|
732 |
+
}
|
|
|
|
|
733 |
}
|
734 |
},
|
735 |
+
"inputs": {},
|
736 |
+
"outputs": {
|
737 |
+
"output": {
|
738 |
+
"name": "output",
|
739 |
+
"position": "top",
|
740 |
+
"type": {
|
741 |
+
"type": "None"
|
742 |
+
}
|
743 |
+
}
|
744 |
+
},
|
745 |
+
"type": "basic",
|
746 |
+
"name": "Mask"
|
747 |
}
|
748 |
},
|
749 |
"position": {
|
|
|
761 |
},
|
762 |
"display": null,
|
763 |
"error": null,
|
764 |
+
"__execution_delay": 0.0,
|
765 |
"meta": {
|
766 |
+
"type": "basic",
|
767 |
"outputs": {
|
768 |
"output": {
|
769 |
"type": {
|
770 |
"type": "None"
|
771 |
},
|
772 |
+
"position": "right",
|
773 |
+
"name": "output"
|
774 |
}
|
775 |
},
|
776 |
+
"name": "Test Chat API",
|
777 |
"params": {
|
778 |
"show_details": {
|
|
|
|
|
779 |
"type": {
|
780 |
"type": "<class 'bool'>"
|
781 |
+
},
|
782 |
+
"default": false,
|
783 |
+
"name": "show_details"
|
784 |
}
|
785 |
},
|
|
|
786 |
"inputs": {
|
787 |
"message": {
|
788 |
"position": "left",
|
|
|
792 |
"name": "message"
|
793 |
},
|
794 |
"chat_api": {
|
|
|
|
|
795 |
"type": {
|
796 |
"type": "<class 'inspect._empty'>"
|
797 |
+
},
|
798 |
+
"name": "chat_api",
|
799 |
+
"position": "bottom"
|
800 |
}
|
801 |
+
}
|
|
|
802 |
},
|
803 |
+
"collapsed": false
|
804 |
},
|
805 |
"position": {
|
806 |
"x": 0.0,
|
{data β lynxkite-app/data}/NetworkX demo
RENAMED
File without changes
|
{data β lynxkite-app/data}/PyTorch demo
RENAMED
File without changes
|
{data β lynxkite-app/data}/RAG chatbot app
RENAMED
File without changes
|
{data β lynxkite-app/data}/sql
RENAMED
File without changes
|
lynxkite-app/pyproject.toml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
+
name = "lynxkite"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = "The LynxKite application, with web server and UI"
|
5 |
+
readme = "README.md"
|
6 |
+
requires-python = ">=3.11"
|
7 |
+
dependencies = [
|
8 |
+
"fastapi[standard]>=0.115.6",
|
9 |
+
"lynxkite-ops",
|
10 |
+
"orjson>=3.10.13",
|
11 |
+
"pycrdt-websocket>=0.15.3",
|
12 |
+
"pydantic-to-typescript>=2.0.0",
|
13 |
+
"sse-starlette>=2.2.1",
|
14 |
+
]
|
15 |
+
|
16 |
+
[tool.uv.sources]
|
17 |
+
lynxkite-ops = { path = "../lynxkite-ops" }
|
18 |
+
|
19 |
+
[build-system]
|
20 |
+
requires = ["setuptools", "wheel", "setuptools-scm"]
|
21 |
+
build-backend = "setuptools.build_meta"
|
22 |
+
|
23 |
+
[tool.setuptools.packages.find]
|
24 |
+
namespaces = true
|
25 |
+
where = ["src"]
|
26 |
+
|
27 |
+
[tool.setuptools.package-data]
|
28 |
+
"lynxkite.web_assets" = ["*"]
|
29 |
+
"lynxkite.web_assets.assets" = ["*"]
|
30 |
+
|
31 |
+
[tool.setuptools]
|
32 |
+
py-modules = ["build_frontend"]
|
33 |
+
include-package-data = true
|
34 |
+
|
35 |
+
[tool.setuptools.cmdclass]
|
36 |
+
build_py = "build_frontend.build_py"
|
37 |
+
|
38 |
+
[project.scripts]
|
39 |
+
lynxkite = "lynxkite.__main__:main"
|
run.sh β lynxkite-app/run.sh
RENAMED
File without changes
|
lynxkite-app/src/build_frontend.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""Customized build process for setuptools."""
|
2 |
+
|
3 |
+
import subprocess
|
4 |
+
from setuptools.command.build_py import build_py as _build_py
|
5 |
+
from pathlib import Path
|
6 |
+
import shutil
|
7 |
+
|
8 |
+
|
9 |
+
class build_py(_build_py):
|
10 |
+
def run(self):
|
11 |
+
print("\n\nBuilding frontend...", __file__)
|
12 |
+
here = Path(__file__).parent.parent
|
13 |
+
frontend_dir = here / "web"
|
14 |
+
package_dir = here / "src" / "lynxkite" / "web_assets"
|
15 |
+
subprocess.check_call(["npm", "install"], cwd=frontend_dir)
|
16 |
+
subprocess.check_call(["npm", "run", "build"], cwd=frontend_dir)
|
17 |
+
print("files in", frontend_dir / "dist")
|
18 |
+
for file in (frontend_dir / "dist").iterdir():
|
19 |
+
print(file)
|
20 |
+
# shutil.rmtree(package_dir)
|
21 |
+
shutil.copytree(frontend_dir / "dist", package_dir, dirs_exist_ok=True)
|
22 |
+
# (frontend_dir / "dist").rename(package_dir)
|
23 |
+
print("files in", package_dir)
|
24 |
+
for file in package_dir.iterdir():
|
25 |
+
print(file)
|
26 |
+
super().run()
|
{server β lynxkite-app/src/lynxkite}/__init__.py
RENAMED
File without changes
|
lynxkite-app/src/lynxkite/__main__.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import uvicorn
|
2 |
+
from .main import app # noqa: F401
|
3 |
+
import os
|
4 |
+
|
5 |
+
|
6 |
+
def main():
|
7 |
+
port = int(os.environ.get("PORT", "8000"))
|
8 |
+
reload = bool(os.environ.get("LYNXKITE_RELOAD", ""))
|
9 |
+
uvicorn.run("lynxkite.main:app", host="0.0.0.0", port=port, reload=reload)
|
10 |
+
|
11 |
+
|
12 |
+
if __name__ == "__main__":
|
13 |
+
main()
|
{server β lynxkite-app/src/lynxkite}/crdt.py
RENAMED
File without changes
|
{server β lynxkite-app/src/lynxkite}/main.py
RENAMED
@@ -6,9 +6,11 @@ import fastapi
|
|
6 |
import importlib
|
7 |
import pathlib
|
8 |
import pkgutil
|
|
|
|
|
|
|
|
|
9 |
from . import crdt
|
10 |
-
from . import ops
|
11 |
-
from . import workspace
|
12 |
|
13 |
here = pathlib.Path(__file__).parent
|
14 |
lynxkite_modules = {}
|
@@ -102,3 +104,23 @@ async def service_post(req: fastapi.Request, module_path: str):
|
|
102 |
"""Executors can provide extra HTTP APIs through the /api/service endpoint."""
|
103 |
module = lynxkite_modules[module_path.split("/")[0]]
|
104 |
return await module.api_service_post(req)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
import importlib
|
7 |
import pathlib
|
8 |
import pkgutil
|
9 |
+
from fastapi.staticfiles import StaticFiles
|
10 |
+
import starlette
|
11 |
+
from lynxkite import ops
|
12 |
+
from lynxkite import workspace
|
13 |
from . import crdt
|
|
|
|
|
14 |
|
15 |
here = pathlib.Path(__file__).parent
|
16 |
lynxkite_modules = {}
|
|
|
104 |
"""Executors can provide extra HTTP APIs through the /api/service endpoint."""
|
105 |
module = lynxkite_modules[module_path.split("/")[0]]
|
106 |
return await module.api_service_post(req)
|
107 |
+
|
108 |
+
|
109 |
+
class SPAStaticFiles(StaticFiles):
|
110 |
+
"""Route everything to index.html. https://stackoverflow.com/a/73552966/3318517"""
|
111 |
+
|
112 |
+
async def get_response(self, path: str, scope):
|
113 |
+
try:
|
114 |
+
return await super().get_response(path, scope)
|
115 |
+
except (
|
116 |
+
fastapi.HTTPException,
|
117 |
+
starlette.exceptions.HTTPException,
|
118 |
+
) as ex:
|
119 |
+
if ex.status_code == 404:
|
120 |
+
return await super().get_response(".", scope)
|
121 |
+
else:
|
122 |
+
raise ex
|
123 |
+
|
124 |
+
|
125 |
+
static_dir = SPAStaticFiles(packages=[("lynxkite", "web_assets")], html=True)
|
126 |
+
app.mount("/", static_dir, name="web_assets")
|
lynxkite-app/src/lynxkite/web_assets/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"""The build process (uv build) puts the frontend build artifacts here."""
|
lynxkite-app/src/lynxkite/web_assets/assets/__init__.py
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
"""More frontend build artifacts."""
|
lynxkite-app/uv.lock
ADDED
The diff for this file is too large to render.
See raw diff
|
|
{web β lynxkite-app/web}/.gitignore
RENAMED
File without changes
|
{web β lynxkite-app/web}/README.md
RENAMED
File without changes
|
{web β lynxkite-app/web}/eslint.config.js
RENAMED
File without changes
|
{web β lynxkite-app/web}/index.html
RENAMED
File without changes
|
{web β lynxkite-app/web}/package-lock.json
RENAMED
File without changes
|
{web β lynxkite-app/web}/package.json
RENAMED
@@ -4,10 +4,10 @@
|
|
4 |
"version": "0.0.0",
|
5 |
"type": "module",
|
6 |
"scripts": {
|
7 |
-
"dev": "vite",
|
8 |
-
"build": "tsc -b && vite build",
|
9 |
-
"lint": "eslint .",
|
10 |
-
"preview": "vite preview"
|
11 |
},
|
12 |
"dependencies": {
|
13 |
"@esbuild/linux-x64": "^0.24.0",
|
|
|
4 |
"version": "0.0.0",
|
5 |
"type": "module",
|
6 |
"scripts": {
|
7 |
+
"dev": "npx vite",
|
8 |
+
"build": "npx tsc -b && npx vite build",
|
9 |
+
"lint": "npx eslint .",
|
10 |
+
"preview": "npx vite preview"
|
11 |
},
|
12 |
"dependencies": {
|
13 |
"@esbuild/linux-x64": "^0.24.0",
|
{web β lynxkite-app/web}/postcss.config.js
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/Directory.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/apiTypes.ts
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/assets/favicon.ico
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/assets/logo.png
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/index.css
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/main.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/vite-env.d.ts
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/workspace/EnvironmentSelector.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/workspace/LynxKiteState.ts
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/workspace/NodeSearch.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/workspace/Workspace.tsx
RENAMED
@@ -57,7 +57,7 @@ function LynxKiteFlow() {
|
|
57 |
const state = syncedStore({ workspace: {} as Workspace });
|
58 |
setState(state);
|
59 |
const doc = getYjsDoc(state);
|
60 |
-
const wsProvider = new WebsocketProvider(
|
61 |
const onChange = (_update: any, origin: any, _doc: any, _tr: any) => {
|
62 |
if (origin === wsProvider) {
|
63 |
// An update from the CRDT. Apply it to the local state.
|
|
|
57 |
const state = syncedStore({ workspace: {} as Workspace });
|
58 |
setState(state);
|
59 |
const doc = getYjsDoc(state);
|
60 |
+
const wsProvider = new WebsocketProvider(`ws://${location.host}/ws/crdt`, path!, doc);
|
61 |
const onChange = (_update: any, origin: any, _doc: any, _tr: any) => {
|
62 |
if (origin === wsProvider) {
|
63 |
// An update from the CRDT. Apply it to the local state.
|
{web β lynxkite-app/web}/src/workspace/nodes/LynxKiteNode.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/workspace/nodes/NodeParameter.tsx
RENAMED
@@ -1,10 +1,17 @@
|
|
1 |
const BOOLEAN = "<class 'bool'>";
|
2 |
|
3 |
-
function ParamName({ name }) {
|
4 |
return <span className="param-name bg-base-200">{name.replace(/_/g, ' ')}</span>;
|
5 |
}
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
return (
|
9 |
<label className="param">
|
10 |
{meta?.type?.format === 'collapsed' ? <>
|
@@ -25,7 +32,7 @@ export default function NodeParameter({ name, value, meta, onChange }) {
|
|
25 |
value={value || meta.type.enum[0]}
|
26 |
onChange={(evt) => onChange(evt.currentTarget.value)}
|
27 |
>
|
28 |
-
{meta.type.enum.map(option =>
|
29 |
<option key={option} value={option}>{option}</option>
|
30 |
)}
|
31 |
</select>
|
|
|
1 |
const BOOLEAN = "<class 'bool'>";
|
2 |
|
3 |
+
function ParamName({ name }: { name: string }) {
|
4 |
return <span className="param-name bg-base-200">{name.replace(/_/g, ' ')}</span>;
|
5 |
}
|
6 |
|
7 |
+
interface NodeParameterProps {
|
8 |
+
name: string;
|
9 |
+
value: any;
|
10 |
+
meta: any;
|
11 |
+
onChange: (value: any, options?: { delay: number }) => void;
|
12 |
+
}
|
13 |
+
|
14 |
+
export default function NodeParameter({ name, value, meta, onChange }: NodeParameterProps) {
|
15 |
return (
|
16 |
<label className="param">
|
17 |
{meta?.type?.format === 'collapsed' ? <>
|
|
|
32 |
value={value || meta.type.enum[0]}
|
33 |
onChange={(evt) => onChange(evt.currentTarget.value)}
|
34 |
>
|
35 |
+
{meta.type.enum.map((option: string) =>
|
36 |
<option key={option} value={option}>{option}</option>
|
37 |
)}
|
38 |
</select>
|
{web β lynxkite-app/web}/src/workspace/nodes/NodeWithImage.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/workspace/nodes/NodeWithParams.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/workspace/nodes/NodeWithTableView.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/src/workspace/nodes/NodeWithVisualization.tsx
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
import React, { useEffect } from 'react';
|
2 |
import NodeWithParams from './NodeWithParams';
|
3 |
-
|
4 |
|
5 |
const NodeWithVisualization = (props: any) => {
|
6 |
const chartsRef = React.useRef<HTMLDivElement>(null);
|
|
|
1 |
import React, { useEffect } from 'react';
|
2 |
import NodeWithParams from './NodeWithParams';
|
3 |
+
const echarts = await import('echarts');
|
4 |
|
5 |
const NodeWithVisualization = (props: any) => {
|
6 |
const chartsRef = React.useRef<HTMLDivElement>(null);
|
{web β lynxkite-app/web}/src/workspace/nodes/Table.tsx
RENAMED
File without changes
|
{web β lynxkite-app/web}/tailwind.config.js
RENAMED
@@ -7,6 +7,7 @@ export default {
|
|
7 |
},
|
8 |
plugins: [require('daisyui')],
|
9 |
daisyui: {
|
|
|
10 |
themes: [
|
11 |
{
|
12 |
lynxkite: {
|
|
|
7 |
},
|
8 |
plugins: [require('daisyui')],
|
9 |
daisyui: {
|
10 |
+
logs: false,
|
11 |
themes: [
|
12 |
{
|
13 |
lynxkite: {
|
{web β lynxkite-app/web}/tsconfig.app.json
RENAMED
File without changes
|
{web β lynxkite-app/web}/tsconfig.json
RENAMED
File without changes
|