Spaces:
Runtime error
Runtime error
Download inspect_vector_db.py from dongchan21/capstone-backend: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/spaces/dongchan21/capstone-backend/resolve/main/inspect_vector_db.py
- Command line
-
hf download hf://spaces/dongchan21/capstone-backend/inspect_vector_db.py
-
curl -L -o inspect_vector_db.py https://huggingface.co/spaces/dongchan21/capstone-backend/resolve/main/inspect_vector_db.py
328 Bytes
| import pickle | |
| META_PATH = "vector_db/deposit_meta.pkl" | |
| with open(META_PATH, "rb") as f: | |
| docs = pickle.load(f) | |
| print(f"โ ์ด {len(docs)}๊ฐ์ ๋ฌธ์๊ฐ ์ธ๋ฑ์ค์ ํฌํจ๋์ด ์์ต๋๋ค.\n") | |
| # ์๋ถ๋ถ ๋ช ๊ฐ๋ง ๋ฏธ๋ฆฌ๋ณด๊ธฐ | |
| for i, doc in enumerate(docs[:5]): | |
| print(f"[{i+1}] {doc[:300]}...\n") | |