Skip to content

FardinA143/ok2buy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ok2buy - swissAI

Challenge: Don't walk into the trap.

Problem

Imagine purchasing a gadget online, only to discover it is illegal in Switzerland. For example, Swiss law only permits class 1 laser pointers; all others are banned from import, sale, or use.

This hackathon project aims to create a smart, AI-powered end-to-end tool that instantly checks the legality of e-commerce products, ensuring that both travelers and online shoppers remain safe and compliant.

Objective

Given a product identification number from a major e-commerce platform (e.g., Temu or Shein), the system determines whether the product is likely prohibited for sale or import into Switzerland. The classification relies on publicly available product details and Swiss legal guidelines, without violating the terms of service of the platforms.

Evaluation criteria: ease of use and classification performance.


Our Conceptual Solution

Our solution uses a product ID from an e-commerce platform to fetch publicly available product data. This data is combined with legal information from the Swiss Federal Customs Administration. An AI model processes this input, allowing a large language model (LLM) to classify whether the product is legal or illegal in Switzerland.

For more details, see our "About" section on the deployed web app here.

How to Run for Development

Prerequisites

Setup

Install frontend dependencies:

npm install

install the required python packages:

pip install -r requirements.txt

In case you need to develop the vectorDB_approach, you need this additional package:

pip install sentence_transformers
pip install chromadb

to run the backend server, go to /backend and run:

uvicorn main:app --reload --host

to run the frontend server, go to /frontend and run:

npm start

About

a proof of concept for the Federal Office of Customs and Border Security (FOCBS) to classify products based on their legality under Swiss Law using AI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors