Skip to content

Commit

Permalink
Merge pull request #1543 from vespa-engine/thomasht86/unique-query-id
Browse files Browse the repository at this point in the history
unique ids every time
  • Loading branch information
ldalves authored Oct 25, 2024
2 parents c54b480 + 75b5ba5 commit 819c01e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visual-retrieval-colpali/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import asyncio
import base64
import hashlib
import io
import os
import time
from concurrent.futures import ThreadPoolExecutor
from functools import partial
from pathlib import Path
import uuid

import google.generativeai as genai
from fasthtml.common import *
Expand Down Expand Up @@ -112,7 +112,7 @@ async def keepalive():


def generate_query_id(query):
return hashlib.md5(query.encode("utf-8")).hexdigest()
return uuid.uuid4().hex


@rt("/static/{filepath:path}")
Expand Down

0 comments on commit 819c01e

Please sign in to comment.