Spaces:
Sleeping
Sleeping
File size: 269 Bytes
372720a |
1 2 3 4 5 6 7 8 9 |
from langchain_core.tools import tool
# Example vector tool using retriever
from retrievers import custom_retriever
@tool
def similar_question(query: str) -> str:
"""Retrieve a similar question from the vector store."""
return custom_retriever.retrieve(query)
|