-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to newer smui + new SMUI features (#168)
* it's 2024, it's time to ditch docker-compose * now showing rules usage Signed-off-by: Eric Pugh <[email protected]>
- Loading branch information
Showing
12 changed files
with
36 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ curl http://localhost:8983/solr/ecommerce/config -H 'Content-type:application/js | |
|
||
Create a user with the email `[email protected]` and the password `password`: | ||
```sh | ||
docker-compose run quepid bundle exec thor user:create -a [email protected] "Demo User" password | ||
docker compose run quepid bundle exec thor user:create -a [email protected] "Demo User" password | ||
``` | ||
|
||
For Quepid case, pick `name` for title, and `id` for identifier. Add `thumb:imageUrl` to the list of fields. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from fastapi import FastAPI | ||
from clipL14 import router as router_clip | ||
from minilm import router as router_minilm | ||
from finetuned import router as router_finetuned | ||
#from finetuned import router as router_finetuned | ||
|
||
app = FastAPI() | ||
|
||
app.include_router(router_clip.router, prefix="/clip") | ||
app.include_router(router_minilm.router, prefix="/minilm") | ||
app.include_router(router_finetuned.sbert_router, prefix="/ftbert") | ||
app.include_router(router_finetuned.clip_router, prefix="/ftclip") | ||
#app.include_router(router_finetuned.sbert_router, prefix="/ftbert") | ||
#app.include_router(router_finetuned.clip_router, prefix="/ftclip") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ We use a Docker Compose based environment to manage firing up all the components | |
Open up a terminal window and run: | ||
|
||
```sh | ||
docker-compose up --build | ||
docker compose up --build | ||
``` | ||
|
||
Wait a while, because you'll be downloading and building quite a few images! You may think it's frozen at various points, but go for a walk and come back and it'll be up and running. | ||
|
@@ -139,13 +139,13 @@ We'll start with Quepid and then move on to RRE. | |
First we need to create the database for Quepid: | ||
|
||
```sh | ||
docker-compose run --rm quepid bin/rake db:setup | ||
docker compose run --rm quepid bin/rake db:setup | ||
``` | ||
|
||
We also need to create you an account with Administrator permissions: | ||
|
||
```sh | ||
docker-compose run quepid bundle exec thor user:create -a [email protected] "Chorus Admin" password | ||
docker compose run quepid bundle exec thor user:create -a [email protected] "Chorus Admin" password | ||
``` | ||
|
||
Visit Quepid at http://localhost:3000 and log in with the email and password you just set up. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ do | |
shift | ||
done | ||
|
||
# Function check_prerequisites makes sure that you have curl, jq, docker-compose, and zip installed. See helpers.sh for details. | ||
# Function check_prerequisites makes sure that you have curl, jq, docker, and zip installed. See helpers.sh for details. | ||
check_prerequisites | ||
|
||
services="blacklight solr1 solr2 solr3 keycloak" | ||
|
@@ -91,7 +91,7 @@ if ! $local_deploy; then | |
sed -i.bu 's/keycloak:9080/chorus.dev.o19s.com:9080/g' ./docker-compose.yml | ||
fi | ||
|
||
docker-compose down -t 30 -v | ||
docker compose down -t 30 -v | ||
if $shutdown; then | ||
exit | ||
fi | ||
|
@@ -105,7 +105,7 @@ if $active_search_management; then | |
|
||
fi | ||
|
||
docker-compose up -d --build ${services} | ||
docker compose up -d --build ${services} | ||
|
||
echo -e "${MAJOR}Waiting for Solr cluster to start up and all three nodes to be online.${RESET}" | ||
./solr/wait-for-solr-cluster.sh # Wait for all three Solr nodes to be online | ||
|
@@ -400,15 +400,15 @@ if $offline_lab; then | |
log_major "Setting up Quepid" | ||
./mysql/wait-for-mysql.sh | ||
|
||
docker-compose run --rm quepid bundle exec bin/rake db:setup | ||
docker-compose run quepid bundle exec thor user:create -a [email protected] "Chorus Admin" password | ||
docker compose run --rm quepid bundle exec bin/rake db:setup | ||
docker compose run quepid bundle exec thor user:create -a [email protected] "Chorus Admin" password | ||
log_minor "Setting up Chorus Baseline Relevance case" | ||
if $local_deploy; then | ||
solr_collection_url=http://localhost:8983/solr/ecommerce/select | ||
else | ||
solr_collection_url=http://chorus.dev.o19s.com:8983/solr/ecommerce/select | ||
fi | ||
docker-compose run quepid bundle exec thor case:create "Chorus Baseline Relevance" solr ${solr_collection_url} JSONP "id:id, title:title, thumb:img_500x500, name, brand, product_type" "q=#\$query##&useParams=visible_products,querqy_algo" nDCG@10 [email protected] | ||
docker compose run quepid bundle exec thor case:create "Chorus Baseline Relevance" solr ${solr_collection_url} JSONP "id:id, title:title, thumb:img_500x500, name, brand, product_type" "q=#\$query##&useParams=visible_products,querqy_algo" nDCG@10 [email protected] | ||
|
||
docker cp ./katas/Broad_Query_Set_rated.csv quepid:/srv/app/Broad_Query_Set_rated.csv | ||
docker exec quepid bundle exec thor ratings:import 1 /srv/app/Broad_Query_Set_rated.csv >> /dev/null | ||
|
@@ -424,7 +424,7 @@ fi | |
|
||
if $vector_search; then | ||
log_major "Setting up Embeddings service" | ||
docker-compose up -d --build embeddings | ||
docker compose up -d --build embeddings | ||
./embeddings/wait-for-api.sh | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM querqy/smui:4.0.11 | ||
FROM querqy/smui:4.3.0 | ||
|
||
COPY --chown=smui:smui conf/* conf/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SMUI_GUID,USER_QUERY,FREQUENCY | ||
c4b10dea-1cd5-4361-83c6-d5c72691e343,laptop,6 | ||
c4b10dea-1cd5-4361-83c6-d5c72691e343,notebook,2 | ||
7bc66070-7d88-43d4-8d09-0dd0210c4ba3,laptop,20 |