mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-12 04:40:09 +02:00
Use Vespa Doc ID directly instead of from fields (#399)
This commit is contained in:
parent
f7cc7190fe
commit
d593818996
@ -104,9 +104,7 @@ def _get_vespa_chunk_ids_by_document_id(
|
||||
while True:
|
||||
results = requests.get(SEARCH_ENDPOINT, params=params).json()
|
||||
hits = results["root"].get("children", [])
|
||||
doc_chunk_ids.extend(
|
||||
[hit.get("fields", {}).get("documentid").split("::")[1] for hit in hits]
|
||||
)
|
||||
doc_chunk_ids.extend([hit["id"].split("::")[1] for hit in hits])
|
||||
params["offset"] += hits_per_page # type: ignore
|
||||
|
||||
if len(hits) < hits_per_page:
|
||||
|
Loading…
x
Reference in New Issue
Block a user