Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/howtos/customisations/gcp-vertexai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "a6199b61-8084-4a2f-8488-2ddc4c260776",
"metadata": {},
"source": [
"# Using Vertext AI\n",
"# Using Vertex AI\n",
"\n",
"Vertex AI offers everything you need to build and use generative AI—from AI solutions, to Search and Conversation, to 100+ foundation models, to a unified AI platform. You get access to models like PaLM 2 which can be used to score your RAG responses and pipelines with Ragas instead of the default OpenAI.\n",
"\n",
Expand Down Expand Up @@ -111,7 +111,7 @@
"]\n",
"```\n",
"\n",
"By default Ragas uses `ChatOpenAI` for evaluations, lets swap that out with `ChatVertextAI`. We also need to change the embeddings used for evaluations for `OpenAIEmbeddings` to `VertextAIEmbeddings` for metrices that need it, which in our case is `answer_relevancy`."
"By default Ragas uses `ChatOpenAI` for evaluations, lets swap that out with `ChatVertexAI`. We also need to change the embeddings used for evaluations for `OpenAIEmbeddings` to `VertexAIEmbeddings` for metrices that need it, which in our case is `answer_relevancy`."
]
},
{
Expand All @@ -134,7 +134,7 @@
"creds, _ = google.auth.default(quota_project_id=\"tmp-project-404003\")\n",
"# create Langchain LLM and Embeddings\n",
"ragas_vertexai_llm = ChatVertexAI(credentials=creds)\n",
"vertextai_embeddings = VertexAIEmbeddings(credentials=creds)"
"vertexai_embeddings = VertexAIEmbeddings(credentials=creds)"
]
},
{
Expand All @@ -159,7 +159,7 @@
" # check if this metric needs embeddings\n",
" if hasattr(m, \"embeddings\"):\n",
" # if so change with VertexAI Embeddings\n",
" m.__setattr__(\"embeddings\", vertextai_embeddings)"
" m.__setattr__(\"embeddings\", vertexai_embeddings)"
]
},
{
Expand Down