Spaces:
Build error
Build error
Download tools/vector_tools.py from HarshanaLF/Final_Assignment: direct link, hf CLI and curl.
- Browser
- Download file 269 Bytes
-
https://huggingface.co/spaces/HarshanaLF/Final_Assignment/resolve/main/tools/vector_tools.py
- Command line
-
hf download hf://spaces/HarshanaLF/Final_Assignment/tools/vector_tools.py
-
curl -L -o vector_tools.py https://huggingface.co/spaces/HarshanaLF/Final_Assignment/resolve/main/tools/vector_tools.py
269 Bytes
| from langchain_core.tools import tool | |
| # Example vector tool using retriever | |
| from retrievers import custom_retriever | |
| def similar_question(query: str) -> str: | |
| """Retrieve a similar question from the vector store.""" | |
| return custom_retriever.retrieve(query) | |