Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
adarshninja
/
ai-research-paper-explainer
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
ai-research-paper-explainer
/
utils
/
context_builder.py
adarshninja
Upload 20 files
0fda845
verified
about 2 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
129 Bytes
def
build_context
(
top_chunks
):
return
"\n\n"
.join(
[chunk[
"text"
][:
500
]
for
chunk
in
top_chunks]
)