I'm experiencing an issue with Vertex AI RAG Engine that appears to be a backend service problem rather than a code issue.
When using Vertex AI with RAG functionality, I'm consistently getting the following error:
vertexai.init(project=PROJECT_ID, location=LOCATION)
rag_retrieval_config = rag.RagRetrievalConfig(
top_k=50,
filter=rag.Filter(
vector_distance_threshold=0.5,
),
)
rag_retrieval_tool = Tool.from_retrieval(
retrieval=rag.Retrieval(
source=rag.VertexRagStore(
rag_resources=[
rag.RagResource(
rag_corpus="projects/PROJECT/locations/us-central1/ragCorpora/CORPUS_ID",
)
],
rag_retrieval_config=rag_retrieval_config,
),
)
)
rag_model = GenerativeModel(
model_name=MODEL_NAME,
tools=[rag_retrieval_tool],
system_instruction=INSTRUCTION,
)
response = rag_model.generate_content(
"Hi are you awake?"
)
Solved! Go to Solution.
It started working on my end! Seems that the issue is solved.
I encountered the same issue. First occurrence at Mar 3, 2025 9:21:18 PM UTC
Facing the same issue.
It started working on my end! Seems that the issue is solved.