Added search quality testing pipeline (#1774)

This commit is contained in:
hagen-danswer
2024-07-06 11:51:50 -07:00
committed by GitHub
parent de4d8e9a65
commit ac14369716
11 changed files with 1123 additions and 115 deletions

View File

@ -86,7 +86,9 @@ def load_vespa(filename: str) -> None:
new_doc = json.loads(line.strip())
doc_id = new_doc["update"].split("::")[-1]
response = requests.post(
DOCUMENT_ID_ENDPOINT + "/" + doc_id, headers=headers, json=new_doc
DOCUMENT_ID_ENDPOINT + "/" + doc_id,
headers=headers,
json=new_doc,
)
response.raise_for_status()