Add minimum cosine similarity constant and increase it, resize image files after saving and before sending to Jina

This commit is contained in:
csd4ni3l
2025-08-08 23:24:43 +02:00
parent 3f304071e3
commit e2f39aa3c9
4 changed files with 100 additions and 2 deletions

View File

@@ -6,5 +6,6 @@ JINA_HEADERS = {
}
RICKROLL_LINK = "https://www.youtube.com/watch?v=xvFZjo5PgG0"
UPLOAD_DIR = "uploads"
MINIMUM_COSINE_SIMILARITY = 0.75
UPLOAD_DIR = os.path.join(os.getcwd(), UPLOAD_DIR)