Spaces:
Runtime error
Runtime error
Download src/utils/inference_utils.py from RDeepak/RAG-Embedding-Search-EPs: direct link, hf CLI and curl.
- Browser
- Download file 156 Bytes
-
https://huggingface.co/spaces/RDeepak/RAG-Embedding-Search-EPs/resolve/main/src/utils/inference_utils.py
- Command line
-
hf download hf://spaces/RDeepak/RAG-Embedding-Search-EPs/src/utils/inference_utils.py
-
curl -L -o inference_utils.py https://huggingface.co/spaces/RDeepak/RAG-Embedding-Search-EPs/resolve/main/src/utils/inference_utils.py
156 Bytes
| def extract_ids(records:list[dict]) -> list[str]: | |
| ids = [] | |
| for record in records: | |
| id = record['id'] | |
| ids.append(id) | |
| return ids |