Spaces:
Sleeping
Sleeping
File size: 809 Bytes
2a51e7d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import os
from langchain_core.prompts import ChatPromptTemplate
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
MODEL_GROQ = "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 a tool, the data for which is retrieved from a documentation site"
"Answer questions directly and clearly, as if you were explaining to a student who needs precise and structured guidance."
"If the answer doesn't fit the given context, just say I don't have the information for that."
),
("placeholder", "{messages}")
]
) |