Final_Assignment / tools /vector_tools.py
Harshana
add basic code
372720a
raw
history blame contribute delete
269 Bytes
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)