Spaces:
Runtime error
Runtime error
Upload 4346 files
Browse filesThis view is limited to 50 files because it contains too many changes. Β See raw diff
- .gitattributes +12 -0
- backend/.env +19 -0
- backend/.env.example +17 -17
- backend/.python-version +1 -1
- backend/data/readme.txt +1 -0
- backend/data/rexpro.db +3 -0
- backend/data/rexpro.db-shm +0 -0
- backend/data/rexpro.db-wal +3 -0
- backend/data/vector_db/chroma.sqlite3 +3 -0
- backend/requirements.txt +1 -1
- backend/rexpro_ai/__pycache__/__init__.cpython-312.pyc +0 -0
- backend/rexpro_ai/__pycache__/__init__.cpython-313.pyc +0 -0
- backend/rexpro_ai/__pycache__/config.cpython-312.pyc +3 -0
- backend/rexpro_ai/__pycache__/config.cpython-313.pyc +3 -0
- backend/rexpro_ai/__pycache__/constants.cpython-312.pyc +0 -0
- backend/rexpro_ai/__pycache__/env.cpython-312.pyc +0 -0
- backend/rexpro_ai/__pycache__/env.cpython-313.pyc +0 -0
- backend/rexpro_ai/__pycache__/functions.cpython-312.pyc +0 -0
- backend/rexpro_ai/__pycache__/main.cpython-312.pyc +3 -0
- backend/rexpro_ai/__pycache__/main.cpython-313.pyc +3 -0
- backend/rexpro_ai/__pycache__/tasks.cpython-312.pyc +0 -0
- backend/rexpro_ai/data/readme.txt +1 -0
- backend/rexpro_ai/internal/__pycache__/config.cpython-312.pyc +0 -0
- backend/rexpro_ai/internal/__pycache__/db.cpython-312.pyc +0 -0
- backend/rexpro_ai/main.py +7 -8
- backend/rexpro_ai/migrations/__pycache__/env.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/__pycache__/util.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/018012973d35_add_indexes.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/1af9b942657b_migrate_tags.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/242a2047eae0_update_chat_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/2f1211949ecc_update_message_and_channel_member_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/374d2f66af06_add_prompt_history_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/3781e22d8b01_update_message_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/37f288994c47_add_group_member_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/38d63c18f30f_add_oauth_session_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/3ab32c4b8f59_update_tags.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/3af16a1c9fb6_update_user_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/3c9b0ca343fd_add_knowledge_directory_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/3e0e00844bb0_add_knowledge_file_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/461111b60977_add_missing_primary_keys_to_legacy_.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/4ace53fd72c8_update_folder_table_datetime.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/4de81c2a3af1_add_pinned_note_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/56359461a091_add_calendar_tables.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/57c599a3cb57_add_channel_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/6283dc0e4d8d_add_channel_file_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/6a39f3d8e55c_add_knowledge_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/7826ab40b532_update_file_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/7e5b5dc7342b_init.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/81cc2ce44d79_update_channel_file_and_knowledge_table.cpython-312.pyc +0 -0
- backend/rexpro_ai/migrations/versions/__pycache__/8452d01d26d7_add_chat_message_table.cpython-312.pyc +0 -0
.gitattributes
CHANGED
|
@@ -6,3 +6,15 @@
|
|
| 6 |
*.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.whl filter=lfs diff=lfs merge=lfs -text
|
| 8 |
frontend/build/pyodide/python_stdlib.zip filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
*.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.whl filter=lfs diff=lfs merge=lfs -text
|
| 8 |
frontend/build/pyodide/python_stdlib.zip filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
backend/data/rexpro.db filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
backend/data/rexpro.db-wal filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
backend/data/vector_db/chroma.sqlite3 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
backend/rexpro_ai/__pycache__/config.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
backend/rexpro_ai/__pycache__/config.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
backend/rexpro_ai/__pycache__/main.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
backend/rexpro_ai/__pycache__/main.cpython-313.pyc filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
backend/rexpro_ai/models/__pycache__/chats.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
backend/rexpro_ai/routers/__pycache__/retrieval.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
backend/rexpro_ai/static/pyodide/python_stdlib.zip filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
backend/rexpro_ai/tools/__pycache__/builtin.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
backend/rexpro_ai/utils/__pycache__/middleware.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
backend/.env
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Port (HF Spaces biasanya 7860)
|
| 2 |
+
PORT=7860
|
| 3 |
+
HOST=0.0.0.0
|
| 4 |
+
|
| 5 |
+
# CORS - HARUS diisi, jangan *
|
| 6 |
+
# Ganti dengan URL frontend kamu (tanpa trailing slash)
|
| 7 |
+
CORS_ALLOW_ORIGIN=http://localhost:5173
|
| 8 |
+
|
| 9 |
+
# Proxy headers
|
| 10 |
+
FORWARDED_ALLOW_IPS=*
|
| 11 |
+
|
| 12 |
+
# Secret key (bisa kosong - auto generate, tapi kalau mau set manual:
|
| 13 |
+
REXPRO_SECRET_KEY=6bqutotibnlsEKNeZgBC1acdwoaoTfZYSLPXFDl8NTtOCMpDC4Ml9Nrfu9uSH3e2
|
| 14 |
+
|
| 15 |
+
# Optional: default false untuk save memory
|
| 16 |
+
USE_SLIM=true
|
| 17 |
+
USE_CUDA=false
|
| 18 |
+
USE_OLLAMA=false
|
| 19 |
+
FRONTEND_BUILD_DIR=../frontend
|
backend/.env.example
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
-
# Port (HF Spaces biasanya 7860)
|
| 2 |
-
PORT=7860
|
| 3 |
-
HOST=0.0.0.0
|
| 4 |
-
|
| 5 |
-
# CORS - HARUS diisi, jangan *
|
| 6 |
-
# Ganti dengan URL frontend kamu (tanpa trailing slash)
|
| 7 |
-
CORS_ALLOW_ORIGIN=http://localhost:5173
|
| 8 |
-
|
| 9 |
-
# Proxy headers
|
| 10 |
-
FORWARDED_ALLOW_IPS=*
|
| 11 |
-
|
| 12 |
-
# Secret key (bisa kosong - auto generate, tapi kalau mau set manual:
|
| 13 |
-
REXPRO_SECRET_KEY=6bqutotibnlsEKNeZgBC1acdwoaoTfZYSLPXFDl8NTtOCMpDC4Ml9Nrfu9uSH3e2
|
| 14 |
-
|
| 15 |
-
# Optional: default false untuk save memory
|
| 16 |
-
USE_SLIM=true
|
| 17 |
-
USE_CUDA=false
|
| 18 |
USE_OLLAMA=false
|
|
|
|
| 1 |
+
# Port (HF Spaces biasanya 7860)
|
| 2 |
+
PORT=7860
|
| 3 |
+
HOST=0.0.0.0
|
| 4 |
+
|
| 5 |
+
# CORS - HARUS diisi, jangan *
|
| 6 |
+
# Ganti dengan URL frontend kamu (tanpa trailing slash)
|
| 7 |
+
CORS_ALLOW_ORIGIN=http://localhost:5173
|
| 8 |
+
|
| 9 |
+
# Proxy headers
|
| 10 |
+
FORWARDED_ALLOW_IPS=*
|
| 11 |
+
|
| 12 |
+
# Secret key (bisa kosong - auto generate, tapi kalau mau set manual:
|
| 13 |
+
REXPRO_SECRET_KEY=6bqutotibnlsEKNeZgBC1acdwoaoTfZYSLPXFDl8NTtOCMpDC4Ml9Nrfu9uSH3e2
|
| 14 |
+
|
| 15 |
+
# Optional: default false untuk save memory
|
| 16 |
+
USE_SLIM=true
|
| 17 |
+
USE_CUDA=false
|
| 18 |
USE_OLLAMA=false
|
backend/.python-version
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
3.12.10
|
|
|
|
| 1 |
+
3.12.10
|
backend/data/readme.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
docker dir for backend files (db, documents, etc.)
|
backend/data/rexpro.db
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:477f87d38996ae0ce905fa1eeef8a6779e056b5851b3527de5bd00de53ab626f
|
| 3 |
+
size 606208
|
backend/data/rexpro.db-shm
ADDED
|
Binary file (32.8 kB). View file
|
|
|
backend/data/rexpro.db-wal
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdde52e4f427af27fa44e2271d288729a3f7780e5d41a3711d71d14ac31eb77d
|
| 3 |
+
size 1030032
|
backend/data/vector_db/chroma.sqlite3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5a3017b28d2dcb393decbcdc6fc536e240ef6119eb64512b8fa44637b030848
|
| 3 |
+
size 188416
|
backend/requirements.txt
CHANGED
|
@@ -133,7 +133,7 @@ elasticsearch==9.3.0
|
|
| 133 |
pinecone==6.0.2
|
| 134 |
oracledb==3.4.2
|
| 135 |
|
| 136 |
-
av==14.0.1 # Caution: Set due to FATAL FIPS SELFTEST FAILURE, see discussion https://github.com/
|
| 137 |
|
| 138 |
colbert-ai==0.2.22
|
| 139 |
|
|
|
|
| 133 |
pinecone==6.0.2
|
| 134 |
oracledb==3.4.2
|
| 135 |
|
| 136 |
+
av==14.0.1 # Caution: Set due to FATAL FIPS SELFTEST FAILURE, see discussion https://github.com/dev-rexpro/rexpro-ai/discussions/15720
|
| 137 |
|
| 138 |
colbert-ai==0.2.22
|
| 139 |
|
backend/rexpro_ai/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (4.47 kB). View file
|
|
|
backend/rexpro_ai/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (4.56 kB). View file
|
|
|
backend/rexpro_ai/__pycache__/config.cpython-312.pyc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96985e843de09ada988bb8cf59b999e525e2556ba8c5ee0f9c7b0a130f4a9f2e
|
| 3 |
+
size 139163
|
backend/rexpro_ai/__pycache__/config.cpython-313.pyc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e11e8bd4b5935744d0382558454506ed3959fe44645176bac2d32fa6b000b4d0
|
| 3 |
+
size 139358
|
backend/rexpro_ai/__pycache__/constants.cpython-312.pyc
ADDED
|
Binary file (10.2 kB). View file
|
|
|
backend/rexpro_ai/__pycache__/env.cpython-312.pyc
ADDED
|
Binary file (40 kB). View file
|
|
|
backend/rexpro_ai/__pycache__/env.cpython-313.pyc
ADDED
|
Binary file (40.3 kB). View file
|
|
|
backend/rexpro_ai/__pycache__/functions.cpython-312.pyc
ADDED
|
Binary file (15.8 kB). View file
|
|
|
backend/rexpro_ai/__pycache__/main.cpython-312.pyc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2571588e40656d500dc17938859a2a2478f736be7bed0b93d0ab7a74fb7fb71
|
| 3 |
+
size 140217
|
backend/rexpro_ai/__pycache__/main.cpython-313.pyc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7531e8a2a05620c5c77905af88327646f96fdf88b9755feca7ddbcd421a2c140
|
| 3 |
+
size 141926
|
backend/rexpro_ai/__pycache__/tasks.cpython-312.pyc
ADDED
|
Binary file (9.72 kB). View file
|
|
|
backend/rexpro_ai/data/readme.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip install dir for backend files (db, documents, etc.)
|
backend/rexpro_ai/internal/__pycache__/config.cpython-312.pyc
ADDED
|
Binary file (15.7 kB). View file
|
|
|
backend/rexpro_ai/internal/__pycache__/db.cpython-312.pyc
ADDED
|
Binary file (13.9 kB). View file
|
|
|
backend/rexpro_ai/main.py
CHANGED
|
@@ -613,17 +613,16 @@ class SPAStaticFiles(StaticFiles):
|
|
| 613 |
|
| 614 |
if LOG_FORMAT != 'json':
|
| 615 |
banner = rf"""
|
| 616 |
-
|
| 617 |
-
βββββ
|
| 618 |
-
ββ
|
| 619 |
-
ββ
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
|
| 624 |
v{VERSION} - building the best AI user interface.
|
| 625 |
{f'Commit: {REXPRO_BUILD_HASH}' if REXPRO_BUILD_HASH != 'dev-build' else ''}
|
| 626 |
-
https://github.com/
|
| 627 |
"""
|
| 628 |
try:
|
| 629 |
print(banner)
|
|
|
|
| 613 |
|
| 614 |
if LOG_FORMAT != 'json':
|
| 615 |
banner = rf"""
|
| 616 |
+
βββββββ βββββββββββ ββββββββββ βββββββ βββββββ ββββββ βββ
|
| 617 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββ
|
| 618 |
+
ββββββββββββββ ββββββ βββββββββββββββββββ βββ ββββββ βββββββββββ
|
| 619 |
+
ββββββββββββββ ββββββ βββββββ βββββββββββ βββ ββββββ βββββββββββ
|
| 620 |
+
βββ βββββββββββββββ ββββββ βββ ββββββββββββ βββ ββββββ
|
| 621 |
+
βββ ββββββββββββββ ββββββ βββ βββ βββββββ βββ ββββββ
|
|
|
|
| 622 |
|
| 623 |
v{VERSION} - building the best AI user interface.
|
| 624 |
{f'Commit: {REXPRO_BUILD_HASH}' if REXPRO_BUILD_HASH != 'dev-build' else ''}
|
| 625 |
+
https://github.com/dev-rexpro/rexpro-ai
|
| 626 |
"""
|
| 627 |
try:
|
| 628 |
print(banner)
|
backend/rexpro_ai/migrations/__pycache__/env.cpython-312.pyc
ADDED
|
Binary file (4.79 kB). View file
|
|
|
backend/rexpro_ai/migrations/__pycache__/util.cpython-312.pyc
ADDED
|
Binary file (960 Bytes). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/018012973d35_add_indexes.cpython-312.pyc
ADDED
|
Binary file (3.07 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/1af9b942657b_migrate_tags.cpython-312.pyc
ADDED
|
Binary file (7.13 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/242a2047eae0_update_chat_table.cpython-312.pyc
ADDED
|
Binary file (5.08 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/2f1211949ecc_update_message_and_channel_member_table.cpython-312.pyc
ADDED
|
Binary file (5.14 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/374d2f66af06_add_prompt_history_table.cpython-312.pyc
ADDED
|
Binary file (12.7 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/3781e22d8b01_update_message_table.cpython-312.pyc
ADDED
|
Binary file (3.27 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/37f288994c47_add_group_member_table.cpython-312.pyc
ADDED
|
Binary file (6.93 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/38d63c18f30f_add_oauth_session_table.cpython-312.pyc
ADDED
|
Binary file (3.21 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/3ab32c4b8f59_update_tags.cpython-312.pyc
ADDED
|
Binary file (3.61 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/3af16a1c9fb6_update_user_table.cpython-312.pyc
ADDED
|
Binary file (2.38 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/3c9b0ca343fd_add_knowledge_directory_table.cpython-312.pyc
ADDED
|
Binary file (4.25 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/3e0e00844bb0_add_knowledge_file_table.cpython-312.pyc
ADDED
|
Binary file (8.04 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/461111b60977_add_missing_primary_keys_to_legacy_.cpython-312.pyc
ADDED
|
Binary file (3.07 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/4ace53fd72c8_update_folder_table_datetime.cpython-312.pyc
ADDED
|
Binary file (3.05 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/4de81c2a3af1_add_pinned_note_table.cpython-312.pyc
ADDED
|
Binary file (5.2 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/56359461a091_add_calendar_tables.cpython-312.pyc
ADDED
|
Binary file (7.3 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/57c599a3cb57_add_channel_table.cpython-312.pyc
ADDED
|
Binary file (3.24 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/6283dc0e4d8d_add_channel_file_table.cpython-312.pyc
ADDED
|
Binary file (2.76 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/6a39f3d8e55c_add_knowledge_table.cpython-312.pyc
ADDED
|
Binary file (4.03 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/7826ab40b532_update_file_table.cpython-312.pyc
ADDED
|
Binary file (1.36 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/7e5b5dc7342b_init.cpython-312.pyc
ADDED
|
Binary file (10.8 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/81cc2ce44d79_update_channel_file_and_knowledge_table.cpython-312.pyc
ADDED
|
Binary file (2.78 kB). View file
|
|
|
backend/rexpro_ai/migrations/versions/__pycache__/8452d01d26d7_add_chat_message_table.cpython-312.pyc
ADDED
|
Binary file (11.3 kB). View file
|
|
|