Skip to content

[pull] main from swirlai:main #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 44 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
6542af0
update version info on develop
erikspears Feb 12, 2025
5661345
Merge pull request #1522 from swirlai/ds-3661-comm
erikspears Feb 12, 2025
3f0b7f4
Update the db.sqlite3.dist file
erikspears Feb 12, 2025
bb59390
Merge pull request #1523 from swirlai/db_dist/autoupdate
swirlbuildservices Feb 12, 2025
415794e
update to views to expose the SWIRL verion to the UI code
erikspears Feb 19, 2025
6c5cef9
Merge pull request #1528 from swirlai/ds-3718-comm
erikspears Feb 20, 2025
a8fae0f
Update the db.sqlite3.dist file
erikspears Feb 20, 2025
4af2b6f
Merge pull request #1529 from swirlai/db_dist/autoupdate
swirlbuildservices Feb 20, 2025
460a73c
update Dockerfile and GitHub workflows to use Python 3.12.9 images
erikspears Feb 21, 2025
2143636
Merge pull request #1530 from swirlai/ds-3651-comm
erikspears Feb 21, 2025
0ee53a6
Update the db.sqlite3.dist file
erikspears Feb 21, 2025
aafee77
Merge pull request #1531 from swirlai/db_dist/autoupdate
swirlbuildservices Feb 21, 2025
c7030a6
update pinecone package after sudden deprecation, on develop
erikspears Feb 21, 2025
19a70b5
Merge pull request #1532 from swirlai/ds-3737-comm
erikspears Feb 21, 2025
e76beba
Update the db.sqlite3.dist file
erikspears Feb 21, 2025
2fb566e
Merge pull request #1533 from swirlai/db_dist/autoupdate
swirlbuildservices Feb 21, 2025
132e2b1
remove revoked Google API key from defualt SearchProvider configs; up…
erikspears Feb 24, 2025
6f76487
Merge pull request #1535 from swirlai/ds-3748-comm
erikspears Feb 24, 2025
48efe91
Update the db.sqlite3.dist file
erikspears Feb 24, 2025
7748506
Merge pull request #1537 from swirlai/db_dist/autoupdate
swirlbuildservices Feb 24, 2025
df88fc6
Update the db.sqlite3.dist file
swirlbuildservices Mar 11, 2025
899822a
Merge pull request #1542 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 11, 2025
e9efd3b
Update the db.sqlite3.dist file
swirlbuildservices Mar 11, 2025
9f36335
Merge pull request #1543 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 11, 2025
3ad1bc8
Update the db.sqlite3.dist file
swirlbuildservices Mar 13, 2025
5f9124c
Merge pull request #1546 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 13, 2025
3fc349a
Update the db.sqlite3.dist file
swirlbuildservices Mar 14, 2025
a822ac2
Merge pull request #1547 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 14, 2025
7d9a076
Update the db.sqlite3.dist file
swirlbuildservices Mar 14, 2025
ab23d6c
Merge pull request #1548 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 14, 2025
0ac6718
update Docs link on Manage SWIRL page
erikspears Mar 17, 2025
a742581
Merge pull request #1550 from swirlai/ds-3796-comm
erikspears Mar 17, 2025
076734f
Update the db.sqlite3.dist file
erikspears Mar 17, 2025
9100edf
Merge pull request #1551 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 17, 2025
71ed2a9
Update the db.sqlite3.dist file
swirlbuildservices Mar 17, 2025
35b80cc
Merge pull request #1552 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 17, 2025
25b6d79
release 4.1.0 to prerelease branch including pip freeze version of re…
erikspears Mar 19, 2025
f60dc0d
Update the db.sqlite3.dist file
erikspears Mar 19, 2025
40f385f
Merge pull request #1554 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 19, 2025
f6dc29e
Merge branch 'main' into main_prerelease_4_1_0
erikspears Mar 20, 2025
69accf4
reset qa_suite.yml temporary changes
erikspears Mar 20, 2025
ca707ea
Merge pull request #1553 from swirlai/main_prerelease_4_1_0
erikspears Mar 20, 2025
41d9890
Update the db.sqlite3.dist file
erikspears Mar 20, 2025
aa20965
Merge pull request #1556 from swirlai/db_dist/autoupdate
swirlbuildservices Mar 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/db-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.8'
python-version: '3.12.9'
cache: 'pip'
- name: Install Swirl (with a timeout)
run: ./install.sh
Expand Down
33 changes: 32 additions & 1 deletion .github/workflows/qa-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.8'
python-version: '3.12.9'
cache: 'pip'
- name: Install Swirl
run: ./install.sh
Expand All @@ -46,6 +46,37 @@ jobs:
python swirl.py start
env:
ALLOWED_HOSTS: localhost,host.docker.internal
- name: PATCH the Web PSE Config
env:
JSON: ${{ secrets.QA_PSE_WEB }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/1/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
sleep 15
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: PATCH the LinkedIn PSE Config
env:
JSON: ${{ secrets.QA_PSE_LINKEDIN }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/3/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: PATCH the SWIRL Docs PSE Config
env:
JSON: ${{ secrets.QA_PSE_DOCS }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/4/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: Decode BigQuery token and create JSON file
run: |
echo "$BIGQUERY_TOKEN_BASE64" | base64 --decode > "${{ github.workspace }}/token.json"
Expand Down
37 changes: 34 additions & 3 deletions .github/workflows/test-build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.8'
python-version: '3.12.9'
cache: 'pip'
- name: Install Swirl
run: ./install.sh
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.8'
python-version: '3.12.9'
cache: 'pip'
- name: Install Swirl (with a timeout)
run: ./install.sh
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.8'
python-version: '3.12.9'
cache: 'pip'
- name: Install Swirl
run: ./install.sh
Expand All @@ -143,6 +143,37 @@ jobs:
python swirl.py start
env:
ALLOWED_HOSTS: localhost,host.docker.internal
- name: PATCH the Web PSE Config
env:
JSON: ${{ secrets.QA_PSE_WEB }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/1/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
sleep 15
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: PATCH the LinkedIn PSE Config
env:
JSON: ${{ secrets.QA_PSE_LINKEDIN }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/3/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: PATCH the SWIRL Docs PSE Config
env:
JSON: ${{ secrets.QA_PSE_DOCS }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/4/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: Decode BigQuery token and create JSON file
run: |
echo "$BIGQUERY_TOKEN_BASE64" | base64 --decode > "${{ github.workspace }}/token.json"
Expand Down
33 changes: 32 additions & 1 deletion .github/workflows/testing-wip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.8'
python-version: '3.12.9'
cache: 'pip'
- name: Install Swirl
run: ./install.sh
Expand All @@ -59,6 +59,37 @@ jobs:
python swirl.py start
env:
ALLOWED_HOSTS: localhost,host.docker.internal
- name: PATCH the Web PSE Config
env:
JSON: ${{ secrets.QA_PSE_WEB }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/1/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
sleep 15
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: PATCH the LinkedIn PSE Config
env:
JSON: ${{ secrets.QA_PSE_LINKEDIN }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/3/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: PATCH the SWIRL Docs PSE Config
env:
JSON: ${{ secrets.QA_PSE_DOCS }}
API_ENDPOINT: http://localhost:8000/swirl/searchproviders/4/
PASSWORD: ${{ secrets.QA_ADMIN_PW }}
run: |
curl -X PATCH "$API_ENDPOINT" \
-u admin:"$PASSWORD" \
-H "Content-Type: application/json" \
-d "$JSON"
- name: Decode BigQuery token and create JSON file
run: |
echo "$BIGQUERY_TOKEN_BASE64" | base64 --decode > "${{ github.workspace }}/token.json"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.8'
python-version: '3.12.9'
cache: 'pip'
- name: Install Swirl
run: ./install.sh
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.8-slim-bookworm
FROM python:3.12.9-slim-bookworm

# Update, upgrade and install packages in a single RUN to reduce layers
RUN apt-get update && apt-get install -y \
Expand Down
20 changes: 10 additions & 10 deletions SearchProviders/google.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[
{
"name": "Google Web - pse.google.com",
"active": true,
"default": true,
"active": false,
"default": false,
"connector": "RequestsGet",
"url": "https://www.googleapis.com/customsearch/v1",
"query_template": "{url}?cx={cx}&key={key}&q={query_string}",
Expand Down Expand Up @@ -33,15 +33,15 @@
"query_processors": [
"AdaptiveQueryProcessor"
],
"query_mappings": "cx=7d473806dcdde5bc6,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"query_mappings": "cx=<your-Google-PSE-code>,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"result_processors": [
"MappingResultProcessor",
"DateFinderResultProcessor",
"CosineRelevancyResultProcessor"
],
"response_mappings": "FOUND=searchInformation.totalResults,RETRIEVED=queries.request[0].count,RESULTS=items",
"result_mappings": "url=link,body=snippet,author=displayLink,cacheId,pagemap.metatags[*].['og:type'],pagemap.metatags[*].['og:site_name'],pagemap.metatags[*].['og:description'],NO_PAYLOAD",
"credentials": "key=AIzaSyDvVeE-L6nCC9u-TTGuhggvSmzhtiTHJsA",
"credentials": "key=<your-Google-API-key>",
"tags": [
"Web", "WWW", "Google"
]
Expand Down Expand Up @@ -87,7 +87,7 @@
"query_processors": [
"AdaptiveQueryProcessor"
],
"query_mappings": "cx=333906f8f74144c5c,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"query_mappings": "cx=<your-Google-PSE-code>,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"result_grouping_field": "",
"result_processors": [
"MappingResultProcessor",
Expand All @@ -98,7 +98,7 @@
"response_mappings": "FOUND=searchInformation.totalResults,RETRIEVED=queries.request[0].count,RESULTS=items",
"result_mappings": "title= htmlTitle,url=link,body=snippet,cacheId,pagemap.metatags[*].['og:type'],pagemap.metatags[*].locale,pagemap.metatags[*].['og:image'],NO_PAYLOAD",
"results_per_query": 10,
"credentials": "key=AIzaSyDvVeE-L6nCC9u-TTGuhggvSmzhtiTHJsA",
"credentials": "key=<your-Google-API-key>",
"eval_credentials": "",
"tags": [
"LinkedIn",
Expand All @@ -107,8 +107,8 @@
},
{
"name": "Swirl Documentation - docs.swirlaiconnect.com",
"active": true,
"default": true,
"active": false,
"default": false,
"connector": "RequestsGet",
"url": "https://www.googleapis.com/customsearch/v1",
"query_template": "{url}?cx={cx}&key={key}&q={query_string}",
Expand Down Expand Up @@ -139,7 +139,7 @@
"query_processors": [
"AdaptiveQueryProcessor"
],
"query_mappings": "cx=f047885d9696f447c,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"query_mappings": "cx=<your-Google-PSE-code>,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"result_grouping_field": "",
"result_processors": [
"MappingResultProcessor",
Expand All @@ -149,7 +149,7 @@
"response_mappings": "FOUND=searchInformation.totalResults,RETRIEVED=queries.request[0].count,RESULTS=items",
"result_mappings": "title=title,url=link,body=snippet,author=displayLink,cacheId,pagemap.metatags[*].['og:type'],pagemap.metatags[*].['og:site_name'],pagemap.metatags[*].['og:description'],NO_PAYLOAD",
"results_per_query": 10,
"credentials": "key=AIzaSyDvVeE-L6nCC9u-TTGuhggvSmzhtiTHJsA",
"credentials": "key=<your-Google-API-key>",
"eval_credentials": "",
"tags": [
"Swirl",
Expand Down
20 changes: 10 additions & 10 deletions SearchProviders/preloaded.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[
{
"name": "Google Web - pse.google.com",
"active": true,
"default": true,
"active": false,
"default": false,
"connector": "RequestsGet",
"url": "https://www.googleapis.com/customsearch/v1",
"query_template": "{url}?cx={cx}&key={key}&q={query_string}",
Expand Down Expand Up @@ -33,7 +33,7 @@
"query_processors": [
"AdaptiveQueryProcessor"
],
"query_mappings": "cx=7d473806dcdde5bc6,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"query_mappings": "cx=<your-Google-PSE-code>,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"result_processors": [
"MappingResultProcessor",
"DateFinderResultProcessor",
Expand All @@ -42,7 +42,7 @@
"response_mappings": "FOUND=searchInformation.totalResults,RETRIEVED=queries.request[0].count,RESULTS=items",
"result_mappings": "url=link,body=snippet,author=displayLink,cacheId,pagemap.metatags[*].['og:type'],pagemap.metatags[*].['og:site_name'],pagemap.metatags[*].['og:description'],NO_PAYLOAD",
"results_per_query": 10,
"credentials": "key=AIzaSyDvVeE-L6nCC9u-TTGuhggvSmzhtiTHJsA",
"credentials": "key=<your-Google-API-key>",
"tags": [
"Google",
"Web",
Expand Down Expand Up @@ -90,7 +90,7 @@
"query_processors": [
"AdaptiveQueryProcessor"
],
"query_mappings": "cx=333906f8f74144c5c,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"query_mappings": "cx=<your-Google-PSE-code>,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"result_grouping_field": "",
"result_processors": [
"MappingResultProcessor",
Expand All @@ -101,7 +101,7 @@
"response_mappings": "FOUND=searchInformation.totalResults,RETRIEVED=queries.request[0].count,RESULTS=items",
"result_mappings": "title= htmlTitle,url=link,body=snippet,cacheId,pagemap.metatags[*].['og:type'],pagemap.metatags[*].locale,pagemap.metatags[*].['og:image'],NO_PAYLOAD",
"results_per_query": 10,
"credentials": "key=AIzaSyDvVeE-L6nCC9u-TTGuhggvSmzhtiTHJsA",
"credentials": "key=<your-Google-API-key>",
"eval_credentials": "",
"tags": [
"LinkedIn",
Expand All @@ -110,8 +110,8 @@
},
{
"name": "Swirl Documentation - docs.swirlaiconnect.com",
"active": true,
"default": true,
"active": false,
"default": false,
"connector": "RequestsGet",
"url": "https://www.googleapis.com/customsearch/v1",
"query_template": "{url}?cx={cx}&key={key}&q={query_string}",
Expand Down Expand Up @@ -142,7 +142,7 @@
"query_processors": [
"AdaptiveQueryProcessor"
],
"query_mappings": "cx=f047885d9696f447c,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"query_mappings": "cx=<your-Google-PSE-code>,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-",
"result_grouping_field": "",
"result_processors": [
"MappingResultProcessor",
Expand All @@ -152,7 +152,7 @@
"response_mappings": "FOUND=searchInformation.totalResults,RETRIEVED=queries.request[0].count,RESULTS=items",
"result_mappings": "title=title,url=link,body=snippet,author=displayLink,cacheId,pagemap.metatags[*].['og:type'],pagemap.metatags[*].['og:site_name'],pagemap.metatags[*].['og:description'],NO_PAYLOAD",
"results_per_query": 10,
"credentials": "key=AIzaSyDvVeE-L6nCC9u-TTGuhggvSmzhtiTHJsA",
"credentials": "key=<your-Google-API-key>",
"eval_credentials": "",
"tags": [
"Swirl",
Expand Down
Binary file modified db.sqlite3.dist
Binary file not shown.
Loading
Loading