You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OUT_ADMIN_ENGLISH_PROMPT_AI=$(./occ context_chat:prompt admin "Which factors are taken into account for the Ethical AI Rating?")
917
923
OUT_ADMIN_GERMAN_PROMPT_AI=$(./occ context_chat:prompt admin "Welche Faktoren beeinflussen das Ethical AI Rating?")
918
924
OUT_ADMIN_SEARCH_AI=$(./occ context_chat:search admin "Welche Faktoren beeinflussen das Ethical AI Rating?")
919
-
925
+
920
926
# Check for user test: Shouldn't be there
921
927
OUT_TEST_ENGLISH_PROMPT_AI=$(./occ context_chat:prompt test "Which factors are taken into account for the Ethical AI Rating?")
922
928
OUT_TEST_GERMAN_PROMPT_AI=$(./occ context_chat:prompt test "Welche Faktoren beeinflussen das Ethical AI Rating?")
923
929
OUT_TEST_SEARCH_AI=$(./occ context_chat:search test "Welche Faktoren beeinflussen das Ethical AI Rating?")
924
-
930
+
925
931
# Check for user test: Shouldn't be there, because it was not shared yet
926
932
OUT_TEST_PROMPT_JOBS=$(./occ context_chat:prompt test "How do I set my TimedJob to be time insensitive?")
927
933
OUT_TEST_SEARCH_JOBS=$(./occ context_chat:search test "How do I set my TimedJob to be time insensitive?")
928
-
934
+
929
935
echo "OUT_ADMIN_ENGLISH_PROMPT_AI"
930
936
echo "$OUT_ADMIN_ENGLISH_PROMPT_AI"
931
937
echo "OUT_ADMIN_GERMAN_PROMPT_AI"
@@ -942,7 +948,7 @@ jobs:
942
948
echo "$OUT_TEST_PROMPT_JOBS"
943
949
echo "OUT_TEST_SEARCH_JOBS"
944
950
echo "$OUT_TEST_SEARCH_JOBS"
945
-
951
+
946
952
echo "$OUT_ADMIN_ENGLISH_PROMPT_AI" | grep -q "If all of these points are met, we give a Green label." && echo '✅ Admin does see AI overview' || exit 1
947
953
echo "$OUT_ADMIN_GERMAN_PROMPT_AI" | grep -q "If all of these points are met, we give a Green label." && echo '✅ Admin does see AI overview, after german question' || exit 1
948
954
echo "$OUT_ADMIN_SEARCH_AI" | grep -q "overview.rst" && echo '✅ Admin does see AI overview, when using search' || exit 1
@@ -960,7 +966,7 @@ jobs:
960
966
- name: Remove some files using os
961
967
if: ${{ matrix.file-deletion-method == 'os'}}
962
968
run: |
963
-
cd data/admin/files
969
+
cd data/admin/files
964
970
rm -rf ./admin_manual # this + files:scan sadly doesn't work, currently see https://github.com/nextcloud/context_chat/issues/153
965
971
cd ../../..
966
972
./occ files:scan admin # We run the scan again to check if the files are successfully removed from the vectordb
@@ -975,7 +981,7 @@ jobs:
975
981
976
982
- name: Run indexer cron
977
983
run: |
978
-
for i in {1..100}; do
984
+
for i in {1..100}; do
979
985
php cron.php & # Starting with stable31 we can use -v here for better visibility
OUT_ADMIN_ENGLISH_PROMPT_AI=$(./occ context_chat:prompt admin "Which factors are taken into account for the Ethical AI Rating?")
993
999
OUT_ADMIN_GERMAN_PROMPT_AI=$(./occ context_chat:prompt admin "Welche Faktoren beeinflussen das Ethical AI Rating?")
994
1000
OUT_ADMIN_SEARCH_AI=$(./occ context_chat:search admin "Welche Faktoren beeinflussen das Ethical AI Rating?")
995
-
1001
+
996
1002
# Check for user test: Shouldn't be there
997
1003
OUT_TEST_ENGLISH_PROMPT_AI=$(./occ context_chat:prompt test "Which factors are taken into account for the Ethical AI Rating?")
998
1004
OUT_TEST_GERMAN_PROMPT_AI=$(./occ context_chat:prompt test "Welche Faktoren beeinflussen das Ethical AI Rating?")
999
1005
OUT_TEST_SEARCH_AI=$(./occ context_chat:search test "Welche Faktoren beeinflussen das Ethical AI Rating?")
1000
-
1006
+
1001
1007
# Check for user test: Should be there, because it was shared
1002
1008
OUT_TEST_PROMPT_JOBS=$(./occ context_chat:prompt test "How do I set my TimedJob to be time insensitive?")
1003
1009
OUT_TEST_SEARCH_JOBS=$(./occ context_chat:search test "How do I set my TimedJob to be time insensitive?")
1004
-
1010
+
1005
1011
echo "OUT_ADMIN_ENGLISH_PROMPT_AI"
1006
1012
echo "$OUT_ADMIN_ENGLISH_PROMPT_AI"
1007
1013
echo "OUT_ADMIN_GERMAN_PROMPT_AI"
@@ -1018,7 +1024,7 @@ jobs:
1018
1024
echo "$OUT_TEST_PROMPT_JOBS"
1019
1025
echo "OUT_TEST_SEARCH_JOBS"
1020
1026
echo "$OUT_TEST_SEARCH_JOBS"
1021
-
1027
+
1022
1028
echo "$OUT_ADMIN_ENGLISH_PROMPT_AI" | grep -q -v "If all of these points are met, we give a Green label." && echo '✅ Admin does not see AI overview anymore' || exit 1
1023
1029
echo "$OUT_ADMIN_GERMAN_PROMPT_AI" | grep -q -v "If all of these points are met, we give a Green label." && echo '✅ Admin does not see AI overview anymore, after german question' || exit 1
1024
1030
echo "$OUT_ADMIN_SEARCH_AI" | grep -q -v "overview.rst" && echo '✅ Admin does not see AI overview anymore, when using search' || exit 1
@@ -1059,4 +1065,4 @@ jobs:
1059
1065
1060
1066
steps:
1061
1067
- name: Summary status
1062
-
run: if ${{ needs.scan-test.rest != 'success' && needs.cron-test.result != 'success' && needs.listener-test.result != 'success' }}; then exit 1; fi
1068
+
run: if ${{ needs.scan-test.rest != 'success' && needs.cron-test.result != 'success' && needs.listener-test.result != 'success' }}; then exit 1; fi
0 commit comments