Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions agentic_rag/src/agentic_rag/crew.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import os

from crewai import Agent, Crew, Process, Task
from crewai.project import CrewBase, agent, crew, task
from crewai_tools import SerperDevTool
from crewai_tools import PDFSearchTool
# from tools.custom_tool import DocumentSearchTool
from agentic_rag.tools.custom_tool import DocumentSearchTool

# Initialize the tool with a specific PDF path for exclusive search within that document
pdf_tool = DocumentSearchTool(pdf='/Users/akshaypachaar/Eigen/ai-engineering/agentic_rag/knowledge/dspy.pdf')
# Initialize the tool with the bundled PDF, resolved relative to this file so the
# demo runs on any machine (not just the original author's absolute path).
PDF_PATH = os.path.join(os.path.dirname(__file__), "..", "..", "knowledge", "dspy.pdf")
pdf_tool = DocumentSearchTool(file_path=PDF_PATH)
web_search_tool = SerperDevTool()

@CrewBase
Expand Down
8 changes: 6 additions & 2 deletions agentic_rag_deepseek/src/agentic_rag/crew.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import os

from crewai import Agent, Crew, Process, Task
from crewai.project import CrewBase, agent, crew, task
from crewai_tools import SerperDevTool
from crewai_tools import PDFSearchTool
# from tools.custom_tool import DocumentSearchTool
from agentic_rag.tools.custom_tool import DocumentSearchTool

# Initialize the tool with a specific PDF path for exclusive search within that document
pdf_tool = DocumentSearchTool(pdf='/Users/akshaypachaar/Eigen/ai-engineering/agentic_rag/knowledge/dspy.pdf')
# Initialize the tool with the bundled PDF, resolved relative to this file so the
# demo runs on any machine (not just the original author's absolute path).
PDF_PATH = os.path.join(os.path.dirname(__file__), "..", "..", "knowledge", "dspy.pdf")
pdf_tool = DocumentSearchTool(file_path=PDF_PATH)
web_search_tool = SerperDevTool()

@CrewBase
Expand Down