Created
May 19, 2025 19:50
-
-
Save skohari/db4e2bb38becee26420cf2de5303f9d6 to your computer and use it in GitHub Desktop.
vertexai deets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import vertexai | |
| from vertexai.preview import rag | |
| # Enable detailed logging to see the actual URLs | |
| logging.basicConfig(level=logging.DEBUG) | |
| logging.getLogger('google.cloud.aiplatform').setLevel(logging.DEBUG) | |
| logging.getLogger('urllib3.connectionpool').setLevel(logging.DEBUG) | |
| # Your current setup | |
| vertexai.init( | |
| project="your-project-id", | |
| location="your-location", | |
| api_endpoint="https://your-enterprise-endpoint.com" | |
| ) | |
| # Try RAG operation and observe the logs | |
| try: | |
| print("Attempting RAG corpus creation...") | |
| corpus = rag.create_corpus(display_name="test-corpus") | |
| except Exception as e: | |
| print(f"RAG failed: {e}") | |
| # The logs above will show you what URL it's trying to reach |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`# Vendor Document Assessment System: Technical Documentation
System Overview
The Vendor Document Assessment System is a GenAI-powered application designed to evaluate vendor documentation against domain-specific assessment criteria. The system employs a Retrieval-Augmented Generation (RAG) approach to provide accurate, context-aware evaluations across multiple domains. This document details the system architecture, data flow, and key components that enable this functionality.
Architecture Components
1. FastAPI Backend
The core of the system is built on FastAPI, providing a high-performance, asynchronous API framework that handles all incoming requests and orchestrates the document processing workflow. Key features include:
2. Salesforce Integration
The system integrates with Salesforce through its API to:
The integration uses OAuth 2.0 for secure authentication and implements connection pooling and rate limiting to ensure optimal performance while respecting Salesforce API constraints.
3. Document Processing Pipeline
Upon document retrieval, the system performs minimal preprocessing before leveraging Vertex AI RAG Engine's capabilities:
The system minimizes custom processing since Vertex AI RAG Engine handles the technical aspects of:
This approach significantly reduces system complexity and maintenance overhead while leveraging Google's optimized RAG implementation.
4. Google Cloud Storage Integration
Processed documents and their metadata are stored in Google Cloud Storage:
5. Vertex AI RAG Implementation
The system leverages Google Cloud's Vertex AI RAG Engine to abstract away many of the complex technical processes:
6. Assessment Engine
The assessment component evaluates vendor documentation against predefined criteria:
Data Flow
Deployment Architecture
The system is deployed as containerized microservices in OpenShift Container Platform (OCP) clusters:
Security Considerations
Monitoring and Observability
Disaster Recovery