Skip to content

Commit 3fb484c

Browse files
fix
1 parent 5fa3fc5 commit 3fb484c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ai/generative-ai-service/rag-genai/files/LangChainRAG.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from langchain_core.prompts import PromptTemplate
55
from langchain_community.llms import OCIGenAI
66
from langchain_community.document_loaders import UnstructuredURLLoader
7-
compartment_id = "ocid1.compartment.oc1..aaaaaaaa7ggqkd4ptkeb7ugk6ipsl3gqjofhkr6yacluwj4fitf2ufrdm65q"
7+
compartment_id = "<compartment ID>"
88
embeddings = OCIGenAIEmbeddings(model_id="cohere.embed-english-light-v3.0",service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",compartment_id= compartment_id,)
99
testurls = ['https://docs.oracle.com/iaas/odsaz/odsa-rotate-wallet.html', 'https://docs.oracle.com/iaas/odsaz/odsa-change-password.html', 'https://docs.oracle.com/iaas/odsaz/odsa-database-actions.html']
1010
loader = UnstructuredURLLoader(urls=testurls)

0 commit comments

Comments
 (0)