Create Your First Project
Start adding your projects to your portfolio. Click on "Manage Projects" to get started
State Graph-Based Conversational AI with Arxiv and Wikipedia Tools Integration
Project type
Graph-Based AI Systems, Conversational AI, and Natural Language Processing (NLP).
Date
September, 2024
Location
Ahmedabad
This project creates an interactive Conversational AI Agent that can dynamically utilize tools to answer user questions with data from Wikipedia and Arxiv. Built with LangGraph, LangChain, and Groq’s LLMs, the project uses a State Graph framework, enabling flexible, conditional tool usage within conversations. The application also integrates Wikipedia and Arxiv search tools to provide accurate, real-time answers to questions about recent research or notable public figures and events.
Key Features:
1. State Graph and Tool-Enabled Conversational System: Manages conversation flow and tool usage with LangGraph's State Graph, allowing flexible responses based on the question's requirements.
2. Integrated Knowledge Tools: Includes Wikipedia and Arxiv API wrappers, enabling detailed, context-specific responses by fetching concise and recent content from reliable sources.
3. Dynamic Tool Selection: Uses conditional logic to determine when to call external knowledge tools, enhancing response relevance.
4. LLM Integration with Tool Binding: Incorporates Groq’s Gemma2-9b-It model, which is dynamically bound to tools like Wikipedia and Arxiv, making it capable of answering both general and research-specific questions.
5. Graph Visualization and Streamed Responses: Renders the State Graph structure as a visual model, making it easy to understand the AI agent's decision-making. Responses are streamed in real-time, maintaining user engagement and reducing wait times.
How It Works:
1. State Graph Construction: Builds a conversation-driven state graph with conditional edges to manage interaction flow and tool usage.
2. Question Parsing and Tool Invocation: Upon receiving user input, the system checks if the question requires additional information from Wikipedia or Arxiv. If needed, it invokes the relevant API.
3. LLM-Based Answer Generation: The Groq model, with tool bindings, generates responses by leveraging both pre-trained language understanding and tool-provided data.
4. Graph Execution and Response Streaming: Executes the state graph in real-time, presenting an evolving stream of responses that are generated based on both user input and dynamically retrieved information.



