EduPLEx_API
InfoPrototypeAll docs
Recommendation, reporting & analytics
Recommendation, reporting & analytics
  • Experiments report
    • Key concepts
    • Data sources
    • First demonstrator: ESCO ontologies and semantic matching
    • Software design
      • Endpoints Sbert_eduplex
      • Setup Sbert_eduplex
    • AI Applications
    • Conclusions
    • Recommendation
    • Bibliography
  • Recommendation Engine
  • Reporting and predictive analytics
  • LRS User Journey Visualizer
  • AI Tutor - RAG system
    • LLM-augmented Retrieval and Ranking for Course Recommendations
    • Retrieval of course candidates when searching via title.
    • Answer Generation Evaluation
    • Chunk Size and Retrieval Evaluation
    • Chunking Techniques – Splitters
    • Golden Case CLAPNQ
    • Comparative Retrieval Performance: Modules vs Golden Case
    • LLM-based Evaluator for Context Relevance
    • Retrieval Performance Indexing pdf vs xapi, and Keywords vs Questions
Powered by GitBook
On this page
  • Setup Sbert_eduplex
  • Directory structure:
  • How to develop sbert with docker
  • technical notes
Edit on GitLab
  1. Experiments report
  2. Software design

Setup Sbert_eduplex

PreviousEndpoints Sbert_eduplexNextAI Applications

Last updated 1 year ago

Setup Sbert_eduplex

Directory structure:

  • The file called server.py is the main file to run the application

  • .env should be used to write down the initial parameters of the application. Logs should be automatically created.

  • requirements.txt contains the requirements

How to develop sbert with docker

  • Run docker-compose-socket-sbert.yml (change the image version to force a rebuild)

  • This will make the service available in without SSL

How to build sbert service for production

  • Change the image version in docker-compose-sbert.yml (optionally use dockerfile docker/child/Dockerfile for a quick build without updating pip dependencies or docker/Dockerfile for a slower build from empty image)

  • Run docker-compose up will create a new version tagged image

  • Login to AWS ECR aws ecr-public get-login-password --region us-east-1 --profile prdedupl | docker login --username AWS --password-stdin public.ecr.aws/eduplex_api (change prdedupl with the name of your aws cli or default if you do not have many profiles)

  • Push the image docker push <image_tag> (image_tag from yml file)

technical notes

  • in pycharm there may be problems with dockers permissions, after locally installing Dockers and pycharm plugin, the following may be needed:

sudo chmod a+rwx /var/run/docker.sock
sudo chmod a+rwx /var/run/docker.pid
localhost:5000