Skip to content

InformationRetrieval-Organization/InformationRetrievalSystem

Repository files navigation

Information Retrieval Evaluation

documents

preparation doc

evaluation doc

ground truth sheet

presentation

requirements

  • Python >=3.7
  • Visual Studio Code

Python

unix/mac

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install --upgrade pip

windows

python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
pip install --upgrade pip

environment variables

  • copy and rename the .env.sample file to .env
  • when you want to crawl data, you have to set the API keys

database

docker compose -f docker.compose.yml up -d
prisma db push

optional: pgadmin

Open http://localhost:5050/

  1. Email: [email protected]
  2. Password: root

Click with the right mouse button on Servers and select Register -> Server.

Connection tab requires to type:

  1. Host name/address: host.docker.internal
  2. Port: 5432
  3. Database: informationretrievaldb
  4. Username: postgres
  5. Password: postgres

optional: swagger

Open http://localhost:8000/docs to see the swagger UI

optional: Docker

building

docker build --tag tonylukeregistry.azurecr.io/tonylukeregistry/information-retrieval/api:latest .

running container locally

docker run --detach --publish 3100:3100 tonylukeregistry.azurecr.io/tonylukeregistry/information-retrieval/api:latest

optional: azure deployment

change connection string;

postgresql://<dbuser>:<dbpassword>@<dbservername>.postgres.database.azure.com:<port>/<bdname>?schema=public&sslmode=require