CoolFace
Apppublic

Abbas-Asad/data-retrieval-agent

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

Data Retrieval Agent

A professional product analysis assistant that helps users explore and compare e-commerce products. The agent can fetch real-time product data from APIs and perform web searches to provide detailed product information.

Features

  • โ€”๐Ÿ” Real-time product data fetching from APIs
  • โ€”๐Ÿ”Ž Web search capabilities using DuckDuckGo
  • โ€”๐Ÿ“Š Structured product information display
  • โ€”โฐ Timestamp-based data freshness
  • โ€”๐Ÿ’ฌ Interactive chat interface

Environment Variables

The following environment variables need to be set:

  • โ€”GEMINI_API_KEY: Your Gemini API key for the language model

Local Development

  1. 1.Clone the repository
  2. 2.Create a .env file with your GEMINI_API_KEY
  3. 3.Install dependencies:
bash
   pip install -r requirements.txt
  1. 1.Run the application:
bash
   chainlit run app.py

Deployment

This application is configured for deployment on Hugging Face Spaces using Docker. The Dockerfile is included in the repository.

Usage

  1. 1.Start a chat session
  2. 2.Provide either:
  3. 3.A product API URL to fetch details
  4. 4.A product description to search online
  5. 5.The agent will analyze and present the information in a structured format

License

MIT License