Spaces:
Sleeping
Sleeping
File size: 889 Bytes
0d18784 |
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 crewai_tools import ScrapeWebsiteTool, SerperDevTool,PDFSearchTool
import os
from dotenv import load_dotenv
from tools.competitorTool import CompetitorAnalysisTool
load_dotenv()
os.environ['SERPER_API_KEY']=os.getenv('SERPER_API_KEY')
os.environ['GOOGLE_API_KEY']=os.getenv('GOOGLE_API_KEY')
pdf_tool = PDFSearchTool(
config=dict(
llm=dict(
provider="google", # or google, openai, anthropic, llama2, ...
config=dict(
model="gemini-1.5-flash-002",
),
),
embedder=dict(
provider="google", # or openai, ollama, ...
config=dict(
model="models/embedding-001",
task_type="retrieval_document",
),
),
),
pdf='.\report.pdf')
comp_tool = CompetitorAnalysisTool()
search_tool = SerperDevTool()
scrape_tool = ScrapeWebsiteTool() |