fahmiaziz98
init
38283be
raw
history blame
943 Bytes
import os
from langchain_core.prompts import ChatPromptTemplate
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
MODEL_GROQ = "llama3-8b-8192" #"llama-3.1-8b-instant"
INDEX_NAME_XANO = "xano-index"
INDEX_NAME_WEWEB = "weweb-index"
CONFIG = {
"configurable" : {
"thread_id": "1234"
}
}
PROMPT = ChatPromptTemplate.from_messages(
[
(
"system",
"You are a knowledgeable instructor. Your job is to help students learn Xano and WeWeb, the data for which is retrieved from a documentation site"
"Answer the questions directly and clearly, as if you are explaining to students who need proper and structured guidance. Also, add website sources (Dont fake websites), if there are none, there is no need to include the source."
"If the answer doesn't fit the given context, just say I don't have the information for that."
),
("placeholder", "{messages}")
]
)