A semantic book recommendation system that suggests books based on natural language queries, categories, and emotional tones.
There are two ways to run this application:
-
Clone the repository
git clone <your-repository-url> cd <repository-name>
-
Create and activate virtual environment
python -m venv venv # On Windows .\venv\Scripts\activate # On Unix or MacOS source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
- Create a
.envfile in the root directory - Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Create a
-
Run the application
python gradio-dashboard.py
-
Access the application
- Open your browser and navigate to
http://localhost:7860
- Open your browser and navigate to
-
Clone the repository
git clone <your-repository-url> cd <repository-name>
-
Set up environment variables
- Create a
.envfile in the root directory - Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Create a
-
Build Docker image
docker build -t book-recommendation-system . -
Run Docker container
docker run -p 7860:7860 book-recommendation-system
-
Access the application
- Open your browser and navigate to
http://localhost:7860
- Open your browser and navigate to
- Enter a description of the type of book you're looking for
- Select a category (optional)
- Choose an emotional tone (optional)
- Click "Find recommendations" to get personalized book suggestions
- 🔍 Semantic search using OpenAI embeddings
- 📚 Category-based filtering
- 😊 Emotional tone sorting
- 🖼️ Book cover gallery display
- ✍️ Author and description preview
- Python
- Gradio
- LangChain
- OpenAI Embeddings
- ChromaDB
- Docker
Made with ❤️ for book lovers
