This is reporter agent built with LangGraph. It uses wikipedia, arxiv and custom document retriever tools to complete tasks. Additionally, LangSmith is used to monitor and debug every user interaction.
- Tools: It makes use of Wikipedia and Arxiv for research and gathering information.
- RAG System: Combines retrieval from document embeddings and OpenAI's LLM to provide context-specific answers.
- LangSmith Monitoring: Tracks and analyzes all interactions to improve the chatbot's performance and reliability.
Before running the application, ensure you have the following:
- Python 3.8 or later
- Required Python libraries:
langGraph
Wikipedia
Arxiv
langchain-community
faiss-cpu
langchain
langchain-openai
langsmith
app.py
: Main application file.tools.py
: Defining tools for the agent
-
Clone the repository:
git clone https://github.com/BertrandConxy/langR-multi-agent.git cd langR-multi-agent
-
Create virtual env
python -m venv venv
-
Install the dependencies using:
pip install -r requirements.txt
-
Create
.env
file for credentialsOPENAI_API_KEY LANGSMITH_TRACING=True LANGSMITH_ENDPOINT LANGSMITH_API_KEY LANGSMITH_PROJECT
-
Run the app:
python app.py
- Persisting custom knowledge documents locallly so that it doesn't take long for embeddings.
LangSmith is integrated into this project to monitor and analyze chatbot interactions. This ensures the app remains robust and user-friendly. To configure LangSmith:
- Set up your LangSmith account and API key.
- Ensure the
LANGSMITH_API_KEY
is added to your environment variables.