File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
ai/generative-ai-service/sentiment+categorization/files/backend Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 3
3
from typing import List
4
4
5
5
from langchain_community .chat_models .oci_generative_ai import ChatOCIGenAI
6
- from langchain_community .embeddings import OCIGenAIEmbeddings
7
6
from langchain_core .messages import HumanMessage , SystemMessage
8
7
from langchain_core .pydantic_v1 import BaseModel
9
8
from langgraph .checkpoint .memory import MemorySaver
Original file line number Diff line number Diff line change 1
1
2
2
# Common Configuration
3
- COMPARTMENT_ID = "ocid1.compartment.oc1..XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
3
+ COMPARTMENT_ID = "ocid1.compartment.oc1..XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # add here your compartment ocid id
4
4
DIRECTORY = "data"
5
- AUTH_TYPE = "API_KEY"
5
+ AUTH_TYPE = "API_KEY" # add here your authentication type
6
6
CONFIG_PROFILE = "DEFAULT"
7
- ENDPOINT = "https://inference.generativeai.eu-frankfurt-1.oci.oraclecloud.com"
7
+ ENDPOINT = "" # add here your generative ai endpoint
8
8
9
9
# COHERE data
10
10
PROVIDER_COHERE = "cohere"
11
- GENERATE_MODEL_COHERE = "cohere.command-r-plus-08-2024"
11
+ GENERATE_MODEL_COHERE = "cohere.command-r-plus-08-2024" # add here your model ocid id
12
12
# LLAMA data
13
13
PROVIDER_LLAMA = "meta"
14
- GENERATE_MODEL_LLAMA_33 = "ocid1.generativeaimodel.oc1.eu-frankfurt-1.amaaaaaask7dceya4tdabclcsqbc3yj2mozvvqoq5ccmliv3354hfu3mx6bq"
14
+ GENERATE_MODEL_LLAMA_33 = "meta.llama-3.3-70b-instruct" # add here your model ocid id
15
15
You can’t perform that action at this time.
0 commit comments