ai-router-a2a

varshaprasad96
1
Intelligent routing system using sentence embeddings and cosine similarity to route requests to specialized AI services (BART summarizer, Phi-2 reasoner).

Overview

What is ai-router-a2a

ai-router-a2a is an intelligent routing system that utilizes sentence embeddings and cosine similarity to automatically route user requests to the most suitable AI services, such as a BART summarizer and a Phi-2 reasoner.

How to Use

To use ai-router-a2a, clone the repository, set up the required services (Summarizer and Reasoner) in separate virtual environments, install the necessary Python packages, and run the services using Uvicorn on their respective ports.

Key Features

Key features include an orchestrator that intelligently selects the best service based on cosine similarity, a summarizer service for text summarization using the BART model, and a reasoner service for solving mathematical problems using the Phi-2 model.

Where to Use

ai-router-a2a can be used in various fields such as customer support, content generation, and educational tools where intelligent routing of requests to specialized AI services is beneficial.

Use Cases

Use cases include automatically summarizing customer inquiries, providing mathematical problem solutions in educational applications, and enhancing user interactions in chatbots by routing requests to the appropriate AI service.

Content