mirror of
https://github.com/hoshikawa2/rfp_response_automation.git
synced 2026-03-06 02:10:41 +00:00
first commit
This commit is contained in:
@@ -42,7 +42,7 @@ llm = ChatOCIGenAI(
|
|||||||
service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",
|
service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",
|
||||||
compartment_id="ocid1.compartment.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
compartment_id="ocid1.compartment.oc1..aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||||
auth_profile="DEFAULT",
|
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(
|
llm_for_rag = ChatOCIGenAI(
|
||||||
@@ -348,89 +348,190 @@ def parse_rfp_requirement(question: str) -> dict:
|
|||||||
and INCLUDE IT EXPLICITLY in the keywords list.
|
and INCLUDE IT EXPLICITLY in the keywords list.
|
||||||
|
|
||||||
Choose the MOST SPECIFIC applicable item.
|
Choose the MOST SPECIFIC applicable item.
|
||||||
|
|
||||||
☁️ OCI SERVICE CATEGORIES (MANDATORY)
|
Serviços da Oracle Cloud Infrastructure (OCI):
|
||||||
|
|
||||||
🖥️ Compute (IaaS)
|
Compute (IaaS)
|
||||||
- compute
|
• Compute Instances (VM)
|
||||||
- compute instances
|
• Bare Metal Instances
|
||||||
- virtual machine
|
• Dedicated VM Hosts
|
||||||
- bare metal
|
• GPU Instances
|
||||||
- gpu
|
• Confidential Computing
|
||||||
- hpc
|
• Capacity Reservations
|
||||||
- confidential computing
|
• Autoscaling (Instance Pools)
|
||||||
- autoscaling
|
• Live Migration
|
||||||
- instance pools
|
• Oracle Cloud VMware Solution (OCVS)
|
||||||
- live migration
|
• HPC (High Performance Computing)
|
||||||
- ocvs (vmware)
|
• Arm-based Compute (Ampere)
|
||||||
- arm compute
|
|
||||||
|
Storage
|
||||||
💾 Storage
|
|
||||||
- object storage
|
Object Storage
|
||||||
- archive storage
|
• Object Storage
|
||||||
- block volume
|
• Object Storage – Archive
|
||||||
- boot volume
|
• Pre-Authenticated Requests
|
||||||
- file storage
|
• Replication
|
||||||
- volume groups
|
|
||||||
- snapshots
|
Block & File
|
||||||
- replication
|
• Block Volume
|
||||||
|
• Boot Volume
|
||||||
🌐 Networking
|
• Volume Groups
|
||||||
- vcn
|
• File Storage
|
||||||
- load balancer
|
• File Storage Snapshots
|
||||||
- network load balancer
|
• Data Transfer Service
|
||||||
- dns
|
|
||||||
- fastconnect
|
Networking
|
||||||
- drg
|
• Virtual Cloud Network (VCN)
|
||||||
- firewall
|
• Subnets
|
||||||
- waf
|
• Internet Gateway
|
||||||
- bastion
|
• NAT Gateway
|
||||||
- vtap
|
• Service Gateway
|
||||||
- private endpoint
|
• Dynamic Routing Gateway (DRG)
|
||||||
|
• FastConnect
|
||||||
🔐 Security & Identity
|
• Load Balancer (L7 / L4)
|
||||||
- iam
|
• Network Load Balancer
|
||||||
- compartments
|
• DNS
|
||||||
- policies
|
• Traffic Management Steering Policies
|
||||||
- oci vault
|
• IP Address Management (IPAM)
|
||||||
- key management
|
• Network Firewall
|
||||||
- certificates
|
• Web Application Firewall (WAF)
|
||||||
- secrets
|
• Bastion
|
||||||
- cloud guard
|
• Capture Traffic (VTAP)
|
||||||
- security zones
|
• Private Endpoints
|
||||||
- vulnerability scanning
|
|
||||||
- data safe
|
Security, Identity & Compliance
|
||||||
- audit
|
• Identity and Access Management (IAM)
|
||||||
- logging
|
• Compartments
|
||||||
- shielded instances
|
• Policies
|
||||||
|
• OCI Vault
|
||||||
📦 Containers & Cloud Native
|
• OCI Key Management (KMS)
|
||||||
- oke
|
• OCI Certificates
|
||||||
- kubernetes
|
• OCI Secrets
|
||||||
- container registry
|
• OCI Bastion
|
||||||
- api gateway
|
• Cloud Guard
|
||||||
- functions
|
• Security Zones
|
||||||
- streaming
|
• Vulnerability Scanning Service
|
||||||
- events
|
• Data Safe
|
||||||
- service mesh
|
• Logging
|
||||||
|
• Audit
|
||||||
🗄️ Databases
|
• OS Management / OS Management Hub
|
||||||
- autonomous database
|
• Shielded Instances
|
||||||
- adw
|
• Zero Trust Packet Routing
|
||||||
- atp
|
|
||||||
- base database
|
Databases
|
||||||
- exadata
|
|
||||||
- mysql
|
Autonomous
|
||||||
- nosql
|
• Autonomous Database (ATP)
|
||||||
|
• Autonomous Data Warehouse (ADW)
|
||||||
📊 Analytics & AI
|
• Autonomous JSON Database
|
||||||
- analytics cloud
|
|
||||||
- data science
|
Databases Gerenciados
|
||||||
- data catalog
|
• Oracle Database Service
|
||||||
- big data service
|
• Oracle Exadata Database Service
|
||||||
- generative ai
|
• Exadata Cloud@Customer
|
||||||
- ai services
|
• 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)
|
STEP 3 — Keywords rules (CRITICAL)
|
||||||
────────────────────────────────
|
────────────────────────────────
|
||||||
@@ -459,7 +560,7 @@ def parse_rfp_requirement(question: str) -> dict:
|
|||||||
}}
|
}}
|
||||||
</json>
|
</json>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
resp = llm_for_rag.invoke(prompt)
|
resp = llm_for_rag.invoke(prompt)
|
||||||
raw = resp.content.strip()
|
raw = resp.content.strip()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user