Al-Alcoba-Inciarte commited on
Commit
2913a55
1 Parent(s): fdae6a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,8 +46,8 @@ pipeline.connect("prompt_builder.prompt", "llm.prompt")
46
 
47
  def respond(prompt, use_rag):
48
  if use_rag:
49
- result = pipeline.run({"prompt_builder": {"question": question},
50
- "ranker": {"query": question},
51
  "fetcher": {"urls": ["https://haystack.deepset.ai/blog/introducing-haystack-2-beta-and-advent"]},
52
  "llm":{"generation_kwargs": {"max_new_tokens": 350}}})
53
  return result['llm']['replies'][0]
 
46
 
47
  def respond(prompt, use_rag):
48
  if use_rag:
49
+ result = pipeline.run({"prompt_builder": {"question": prompt},
50
+ "ranker": {"query": prompt},
51
  "fetcher": {"urls": ["https://haystack.deepset.ai/blog/introducing-haystack-2-beta-and-advent"]},
52
  "llm":{"generation_kwargs": {"max_new_tokens": 350}}})
53
  return result['llm']['replies'][0]