diff --git a/files/graphrag_rerank.py b/files/graphrag_rerank.py index 3a7c395..fd0c2ef 100644 --- a/files/graphrag_rerank.py +++ b/files/graphrag_rerank.py @@ -42,7 +42,7 @@ llm = ChatOCIGenAI( service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com", compartment_id="ocid1.compartment.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", auth_profile="DEFAULT", - model_kwargs={"temperature": 0.1, "top_p": 0.75, "max_tokens": 4000}, + model_kwargs={"temperature": 0, "top_p": 1, "max_tokens": 4000}, ) llm_for_rag = ChatOCIGenAI( @@ -348,89 +348,190 @@ def parse_rfp_requirement(question: str) -> dict: and INCLUDE IT EXPLICITLY in the keywords list. Choose the MOST SPECIFIC applicable item. - - ☁️ OCI SERVICE CATEGORIES (MANDATORY) - - πŸ–₯️ Compute (IaaS) - - compute - - compute instances - - virtual machine - - bare metal - - gpu - - hpc - - confidential computing - - autoscaling - - instance pools - - live migration - - ocvs (vmware) - - arm compute - - πŸ’Ύ Storage - - object storage - - archive storage - - block volume - - boot volume - - file storage - - volume groups - - snapshots - - replication - - 🌐 Networking - - vcn - - load balancer - - network load balancer - - dns - - fastconnect - - drg - - firewall - - waf - - bastion - - vtap - - private endpoint - - πŸ” Security & Identity - - iam - - compartments - - policies - - oci vault - - key management - - certificates - - secrets - - cloud guard - - security zones - - vulnerability scanning - - data safe - - audit - - logging - - shielded instances - - πŸ“¦ Containers & Cloud Native - - oke - - kubernetes - - container registry - - api gateway - - functions - - streaming - - events - - service mesh - - πŸ—„οΈ Databases - - autonomous database - - adw - - atp - - base database - - exadata - - mysql - - nosql - - πŸ“Š Analytics & AI - - analytics cloud - - data science - - data catalog - - big data service - - generative ai - - ai services - + + ServiΓ§os da Oracle Cloud Infrastructure (OCI): + + Compute (IaaS) + β€’ Compute Instances (VM) + β€’ Bare Metal Instances + β€’ Dedicated VM Hosts + β€’ GPU Instances + β€’ Confidential Computing + β€’ Capacity Reservations + β€’ Autoscaling (Instance Pools) + β€’ Live Migration + β€’ Oracle Cloud VMware Solution (OCVS) + β€’ HPC (High Performance Computing) + β€’ Arm-based Compute (Ampere) + + Storage + + Object Storage + β€’ Object Storage + β€’ Object Storage – Archive + β€’ Pre-Authenticated Requests + β€’ Replication + + Block & File + β€’ Block Volume + β€’ Boot Volume + β€’ Volume Groups + β€’ File Storage + β€’ File Storage Snapshots + β€’ Data Transfer Service + + Networking + β€’ Virtual Cloud Network (VCN) + β€’ Subnets + β€’ Internet Gateway + β€’ NAT Gateway + β€’ Service Gateway + β€’ Dynamic Routing Gateway (DRG) + β€’ FastConnect + β€’ Load Balancer (L7 / L4) + β€’ Network Load Balancer + β€’ DNS + β€’ Traffic Management Steering Policies + β€’ IP Address Management (IPAM) + β€’ Network Firewall + β€’ Web Application Firewall (WAF) + β€’ Bastion + β€’ Capture Traffic (VTAP) + β€’ Private Endpoints + + Security, Identity & Compliance + β€’ Identity and Access Management (IAM) + β€’ Compartments + β€’ Policies + β€’ OCI Vault + β€’ OCI Key Management (KMS) + β€’ OCI Certificates + β€’ OCI Secrets + β€’ OCI Bastion + β€’ Cloud Guard + β€’ Security Zones + β€’ Vulnerability Scanning Service + β€’ Data Safe + β€’ Logging + β€’ Audit + β€’ OS Management / OS Management Hub + β€’ Shielded Instances + β€’ Zero Trust Packet Routing + + Databases + + Autonomous + β€’ Autonomous Database (ATP) + β€’ Autonomous Data Warehouse (ADW) + β€’ Autonomous JSON Database + + Databases Gerenciados + β€’ Oracle Database Service + β€’ Oracle Exadata Database Service + β€’ Exadata Cloud@Customer + β€’ Base Database Service + β€’ MySQL Database Service + β€’ MySQL HeatWave + β€’ NoSQL Database Cloud Service + β€’ TimesTen + β€’ PostgreSQL (OCI managed) + β€’ MongoDB API (OCI NoSQL compatibility) + + Analytics & BI + β€’ Oracle Analytics Cloud (OAC) + β€’ OCI Data Catalog + β€’ OCI Data Integration + β€’ OCI Streaming Analytics + β€’ OCI GoldenGate + β€’ OCI Big Data Service (Hadoop/Spark) + β€’ OCI Data Science + β€’ OCI AI Anomaly Detection + β€’ OCI AI Forecasting + + AI & Machine Learning + + Generative AI + β€’ OCI Generative AI + β€’ OCI Generative AI Agents + β€’ OCI Generative AI RAG + β€’ OCI Generative AI Embeddings + β€’ OCI AI Gateway (OpenAI-compatible) + + AI Services + β€’ OCI Vision (OCR, image analysis) + β€’ OCI Speech (STT / TTS) + β€’ OCI Language (NLP) + β€’ OCI Document Understanding + β€’ OCI Anomaly Detection + β€’ OCI Forecasting + β€’ OCI Data Labeling + + Containers & Cloud Native + β€’ OCI Container Engine for Kubernetes (OKE) + β€’ Container Registry (OCIR) + β€’ Service Mesh + β€’ API Gateway + β€’ OCI Functions (FaaS) + β€’ OCI Streaming (Kafka-compatible) + β€’ OCI Queue + β€’ OCI Events + β€’ OCI Resource Manager (Terraform) + + Integration & Messaging + β€’ OCI Integration Cloud (OIC) + β€’ OCI Service Connector Hub + β€’ OCI Streaming + β€’ OCI GoldenGate + β€’ OCI API Gateway + β€’ OCI Events Service + β€’ OCI Queue + β€’ Real Applications Clusters (RAC) + + Developer Services + β€’ OCI DevOps (CI/CD) + β€’ OCI Code Repository + β€’ OCI Build Pipelines + β€’ OCI Artifact Registry + β€’ OCI Logging Analytics + β€’ OCI Monitoring + β€’ OCI Notifications + β€’ OCI Bastion + β€’ OCI CLI + β€’ OCI SDKs + + Observability & Management + β€’ OCI Monitoring + β€’ OCI Alarms + β€’ OCI Logging + β€’ OCI Logging Analytics + β€’ OCI Application Performance Monitoring (APM) + β€’ OCI Operations Insights + β€’ OCI Management Agent + β€’ OCI Resource Discovery + + Enterprise & Hybrid + β€’ Oracle Cloud@Customer + β€’ Exadata Cloud@Customer + β€’ Compute Cloud@Customer + β€’ Dedicated Region Cloud@Customer + β€’ OCI Roving Edge Infrastructure + β€’ OCI Alloy + + Governance & FinOps + β€’ OCI Budgets + β€’ Cost Analysis + β€’ Usage Reports + β€’ Quotas + β€’ Tagging + β€’ Compartments + β€’ Resource Search + + Regions & Edge + β€’ OCI Regions (Commercial, Government, EU Sovereign) + β€’ OCI Edge Services + β€’ OCI Roving Edge + β€’ OCI Dedicated Region + ──────────────────────────────── STEP 3 β€” Keywords rules (CRITICAL) ──────────────────────────────── @@ -459,7 +560,7 @@ def parse_rfp_requirement(question: str) -> dict: }} """ - + resp = llm_for_rag.invoke(prompt) raw = resp.content.strip()