This commit is contained in:
pablodanswer
2024-10-13 18:22:14 -07:00
committed by GitHub
parent 86ecf8e0fc
commit ded42e2036

View File

@@ -183,6 +183,7 @@ def _index_vespa_chunk(
vespa_document_fields[TENANT_ID] = chunk.tenant_id vespa_document_fields[TENANT_ID] = chunk.tenant_id
vespa_url = f"{DOCUMENT_ID_ENDPOINT.format(index_name=index_name)}/{vespa_chunk_id}" vespa_url = f"{DOCUMENT_ID_ENDPOINT.format(index_name=index_name)}/{vespa_chunk_id}"
logger.debug(f'Indexing to URL "{vespa_url}"')
res = http_client.post( res = http_client.post(
vespa_url, headers=json_header, json={"fields": vespa_document_fields} vespa_url, headers=json_header, json={"fields": vespa_document_fields}
) )