openchatbi 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. openchatbi-0.0.1/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
  2. openchatbi-0.0.1/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  3. openchatbi-0.0.1/.github/workflows/docs.yml +58 -0
  4. openchatbi-0.0.1/.gitignore +212 -0
  5. openchatbi-0.0.1/.idea/.gitignore +8 -0
  6. openchatbi-0.0.1/.idea/inspectionProfiles/Project_Default.xml +42 -0
  7. openchatbi-0.0.1/.idea/inspectionProfiles/profiles_settings.xml +6 -0
  8. openchatbi-0.0.1/.idea/misc.xml +7 -0
  9. openchatbi-0.0.1/.idea/modules.xml +8 -0
  10. openchatbi-0.0.1/.idea/openchatbi.iml +17 -0
  11. openchatbi-0.0.1/.idea/vcs.xml +6 -0
  12. openchatbi-0.0.1/.idea/workspace.xml +62 -0
  13. openchatbi-0.0.1/CONTRIBUTING.md +6 -0
  14. openchatbi-0.0.1/Dockerfile.python-executor +23 -0
  15. openchatbi-0.0.1/LICENSE +21 -0
  16. openchatbi-0.0.1/PKG-INFO +674 -0
  17. openchatbi-0.0.1/README.md +582 -0
  18. openchatbi-0.0.1/docs/Makefile +20 -0
  19. openchatbi-0.0.1/docs/make.bat +35 -0
  20. openchatbi-0.0.1/docs/source/_templates/layout.html +20 -0
  21. openchatbi-0.0.1/docs/source/catalog.rst +38 -0
  22. openchatbi-0.0.1/docs/source/code.rst +26 -0
  23. openchatbi-0.0.1/docs/source/conf.py +89 -0
  24. openchatbi-0.0.1/docs/source/config.rst +21 -0
  25. openchatbi-0.0.1/docs/source/core.rst +34 -0
  26. openchatbi-0.0.1/docs/source/index.rst +33 -0
  27. openchatbi-0.0.1/docs/source/llm.rst +18 -0
  28. openchatbi-0.0.1/docs/source/text2sql.rst +48 -0
  29. openchatbi-0.0.1/docs/source/tools.rst +39 -0
  30. openchatbi-0.0.1/example/bi.yaml +53 -0
  31. openchatbi-0.0.1/example/common_columns.csv +21 -0
  32. openchatbi-0.0.1/example/config.yaml +35 -0
  33. openchatbi-0.0.1/example/demo.gif +0 -0
  34. openchatbi-0.0.1/example/sql_example.yaml +45 -0
  35. openchatbi-0.0.1/example/table_columns.csv +28 -0
  36. openchatbi-0.0.1/example/table_info.yaml +29 -0
  37. openchatbi-0.0.1/example/table_selection_example.csv +11 -0
  38. openchatbi-0.0.1/example/tracking_orders.sqlite +0 -0
  39. openchatbi-0.0.1/openchatbi/__init__.py +35 -0
  40. openchatbi-0.0.1/openchatbi/agent_graph.py +373 -0
  41. openchatbi-0.0.1/openchatbi/catalog/__init__.py +14 -0
  42. openchatbi-0.0.1/openchatbi/catalog/catalog_loader.py +208 -0
  43. openchatbi-0.0.1/openchatbi/catalog/catalog_store.py +202 -0
  44. openchatbi-0.0.1/openchatbi/catalog/entry.py +5 -0
  45. openchatbi-0.0.1/openchatbi/catalog/factory.py +81 -0
  46. openchatbi-0.0.1/openchatbi/catalog/helper.py +49 -0
  47. openchatbi-0.0.1/openchatbi/catalog/retrival_helper.py +74 -0
  48. openchatbi-0.0.1/openchatbi/catalog/schema_retrival.py +144 -0
  49. openchatbi-0.0.1/openchatbi/catalog/store/__init__.py +3 -0
  50. openchatbi-0.0.1/openchatbi/catalog/store/file_system.py +789 -0
  51. openchatbi-0.0.1/openchatbi/catalog/token_service.py +48 -0
  52. openchatbi-0.0.1/openchatbi/code/docker_executor.py +179 -0
  53. openchatbi-0.0.1/openchatbi/code/executor_base.py +21 -0
  54. openchatbi-0.0.1/openchatbi/code/local_executor.py +21 -0
  55. openchatbi-0.0.1/openchatbi/code/restricted_local_executor.py +47 -0
  56. openchatbi-0.0.1/openchatbi/config.yaml.template +74 -0
  57. openchatbi-0.0.1/openchatbi/config_loader.py +225 -0
  58. openchatbi-0.0.1/openchatbi/constants.py +17 -0
  59. openchatbi-0.0.1/openchatbi/graph_state.py +59 -0
  60. openchatbi-0.0.1/openchatbi/llm/llm.py +94 -0
  61. openchatbi-0.0.1/openchatbi/prompts/agent_prompt.md +48 -0
  62. openchatbi-0.0.1/openchatbi/prompts/extraction_prompt.md +175 -0
  63. openchatbi-0.0.1/openchatbi/prompts/schema_linking_prompt.md +56 -0
  64. openchatbi-0.0.1/openchatbi/prompts/sql_dialect/presto.md +57 -0
  65. openchatbi-0.0.1/openchatbi/prompts/system_prompt.py +92 -0
  66. openchatbi-0.0.1/openchatbi/prompts/text2sql_prompt.md +35 -0
  67. openchatbi-0.0.1/openchatbi/prompts/visualization_prompt.md +34 -0
  68. openchatbi-0.0.1/openchatbi/text2sql/__init__.py +1 -0
  69. openchatbi-0.0.1/openchatbi/text2sql/data.py +12 -0
  70. openchatbi-0.0.1/openchatbi/text2sql/extraction.py +122 -0
  71. openchatbi-0.0.1/openchatbi/text2sql/generate_sql.py +400 -0
  72. openchatbi-0.0.1/openchatbi/text2sql/schema_linking.py +239 -0
  73. openchatbi-0.0.1/openchatbi/text2sql/sql_graph.py +150 -0
  74. openchatbi-0.0.1/openchatbi/text2sql/text2sql_utils.py +57 -0
  75. openchatbi-0.0.1/openchatbi/text2sql/visualization.py +315 -0
  76. openchatbi-0.0.1/openchatbi/tool/ask_human.py +15 -0
  77. openchatbi-0.0.1/openchatbi/tool/mcp_tools.py +257 -0
  78. openchatbi-0.0.1/openchatbi/tool/memory.py +181 -0
  79. openchatbi-0.0.1/openchatbi/tool/run_python_code.py +70 -0
  80. openchatbi-0.0.1/openchatbi/tool/save_report.py +65 -0
  81. openchatbi-0.0.1/openchatbi/tool/search_knowledge.py +107 -0
  82. openchatbi-0.0.1/openchatbi/utils.py +183 -0
  83. openchatbi-0.0.1/pyproject.toml +246 -0
  84. openchatbi-0.0.1/run_streamlit_ui.py +54 -0
  85. openchatbi-0.0.1/run_tests.py +112 -0
  86. openchatbi-0.0.1/sample_api/async_api.py +127 -0
  87. openchatbi-0.0.1/sample_ui/memory_ui.py +186 -0
  88. openchatbi-0.0.1/sample_ui/plotly_utils.py +291 -0
  89. openchatbi-0.0.1/sample_ui/simple_ui.py +102 -0
  90. openchatbi-0.0.1/sample_ui/streaming_ui.py +378 -0
  91. openchatbi-0.0.1/sample_ui/streamlit_ui.py +600 -0
  92. openchatbi-0.0.1/sample_ui/style.py +37 -0
  93. openchatbi-0.0.1/tests/README.md +342 -0
  94. openchatbi-0.0.1/tests/__init__.py +1 -0
  95. openchatbi-0.0.1/tests/conftest.py +199 -0
  96. openchatbi-0.0.1/tests/test_catalog_loader.py +147 -0
  97. openchatbi-0.0.1/tests/test_catalog_store.py +187 -0
  98. openchatbi-0.0.1/tests/test_config_loader.py +195 -0
  99. openchatbi-0.0.1/tests/test_graph_state.py +165 -0
  100. openchatbi-0.0.1/tests/test_memory.py +344 -0
  101. openchatbi-0.0.1/tests/test_text2sql_extraction.py +222 -0
  102. openchatbi-0.0.1/tests/test_text2sql_generate_sql.py +301 -0
  103. openchatbi-0.0.1/tests/test_text2sql_schema_linking.py +372 -0
  104. openchatbi-0.0.1/tests/test_tools_ask_human.py +43 -0
  105. openchatbi-0.0.1/tests/test_tools_run_python_code.py +349 -0
  106. openchatbi-0.0.1/tests/test_tools_search_knowledge.py +440 -0
  107. openchatbi-0.0.1/tests/test_utils.py +178 -0
  108. openchatbi-0.0.1/uv.lock +5529 -0
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Additional context**
27
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,58 @@
1
+ name: Build and Deploy Documentation
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ permissions:
10
+ contents: read
11
+ pages: write
12
+ id-token: write
13
+
14
+ concurrency:
15
+ group: "pages"
16
+ cancel-in-progress: false
17
+
18
+ jobs:
19
+ build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - name: Set up Python
26
+ uses: actions/setup-python@v4
27
+ with:
28
+ python-version: '3.11'
29
+
30
+ - name: Install dependencies
31
+ run: |
32
+ python -m pip install --upgrade pip
33
+ pip install -e ".[docs]"
34
+
35
+ - name: Build documentation
36
+ run: |
37
+ cd docs
38
+ make html
39
+
40
+ - name: Setup Pages
41
+ uses: actions/configure-pages@v4
42
+
43
+ - name: Upload artifact
44
+ uses: actions/upload-pages-artifact@v3
45
+ with:
46
+ path: './docs/build/html'
47
+
48
+ deploy:
49
+ environment:
50
+ name: github-pages
51
+ url: ${{ steps.deployment.outputs.page_url }}
52
+ runs-on: ubuntu-latest
53
+ needs: build
54
+ if: github.ref == 'refs/heads/main'
55
+ steps:
56
+ - name: Deploy to GitHub Pages
57
+ id: deployment
58
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,212 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
208
+
209
+ # project spec
210
+ openchatbi/config.yaml
211
+ memory.db
212
+ checkpoints.db
@@ -0,0 +1,8 @@
1
+ # 默认忽略的文件
2
+ /shelf/
3
+ /workspace.xml
4
+ # 基于编辑器的 HTTP 客户端请求
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
@@ -0,0 +1,42 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ <inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
6
+ <option name="myValues">
7
+ <value>
8
+ <list size="7">
9
+ <item index="0" class="java.lang.String" itemvalue="nobr" />
10
+ <item index="1" class="java.lang.String" itemvalue="noembed" />
11
+ <item index="2" class="java.lang.String" itemvalue="comment" />
12
+ <item index="3" class="java.lang.String" itemvalue="noscript" />
13
+ <item index="4" class="java.lang.String" itemvalue="embed" />
14
+ <item index="5" class="java.lang.String" itemvalue="script" />
15
+ <item index="6" class="java.lang.String" itemvalue="example" />
16
+ </list>
17
+ </value>
18
+ </option>
19
+ <option name="myCustomValuesEnabled" value="true" />
20
+ </inspection_tool>
21
+ <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
22
+ <option name="ignoredPackages">
23
+ <value>
24
+ <list size="12">
25
+ <item index="0" class="java.lang.String" itemvalue="chromadb" />
26
+ <item index="1" class="java.lang.String" itemvalue="pandas" />
27
+ <item index="2" class="java.lang.String" itemvalue="langchain-community" />
28
+ <item index="3" class="java.lang.String" itemvalue="langgraph" />
29
+ <item index="4" class="java.lang.String" itemvalue="pydruid" />
30
+ <item index="5" class="java.lang.String" itemvalue="langchain-openai" />
31
+ <item index="6" class="java.lang.String" itemvalue="slackclient" />
32
+ <item index="7" class="java.lang.String" itemvalue="langchain" />
33
+ <item index="8" class="java.lang.String" itemvalue="pyspark" />
34
+ <item index="9" class="java.lang.String" itemvalue="flask_cors" />
35
+ <item index="10" class="java.lang.String" itemvalue="langchain-chroma" />
36
+ <item index="11" class="java.lang.String" itemvalue="PyMySQL" />
37
+ </list>
38
+ </value>
39
+ </option>
40
+ </inspection_tool>
41
+ </profile>
42
+ </component>
@@ -0,0 +1,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Black">
4
+ <option name="sdkName" value="uv (openchatbi)" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="uv (openchatbi)" project-jdk-type="Python SDK" />
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/openchatbi.iml" filepath="$PROJECT_DIR$/.idea/openchatbi.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.venv" />
6
+ </content>
7
+ <orderEntry type="jdk" jdkName="uv (openchatbi)" jdkType="Python SDK" />
8
+ <orderEntry type="sourceFolder" forTests="false" />
9
+ </component>
10
+ <component name="PyDocumentationSettings">
11
+ <option name="format" value="PLAIN" />
12
+ <option name="myDocStringFormat" value="Plain" />
13
+ </component>
14
+ <component name="TestRunnerService">
15
+ <option name="PROJECT_TEST_RUNNER" value="py.test" />
16
+ </component>
17
+ </module>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,62 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="2b3e46de-cec2-4c5a-b843-f4cc0750c19d" name="更改" comment="" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="Git.Settings">
14
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
15
+ </component>
16
+ <component name="ProjectColorInfo"><![CDATA[{
17
+ "associatedIndex": 4
18
+ }]]></component>
19
+ <component name="ProjectId" id="32SB8hi0QTbdFWzlFEsxCtzseu7" />
20
+ <component name="ProjectViewState">
21
+ <option name="autoscrollFromSource" value="true" />
22
+ <option name="hideEmptyMiddlePackages" value="true" />
23
+ <option name="showLibraryContents" value="true" />
24
+ </component>
25
+ <component name="PropertiesComponent"><![CDATA[{
26
+ "keyToString": {
27
+ "RunOnceActivity.ShowReadmeOnStart": "true",
28
+ "RunOnceActivity.git.unshallow": "true",
29
+ "git-widget-placeholder": "main",
30
+ "last_opened_file_path": "/Users/yzhong@apac.freewheel.com/Projects/openchatbi",
31
+ "node.js.detected.package.eslint": "true",
32
+ "node.js.detected.package.tslint": "true",
33
+ "node.js.selected.package.eslint": "(autodetect)",
34
+ "node.js.selected.package.tslint": "(autodetect)",
35
+ "nodejs_package_manager_path": "npm",
36
+ "vue.rearranger.settings.migration": "true"
37
+ }
38
+ }]]></component>
39
+ <component name="SharedIndexes">
40
+ <attachedChunks>
41
+ <set>
42
+ <option value="bundled-js-predefined-d6986cc7102b-1632447f56bf-JavaScript-PY-243.26053.29" />
43
+ <option value="bundled-python-sdk-b1dbf8ef85a6-4df51de95216-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-243.26053.29" />
44
+ </set>
45
+ </attachedChunks>
46
+ </component>
47
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
48
+ <component name="TaskManager">
49
+ <task active="true" id="Default" summary="默认任务">
50
+ <changelist id="2b3e46de-cec2-4c5a-b843-f4cc0750c19d" name="更改" comment="" />
51
+ <created>1757403936053</created>
52
+ <option name="number" value="Default" />
53
+ <option name="presentableId" value="Default" />
54
+ <updated>1757403936053</updated>
55
+ <workItem from="1757403937102" duration="1817000" />
56
+ </task>
57
+ <servers />
58
+ </component>
59
+ <component name="TypeScriptGeneratedFilesManager">
60
+ <option name="version" value="3" />
61
+ </component>
62
+ </project>
@@ -0,0 +1,6 @@
1
+ # Contributing to OpenChatBI
2
+ Hi there! Thank you for your interest in contributing to OpenChatBI.
3
+
4
+ OpenChatBI started as a personal project, with the hope of making it easier for businesses to build their own ChatBI applications with less effort. To achieve this goal, I made it open source, and I greatly appreciate contributions of all kinds.
5
+
6
+ Whether you’d like to propose a new feature, refactor the code, enhance documentation, or fix bugs, your contributions are always welcome.
@@ -0,0 +1,23 @@
1
+ FROM python:3.11-slim
2
+
3
+ # Set working directory
4
+ WORKDIR /app
5
+
6
+ # Install basic packages that might be needed for data analysis
7
+ RUN pip install --no-cache-dir \
8
+ pandas \
9
+ numpy \
10
+ matplotlib \
11
+ seaborn \
12
+ requests \
13
+ json5
14
+
15
+ # Create a directory for code execution
16
+ RUN mkdir -p /app/code
17
+
18
+ # Set up a non-root user for security
19
+ RUN useradd -m -u 1000 executor
20
+ USER executor
21
+
22
+ # Set the default command
23
+ CMD ["python3"]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Yu Zhong
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.