Malte Pietsch
9b1924a54a
Revert TOP_K_PER_CANDIDATE value to 3
2021-02-15 14:30:04 +01:00
Malte Pietsch
0eaae3c0dd
Fix UI when API returns fewer answers than expected ( #828 )
...
* fix ui for few answers from api. add top_k_per_sample env
* Add latest docstring and tutorial changes
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-02-15 14:27:17 +01:00
Malte Pietsch
6798192d40
Add API endpoint to export accuracy metrics from user feedback + created_at timestamp ( #803 )
...
* WIP feedback metrics
* fix filters and zero division
* add created_at and model_name fields to labels
* add created_at value
* remove debug log level
* fix attribute init
* move timestamp creation down to docstore / db level
* fix import
2021-02-15 10:48:59 +01:00
Tanay Soni
f95b70df38
Fix file upload API ( #808 )
2021-02-05 12:17:38 +01:00
Malte Pietsch
e9b5439b00
Rename label id field for elastic & add UPDATE_EXISTING_DOCUMENTS to API config ( #728 )
...
* rename label id field for elastic
* add UPDATE_EXISTING_DOCUMENTS param to API config
2021-01-12 13:00:56 +01:00
Malte Pietsch
fcc052b554
Pass custom label index name in api config ( #724 )
2021-01-11 12:24:09 +01:00
Guillim
65cf9547d2
Allow setting return_no_answers for TransformersReader in REST API (SQuAD 1.0 format) ( #609 )
...
* Update config.py
* new option
Allow a new option from the settings : tell is a reader model can return a "no answer" like SQuAD2.0 models, or if it's only a SQuAD1.0-like model, always giving an answer.
2020-11-20 14:09:39 +01:00
Lalit Pagaria
23f1058b90
Fixing defaults in config for rest_api ( #583 )
...
* Fixing defaults configs for rest_apis
* Reverting change to VALID_LANGUAGES
* Casting EMBEDDING_DIM as int
2020-11-16 06:51:27 +01:00
Tanay Soni
acd088808b
Allow list of filter values in REST API ( #568 )
2020-11-09 20:41:53 +01:00
Malte Pietsch
46fac41b54
Allow configuration of log level in REST API via ENV ( #541 )
...
* configure log level via env. adjust debug messages
* pin faiss version
2020-11-04 09:54:02 +01:00
Lalit Pagaria
63c12371b9
Change arg "model" to "model_name_or_path" in TransformersReader ( #510 )
...
* Consistent parameter naming for TransformersReader along with removing unused imports as well.
* Addressing review comments
2020-10-21 17:15:35 +02:00
Malte Pietsch
4a77dc7a02
Allow null filter value in api ( #497 )
2020-10-16 18:44:15 +02:00
Lalit Pagaria
b9da789475
Add Elasticsearch Query DSL compliant Query API ( #471 )
2020-10-16 13:25:31 +02:00
Malte Pietsch
5555274170
Make creation of label index optional in feedback and file_upload api
2020-10-15 19:03:58 +02:00
Malte Pietsch
bdbd1b323b
Add create_index and similarity metric to api config ( #493 )
...
* make creation of label index optional
* add params for rest api
* reset tutorial flag
2020-10-15 18:41:36 +02:00
Malte Pietsch
a92ca04648
Update GPU docker & fix race condition with multiple workers ( #436 )
...
* fix gpu CMD and set tag to latest
* udpate dockerfiles. resolve race condition of index creation with multiple workers
* update dockerfiles for preload. remove try catch for elastic index creation
* add back try/catch. disable multiproc in default config to comply with --preload of gunicorn
* change to pip3 for GPU dockerfile
* remove --preload for gpu
2020-09-29 21:12:44 +02:00
Tanay Soni
3399fc784d
Refactor file converter interface ( #393 )
2020-09-18 10:42:13 +02:00
Tanay Soni
03fa4a8740
Exclude embedding fields from the REST API ( #390 )
2020-09-17 14:37:01 +02:00
Malte Pietsch
9727829cc6
Rename and restructure modules (database, indexing, schemas) ( #379 )
...
* rename database to documentstore
* move document, label, multilabel to haystack/schema.py
* rename documentstore -> document_store
* split indexing modules -> file_converter + preprocessor
* fix order of imports
* Update tutorial notebooks
* fix torch version in tutorial 4
2020-09-16 18:33:23 +02:00
Karim Jana
c7078a36c0
Custom fields for indexing in ElasticsearchDocumentStore ( #297 )
2020-08-10 11:34:39 +02:00
Karim Jana
89dcfed619
Cast Search REST API logs to JSON ( #290 )
2020-08-06 10:36:56 +02:00
Tanay Soni
723921475f
Make document ids of str type ( #284 )
2020-08-03 16:20:17 +02:00
Malte Pietsch
29a15c0d59
Add eval for Dense Passage Retriever & Refactor handling of labels/feedback ( #243 )
2020-07-31 11:34:06 +02:00
Malte Pietsch
1289cc6fbb
Fix format of /export-doc-qa-feedback to comply with SQuAD ( #241 )
2020-07-16 13:17:45 +02:00
Malte Pietsch
6bed2f509f
Refactor DPR for latest transformers version & change init arg gpu
-> use_gpu
for DPR and EmbeddingRetriever ( #239 )
...
* fix tokenizer warning in latest transformers
* change dpr arg from gpu to use_gpu
* change gpu arg for EmbeddingRetriever
2020-07-16 10:45:01 +02:00
Malte Pietsch
e5b6546112
Change default reader for REST API
2020-07-16 10:02:06 +02:00
Tanay Soni
5c1a5fe61d
Add dummy retriever for benchmarking / reader-only settings ( #235 )
2020-07-15 17:22:17 +02:00
Guillim
8a616dae75
Adjust Docker and REST API to allow TransformsReader Class ( #180 )
2020-07-07 16:25:36 +02:00
Tanay Soni
ff7e35581b
Add response time in logs ( #201 )
2020-07-07 12:28:41 +02:00
Tanay Soni
68d604d82b
Add response for successful file upload ( #195 )
2020-07-06 17:35:47 +02:00
Malte Pietsch
07ecfb60b9
Dense Passage Retriever (Inference) ( #167 )
2020-06-30 19:05:45 +02:00
Tanay Soni
0e070d0d7c
Create file upload dir if not exists ( #166 )
2020-06-24 15:05:30 +02:00
Tanay Soni
ec433a5ed6
Move out REST API from PyPI package ( #160 )
2020-06-22 12:07:12 +02:00