You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/user_guide/large_language_model/retrieval.rst
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The following code snippet shows how to use the Generative AI Embedding Models:
24
24
25
25
oci_embedings = GenerativeAIEmbeddings(
26
26
compartment_id="ocid1.compartment.####",
27
-
client_kwargs=dict(service_endpoint="https://generativeai.aiservice.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
27
+
client_kwargs=dict(service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
28
28
)
29
29
30
30
Retrieval QA with OpenSearch
@@ -74,7 +74,7 @@ Since the search result usually cannot be directly used to answer a specific que
74
74
75
75
oci_llm = GenerativeAI(
76
76
compartment_id="ocid1.compartment.####",
77
-
client_kwargs=dict(service_endpoint="https://generativeai.aiservice.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
77
+
client_kwargs=dict(service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
@@ -137,7 +137,7 @@ Similarly, you can use FAISS Vector Store as a retriever to build a retrieval QA
137
137
138
138
oci_llm = GenerativeAI(
139
139
compartment_id="ocid1.compartment.####",
140
-
client_kwargs=dict(service_endpoint="https://generativeai.aiservice.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
140
+
client_kwargs=dict(service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
141
141
)
142
142
retriever = db.as_retriever()
143
143
qa = RetrievalQA.from_chain_type(
@@ -214,12 +214,12 @@ Here is an example code snippet for deployment of Retrieval QA using OpenSearch
214
214
215
215
oci_embedings = GenerativeAIEmbeddings(
216
216
compartment_id="ocid1.compartment.####",
217
-
client_kwargs=dict(service_endpoint="https://generativeai.aiservice.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
217
+
client_kwargs=dict(service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
218
218
)
219
219
220
220
oci_llm = GenerativeAI(
221
221
compartment_id="ocid1.compartment.####",
222
-
client_kwargs=dict(service_endpoint="https://generativeai.aiservice.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
222
+
client_kwargs=dict(service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
223
223
)
224
224
225
225
import os
@@ -288,12 +288,12 @@ Here is an example code snippet for deployment of Retrieval QA using FAISS as a
288
288
ads.set_auth("resource_principal")
289
289
oci_embedings = GenerativeAIEmbeddings(
290
290
compartment_id="ocid1.compartment.####",
291
-
client_kwargs=dict(service_endpoint="https://generativeai.aiservice.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
291
+
client_kwargs=dict(service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
292
292
)
293
293
294
294
oci_llm = GenerativeAI(
295
295
compartment_id="ocid1.compartment.####",
296
-
client_kwargs=dict(service_endpoint="https://generativeai.aiservice.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
296
+
client_kwargs=dict(service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com") # this can be omitted after Generative AI service is GA.
0 commit comments