- Ensure dependencies are installed:
py -m pip install -r .\requirements.txt- Start the API (default on http://localhost:8000):
py -m uvicorn api:app --reload --host 0.0.0.0 --port 8000Health check: open http://localhost:8000/health
Endpoints:
- GET /summaries
- GET /summary/{title}
- POST /recommend { query }
- POST /chat { message }
cd .\frontend
npm install
npm run startNotes:
- Android emulator uses the host at 10.0.2.2, configured in
frontend/config.js. - Web and iOS simulator use http://localhost:8000.
Smart Librarian – a small RAG chatbot that recommends books and provides detailed summaries.
- Install dependencies:
pip install -r requirements.txt
- Set the
OPENAI_API_KEYenvironment variable.
Run the CLI chatbot:
python smart_librarian.pyType your interests (ex: Vreau o carte despre prietenie și magie) and the bot will recommend a book and show a full summary.
A minimal React Native app lives in the frontend folder with two screens:
- Chat – interact with the chatbot.
- History – review the last conversation stored locally.
Run it with Expo:
cd frontend
npm install
npm start