Download retrieve_docs.py from mintaeng/FUTFUT: direct link, hf CLI and curl.
- Browser
- Download file 220 Bytes
-
https://huggingface.co/spaces/mintaeng/FUTFUT/resolve/main/retrieve_docs.py
- Command line
-
hf download hf://spaces/mintaeng/FUTFUT/retrieve_docs.py
-
curl -L -o retrieve_docs.py https://huggingface.co/spaces/mintaeng/FUTFUT/resolve/main/retrieve_docs.py
220 Bytes
| def print_search_results(retrievers, query): | |
| print(f"Query: {query}") | |
| for i in range(len(retrievers.invoke(query))): | |
| print(f'찾은 문장{i+1}:', | |
| retrievers.invoke(query)[i].page_content) |