Skip to content

sudhanshu19102003/Book_Assistant

Repository files navigation

Book Assistant

An intelligent book search assistant powered by AI agents that retrieves and displays book information from Google Books API with an interactive Streamlit interface.

Untitled.video.-.Made.with.Clipchamp.2.mp4

Features

  • AI-Powered Search - Natural language queries to find books by title, author, category, or keywords
  • Google Books Integration - Real-time data retrieval from Google Books API
  • Vector Search - Semantic search through stored book data using ChromaDB
  • Interactive UI - Clean Streamlit chat interface with dynamic book tables
  • Smart Caching - Stores retrieved books locally for faster subsequent searches
  • Multi-Search Display - View results from multiple searches simultaneously

Setup

  1. Clone the repository
git clone <repository-url>
cd Book_Assistant
  1. Install dependencies
uv sync

get uv from https://docs.astral.sh/uv/getting-started/installation/

  1. Set up environment variables Create a .env file with your API keys:
ANTHROPIC_API_KEY=your_anthropic_key_here
  1. Run the application
uv run streamlit run main.py

Key Libraries

  • LangChain - Agent orchestration and tool management
  • LangGraph - State graph for workflow management
  • Anthropic Claude - LLM for natural language understanding
  • ChromaDB - Vector database for semantic search
  • Streamlit - Interactive web interface
  • Google Books API - Book data source

About

The BookAssistant is designed to interact with users, retrieve book information using various tools, and present structured responses. It leverages a language model (ChatAnthropic), Vector database, and a LangChain state graph to efficiently manage interactions and data flow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors