diff --git a/src/backend/tools/minimap.py b/src/backend/tools/minimap.py index afd912e2fa..fac41b42b9 100644 --- a/src/backend/tools/minimap.py +++ b/src/backend/tools/minimap.py @@ -95,7 +95,10 @@ def run(self, query: str) -> str: # Rename id to doc_id for result in results: - result['doc_id'] = result.pop('id') + try: + result['doc_id'] = result.get('id') + except Exception as ex: + ... return results diff --git a/src/interfaces/coral_web/Dockerfile b/src/interfaces/coral_web/Dockerfile index ed1df92b2c..6236d852a8 100644 --- a/src/interfaces/coral_web/Dockerfile +++ b/src/interfaces/coral_web/Dockerfile @@ -23,7 +23,7 @@ COPY .env.production . # Build the Next.js app ARG NODE_ENV=development -RUN if [ "$NODE_ENV" = "production" ]; then npm run build; else npm run build:dev; fi +RUN if [ "$NODE_ENV" = "production" ]; then npm run build; fi # Next.js collects completely anonymous telemetry data about general usage. Learn more here: https://nextjs.org/telemetry