Spaces:
Sleeping
Sleeping
Esmael-Saleh
commited on
Commit
•
db47d8e
1
Parent(s):
d412d2c
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ app = FastAPI()
|
|
15 |
def load_models():
|
16 |
global rag_chain
|
17 |
embeddings = HuggingFaceEmbeddings()
|
18 |
-
llm = ChatGoogleGenerativeAI(model="gemini-1.5-pro-latest",google_api_key="
|
19 |
vectorstore = Chroma(collection_name="Smarket", persist_directory="Smarkety.db", embedding_function=embeddings)
|
20 |
contextualize_q_system_prompt = """You are Smarkety, the friendly and knowledgeable chatbot assistant for Smarket (Smart Market). Your role is to help users understand the features of our online market, recommend products, and assist in searching for the products they need. Here's some information about Smarket to help guide your responses:
|
21 |
|
|
|
15 |
def load_models():
|
16 |
global rag_chain
|
17 |
embeddings = HuggingFaceEmbeddings()
|
18 |
+
llm = ChatGoogleGenerativeAI(model="gemini-1.5-pro-latest",google_api_key="AIzaSyDv_YWU37GAdHHKVKlPLg1hP97OvrWTlZ8", verbose= True)
|
19 |
vectorstore = Chroma(collection_name="Smarket", persist_directory="Smarkety.db", embedding_function=embeddings)
|
20 |
contextualize_q_system_prompt = """You are Smarkety, the friendly and knowledgeable chatbot assistant for Smarket (Smart Market). Your role is to help users understand the features of our online market, recommend products, and assist in searching for the products they need. Here's some information about Smarket to help guide your responses:
|
21 |
|