Skip to content

Commit

Permalink
Add corpus items to passages in post processing
Browse files Browse the repository at this point in the history
  • Loading branch information
olaughter committed Sep 18, 2024
1 parent cf3f76b commit 857e252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpr_sdk/models/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ def from_vespa_response(cls, response_hit: dict) -> "Passage":
document_content_type=fields.get("document_content_type"),
document_cdn_object=fields.get("document_cdn_object"),
document_source_url=fields.get("document_source_url"),
corpus_type_name=fields.get("corpus_type_name"),
corpus_import_id=fields.get("corpus_import_id"),
text_block=fields["text_block"],
text_block_id=fields["text_block_id"],
text_block_type=fields["text_block_type"],
Expand Down

0 comments on commit 857e252

Please sign in to comment.