This is an AI book recommender agent that helps booksellers recommend in-stock books.
-
You'll need Milvus for the vector database.
-
We recommend using Docker with Milvus: https://milvus.io/docs/install_standalone-docker.md https://hub.docker.com/
-
In your root folder you will need to add an file named ".env". This is where you will put your OpenAI API key in the format:
OPENAI_API_KEY=your openai api key goes here
Keep in mind that you will need to go to the OpenAI website and create a key using an account. Usage of they key may cost money, please read OpenAI's policy (currently there is a free trial to acuess their APIs).
!! Be aware that this code uses all files in the "data" directory. This is expected to be used to hold information about the invetory in a bookstore. You can change how the program inputs code by editing the "main.py" file where we are setting the SimpleDirectoryReader (currently line 42 (the meaning of life lol (if you get the reference ^_^)).
Original Sample Database (oldDataset_books.csv): https://www.kaggle.com/datasets/arpansri/books-summary?resource=download
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
This project is licensed under the MIT License.