From e79e693bea75c9c3bc252248e6cf46ad2e28295a Mon Sep 17 00:00:00 2001 From: Jamie Land Date: Fri, 25 Oct 2024 20:29:59 -0400 Subject: [PATCH] Updating mongodb to point to newer indexes --- src/main/resources/application.properties | 10 +++------- src/main/resources/db/changeLog.yml | 17 ++++------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 0c244b7..bf34f30 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -42,9 +42,6 @@ openai.default.temp=0.8 phoenix.host=localhost phoenix.port=6006 -# This allows for connecting to LLMs that have self-signed certificates -quarkus.rest-client.extensions-api.verify-host=false - quarkus.http.cors=true quarkus.http.cors.origins=* # quarkus.http.cors.headers=Content-Type,Authorization @@ -52,8 +49,7 @@ quarkus.http.cors.origins=* # Auth Server # UnComment this out in order to disable security locally -# authorization.enabled=${AUTH_ENABLED:false} -disable.authorization=true +disable.authorization=${DISABLE_AUTHORIZATION:true} quarkus.oidc.provider=google quarkus.oidc.client-id=${GOOGLE_CLIENT_ID:REPLACE_ME} quarkus.oidc.credentials.secret=${GOOGLE_CLIENT_SECRET:REPLACE_ME} @@ -81,5 +77,5 @@ quarkus.liquibase-mongodb.change-log=db/changeLog.yml quarkus.liquibase-mongodb.enabled=true quarkus.liquibase-mongodb.migrate-at-start=true -# Set log level to debug -quarkus.log.level=DEBUG +# Override Log Level with Environment Variable QUARKUS_LOG_LEVEL +quarkus.log.level=INFO diff --git a/src/main/resources/db/changeLog.yml b/src/main/resources/db/changeLog.yml index 53abbbf..acb8d3f 100644 --- a/src/main/resources/db/changeLog.yml +++ b/src/main/resources/db/changeLog.yml @@ -5,9 +5,6 @@ databaseChangeLog: - property: name: rc.rhel.id value: "new ObjectId('66ed89833baf3b4ab30da4e2')" - - property: - name: rc.rho2025.id - value: "new ObjectId('66ed89866a4bb5288a49c7bf')" - property: name: rc.ansible.id value: "new ObjectId('66ed8cb7bfed0c6c6d324dc6')" @@ -31,19 +28,16 @@ databaseChangeLog: collectionName: retriever_connection - insertOne: collectionName: retriever_connection - document: "{_id: ${rc.ocp.id}, index: 'Openshift_container_platform_en_US_4_15', name: 'ocp_4_15_default' , description: 'Openshift Container Platform Default Connection'}" - - insertOne: - collectionName: retriever_connection - document: "{_id: ${rc.rhel.id}, index: 'Red_hat_enterprise_linux_en_US_7', name: 'rhel_7_default' , description: 'Red Hat Enterprise Linux 7 Default Connection'}" + document: "{_id: ${rc.ocp.id}, index: 'Openshift_container_platform_en_US_4_17', name: 'ocp_4_17_default' , description: 'Openshift Container Platform Default Connection'}" - insertOne: collectionName: retriever_connection - document: "{_id: ${rc.rho2025.id}, index: 'Red_hat_one_2025_faqs', name: 'rho_2025_faqs_default' , description: 'Red Hat Enterprise Linux 2025 Default FAQs Connection'}" + document: "{_id: ${rc.rhel.id}, index: 'Red_hat_enterprise_linux_en_US_9', name: 'rhel_9_default' , description: 'Red Hat Enterprise Linux 9 Default Connection'}" - insertOne: collectionName: retriever_connection - document: "{_id: ${rc.ansible.id}, index: 'Red_hat_ansible_automation_platform_en_US_2_4', name: 'ansible_2_4_default' , description: 'Ansible Automation Platform 2.4 Default Connection'}" + document: "{_id: ${rc.ansible.id}, index: 'Red_hat_ansible_automation_platform_en_US_2_5', name: 'ansible_2_5_default' , description: 'Ansible Automation Platform 2.5 Default Connection'}" - insertOne: collectionName: retriever_connection - document: "{_id: ${rc.rhoai.id}, index: 'Red_hat_openshift_ai_self_managed_en_US_2_10', name: 'rhoia_2_10_default' , description: 'Red Hat Openshift AI Self Managed 2.10 Default Connection'}" + document: "{_id: ${rc.rhoai.id}, index: 'Red_hat_openshift_ai_self_managed_en_US_2_14', name: 'rhoia_2_14_default' , description: 'Red Hat Openshift AI Self Managed 2.14 Default Connection'}" # Create LLM Connection collection - createCollection: @@ -62,9 +56,6 @@ databaseChangeLog: - insertOne: collectionName: assistant document: "{_id: new ObjectId('66edae19c9a1bd1c8905b865'), retrieverConnectionId: ${rc.rhel.id}, llmConnectionId: ${llm.default.id}, name: 'default_rhel' , displayName: 'Default Red Hat Enterprise Linux Assistant'}" - - insertOne: - collectionName: assistant - document: "{_id: new ObjectId('66edae1cb297852a63013f29'), retrieverConnectionId: ${rc.rho2025.id}, llmConnectionId: ${llm.default.id}, name: 'default_rho_2025_faq' , displayName: 'Default Red Hat One 2025 FAQs Assistant'}" - insertOne: collectionName: assistant document: "{_id: new ObjectId('66edae2255ce9f7058f2c472'), retrieverConnectionId: ${rc.ansible.id}, llmConnectionId: ${llm.default.id}, name: 'default_ansible' , displayName: 'Default Ansible Automation Platform Assistant'}"