diff --git a/crewai_components/tools.py b/crewai_components/tools.py index f5ec4a5..89788c6 100644 --- a/crewai_components/tools.py +++ b/crewai_components/tools.py @@ -1,10 +1,14 @@ from crewai_tools import SerperDevTool, GithubSearchTool import os +from dotenv import load_dotenv +load_dotenv(override=True) search_tool = SerperDevTool() # Initialize the tool for semantic searches within a specific GitHub repository +# https://docs.crewai.com/tools/GitHubSearchTool/?h=github#custom-model-and-embeddings github_tools = GithubSearchTool( github_repo=os.getenv('GITHUB_REPO'), - content_types=['code', 'repo'], # Options: code, repo, pr, issue + gh_token=os.getenv('GITHUB_TOKEN'), + content_types=['code'], # Options: code, repo, pr, issue ) diff --git a/db/chroma.sqlite3 b/db/chroma.sqlite3 new file mode 100644 index 0000000..96ce54d Binary files /dev/null and b/db/chroma.sqlite3 differ diff --git a/main.py b/main.py index 2382b2c..35b5b93 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,6 @@ import os -os.environ["GITHUB_REPO"] = "https://github.com/riolaf05/langchain-crewai-agent" -os.environ["TOPIC"] = "Agents with CrewAI and Langchain" +os.environ["GITHUB_REPO"] = "https://github.com/riolaf05/langchain-fastapi-rag-platform.git" +os.environ["TOPIC"] = "Agents with Langchain and FastAPI" from crewai_components.crews import crew from dotenv import load_dotenv diff --git a/requirements.txt b/requirements.txt index ed7ec14..0937c13 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ crewai==0.36.0 crewai-tools==0.4.8 # crewai[tools] +langchain-groq +embedchain[github]