Skip to content

shankariraja/SearchAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search AI

This project implements an AI-powered search system for e-commerce platform using the Gemini language model.

Setup

  1. Clone the repository
  2. Create a virtual environment: python -m venv venv
  3. Activate the virtual environment:
    • On Windows: venv\Scripts\activate
    • On macOS and Linux: source venv/bin/activate
  4. Install dependencies: pip install -r requirements.txt
  5. Set up the database: python scripts/init_db.py
  6. Set your Gemini API key as an environment variable: export GEMINI_API_KEY=your_api_key_here
  7. Set up the database:
    • Set the PYTHONPATH and run the initialization script: export PYTHONPATH=$PYTHONPATH:/home/ubuntu/git/SearchAI
    • Run: python -m app.scripts.init_db
  8. Run the application: python run.py

Usage

Send a POST request to /search with a JSON body containing the query field:

{
  "query": "I need a birthday gift for a 5-year-old boy who likes dinosaurs"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published