harshitv804 commited on
Commit
be0ef7a
1 Parent(s): 57c5824

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -80,14 +80,11 @@ llm = Together(
80
  )
81
 
82
  embeddings_filter = EmbeddingsFilter(embeddings=embeddings, similarity_threshold=0.80)
83
- compression_retriever = ContextualCompressionRetriever(
84
- base_compressor=embeddings_filter, base_retriever=db_retriever
85
- )
86
 
87
  qa = ConversationalRetrievalChain.from_llm(
88
  llm=llm,
89
  memory=st.session_state.memory,
90
- retriever=compression_retriever,
91
  combine_docs_chain_kwargs={'prompt': prompt}
92
  )
93
 
 
80
  )
81
 
82
  embeddings_filter = EmbeddingsFilter(embeddings=embeddings, similarity_threshold=0.80)
 
 
 
83
 
84
  qa = ConversationalRetrievalChain.from_llm(
85
  llm=llm,
86
  memory=st.session_state.memory,
87
+ retriever=db_retriever,
88
  combine_docs_chain_kwargs={'prompt': prompt}
89
  )
90