Skip to content

This project implements a multi-agent information retrieval system using the JADE framework. It features a GUI for user queries, ontology-based concept validation, and resource agents for searching both Wikipedia and a local AI knowledge database.

Notifications You must be signed in to change notification settings

SecurDrgorP/multi-agent-info-retrieval

Repository files navigation

Multi-Agent Search System

This project implements a multi-agent information retrieval system using the JADE framework. It features a GUI for user queries, ontology-based concept validation, and resource agents for searching both Wikipedia and a local AI knowledge database.

Features

  • Multi-Agent Architecture: Built with JADE agents for modularity and scalability.
  • Ontology Agent: Validates and enriches search concepts using a simple ontology.
  • Resource Agents:
    • Wikipedia agent fetches summaries from Wikipedia.
    • Database agent searches a local SQLite database of AI concepts.
  • Broker Agent: Registers resource agents and routes search requests.
  • Execution Agent: Coordinates query execution and result aggregation.
  • GUI: User-friendly Swing interface for submitting queries and viewing results.

Project Structure

  • src/main/java/com/sma/recherche/agents/ — Agent implementations (Ontology, Broker, Execution, Resource, User)
  • src/main/java/com/sma/recherche/messages/ — Message content utilities
  • src/main/java/com/sma/recherche/services/ — Wikipedia and database search services
  • src/main/java/com/sma/recherche/ui/ — Swing GUI
  • src/main/java/com/sma/recherche/utils/ — Constants and database connector
  • src/main/java/com/sma/recherche/platform/ — Platform manager for JADE
  • src/main/resources/ai_data.db — SQLite database for AI concepts (auto-created if missing)
  • lib/jade.jar — JADE library (local)
  • pom.xml — Maven build file

Requirements

  • Java 8 or higher (project uses Java 16 in Maven config)
  • Maven
  • Internet connection (for Wikipedia queries)

Setup

  1. Clone the repository

    git clone https://github.com/SecurDrgorP/multi-agent-info-retrieval.git
    cd  multi-agent-info-retrieval
    
  2. Integrate jade.jar as a module in your project
    The project uses the JADE framework which is included as a local JAR file.

    # If using Maven directly:
    mvn install:install-file -Dfile=lib/jade.jar -DgroupId=com.tilab.jade -DartifactId=jade -Dversion=4.5.0 -Dpackaging=jar
    

    Alternatively, if using an IDE:

    • IntelliJ IDEA: Right-click on lib/jade.jar → "Add as Library..."
    • Eclipse: Right-click on project → Build Path → Configure Build Path → Libraries → Add JARs → Select lib/jade.jar
    • VS Code: Update .classpath file to include the JAR or use the Java Project explorer to add referenced libraries
  3. Build the project

    mvn clean package
    
  4. Run the application

    java -jar target/multi-agent-info-retrieval-1.0-SNAPSHOT.jar
    

    This will launch the main class com.sma.recherche.Main and start all agents.

  5. Run the GUI
    Alternatively, you can run the GUI directly:

    java -cp target/multi-agent-info-retrieval-1.0-SNAPSHOT.jar com.sma.recherche.ui.SearchSystemGUI
    

Usage

  • Enter a search query in the GUI.
  • Select the source: "All Sources", "Web", or "Database".
  • Click "Search" to submit the query.
  • Results will be displayed and formatted by source.

Agent Overview

Configuration

  • The SQLite database is auto-initialized with AI concepts on first run.
  • Wikipedia API endpoint is configurable in WikipediaSearchService.

Dependencies

License

This project is for educational purposes.


See also:

About

This project implements a multi-agent information retrieval system using the JADE framework. It features a GUI for user queries, ontology-based concept validation, and resource agents for searching both Wikipedia and a local AI knowledge database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages