Shreyas094 commited on
Commit
3fd1094
·
verified ·
1 Parent(s): 5860470

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def get_embeddings():
24
 
25
  def duckduckgo_search(query):
26
  with DDGS() as ddgs:
27
- results = ddgs.text(query, max_results=5)
28
  return results
29
 
30
  def create_web_search_vectors(search_results):
@@ -67,7 +67,7 @@ After writing the document, please provide a list of sources used in your respon
67
  max_tokens=6000,
68
  temperature=temperature,
69
  stream=True,
70
- top_p=0.9,
71
  ):
72
  if isinstance(response, dict) and "choices" in response:
73
  for choice in response["choices"]:
 
24
 
25
  def duckduckgo_search(query):
26
  with DDGS() as ddgs:
27
+ results = ddgs.text(query, max_results=10)
28
  return results
29
 
30
  def create_web_search_vectors(search_results):
 
67
  max_tokens=6000,
68
  temperature=temperature,
69
  stream=True,
70
+ top_p=0.8,
71
  ):
72
  if isinstance(response, dict) and "choices" in response:
73
  for choice in response["choices"]: