Spaces:
Sleeping
Sleeping
yashkavaiya
commited on
Commit
•
45921ff
1
Parent(s):
d4abf23
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ import gradio as gr
|
|
22 |
|
23 |
def respond(message, chat_history):
|
24 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
25 |
-
vectorstore = FAISS.load_local("./
|
26 |
retriever = vectorstore.as_retriever()
|
27 |
prompt = hub.pull("rlm/rag-prompt")
|
28 |
llm = ChatGoogleGenerativeAI(model="gemini-pro")
|
|
|
22 |
|
23 |
def respond(message, chat_history):
|
24 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
25 |
+
vectorstore = FAISS.load_local("./faiss_index", embeddings, allow_dangerous_deserialization=True)
|
26 |
retriever = vectorstore.as_retriever()
|
27 |
prompt = hub.pull("rlm/rag-prompt")
|
28 |
llm = ChatGoogleGenerativeAI(model="gemini-pro")
|