Spaces:
Running
Running
File size: 1,090 Bytes
eee9fe9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
from dotenv import load_dotenv
from langchain_community.tools import TavilySearchResults
from langchain.tools.retriever import create_retriever_tool
import os
load_dotenv()
tavily_api_key = os.getenv("TAVILY_API_KEY")
from langchain_community.tools import TavilySearchResults
tavily_tool = TavilySearchResults(
max_results=5,
search_depth="advanced",
include_answer=True,
include_raw_content=True,
include_images=False,
include_domains=[
"indiankanoon.org", # Indian case law
"barandbench.com", # Legal news and updates
"legallyindia.com", # Legal developments in India
"scconline.com", # Supreme Court Cases Online
"lawtimesjournal.in", # Legal news and case analysis
"lawyersclubindia.com", # Legal community discussions
"vlex.in", # Global legal information with Indian focus
"taxmann.com" # Taxation and corporate law in India
],
exclude_domains=["globalsearch.com", "genericnews.com"]
)
|