Spaces:
Sleeping
Sleeping
Shreyas
commited on
Commit
•
f1a5fc8
1
Parent(s):
df30a47
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ if "messages" not in st.session_state:
|
|
49 |
if "memory" not in st.session_state:
|
50 |
st.session_state.memory = ConversationBufferWindowMemory(k=2, memory_key="chat_history",return_messages=True)
|
51 |
|
52 |
-
embeddings = HuggingFaceEmbeddings(model_name="nomic-ai/nomic-embed-text-v1.5",model_kwargs={"trust_remote_code":True
|
53 |
db = FAISS.load_local("ipc_vector_db", embeddings, allow_dangerous_deserialization=True)
|
54 |
|
55 |
db_retriever = db.as_retriever(search_type="similarity",search_kwargs={"k": 4})
|
|
|
49 |
if "memory" not in st.session_state:
|
50 |
st.session_state.memory = ConversationBufferWindowMemory(k=2, memory_key="chat_history",return_messages=True)
|
51 |
|
52 |
+
embeddings = HuggingFaceEmbeddings(model_name="nomic-ai/nomic-embed-text-v1.5",model_kwargs={"trust_remote_code":True})
|
53 |
db = FAISS.load_local("ipc_vector_db", embeddings, allow_dangerous_deserialization=True)
|
54 |
|
55 |
db_retriever = db.as_retriever(search_type="similarity",search_kwargs={"k": 4})
|