Update main.py
Browse files
main.py
CHANGED
@@ -23,7 +23,7 @@ add_example_data(document_store, "./Reference")
|
|
23 |
pipeline = build_pipeline(provider, API_KEY, document_store)
|
24 |
|
25 |
# Ask a question on the data you just added.
|
26 |
-
result = pipeline.run(query=text)
|
27 |
|
28 |
# For details, like which documents were used to generate the answer, look into the <result> object
|
29 |
#print_answers(result, details="minimum") #minimum, medium, all
|
@@ -39,4 +39,5 @@ async def root(text):
|
|
39 |
#return {"message": "Hello World"}
|
40 |
#return generator(text,max_length=100, num_return_sequences=1)
|
41 |
#return pipeline.run(query=text)
|
|
|
42 |
return print_answers(result, details="minimum")
|
|
|
23 |
pipeline = build_pipeline(provider, API_KEY, document_store)
|
24 |
|
25 |
# Ask a question on the data you just added.
|
26 |
+
#result = pipeline.run(query=text)
|
27 |
|
28 |
# For details, like which documents were used to generate the answer, look into the <result> object
|
29 |
#print_answers(result, details="minimum") #minimum, medium, all
|
|
|
39 |
#return {"message": "Hello World"}
|
40 |
#return generator(text,max_length=100, num_return_sequences=1)
|
41 |
#return pipeline.run(query=text)
|
42 |
+
result = pipeline.run(query=text)
|
43 |
return print_answers(result, details="minimum")
|