BroBro87 commited on
Commit
695af12
1 Parent(s): c053536

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,12 +23,13 @@ index = initialize_vector_store_index()
23
  # configure retriever
24
  retriever = VectorIndexRetriever(
25
  index=index,
26
- similarity_top_k=3,
27
  )
28
 
29
  def get_response(text, history):
30
  # For simplicity, we are only using the 'text' argument
31
- response = str(retriever.retrieve(text))
 
32
  return response
33
 
34
 
 
23
  # configure retriever
24
  retriever = VectorIndexRetriever(
25
  index=index,
26
+ similarity_top_k=1,
27
  )
28
 
29
  def get_response(text, history):
30
  # For simplicity, we are only using the 'text' argument
31
+ response = retriever.retrieve(text)
32
+ r = str(response[0].metadata)+"\n"+response[0].text
33
  return response
34
 
35