Overview • Features • Quickstart • Contributing
Imagine This…
Picture yourself diving into a new subject like Natural Language Processing. Instead of scanning countless resources, what if you could have a 100-page book delivered to you in mere seconds? If you find the content too technical, simply modify your prompt, and the entire book adapts to your needs. You can even ask for coding examples, and voilà, every chapter transforms accordingly! That’s the magic of the Infinite Bookshelf.
Overview
Full demo of Infinite Bookshelf fast generation of book content.
The Infinite Bookshelf is a Streamlit app that allows users to create entire books from a simple prompt using the Llama3 AI model on Groq. The app excels in generating non-fiction books rapidly, with each chapter completed in seconds. Utilizing a combination of Llama3-8b and Llama3-70b, it strategically balances speed and quality, ensuring an engaging and informative reading experience.
Features
- Scaffolded prompting that switches intelligently between Llama3-70b and Llama3-8b for optimal performance.
- Markdown styling for an aesthetically pleasing book layout, complete with tables and code examples.
- Download functionality for obtaining a text file containing the entire book’s content.
Example Generated Books:
| Example | Prompt |
|---|---|
| LLM Basics | The Basics of Large Language Models |
| Data Structures and Algorithms | Data Structures and Algorithms in Java |
Quickstart
[!IMPORTANT] To experience Infinite Bookshelf, you can access the hosted version at infinite.benjamin.sh or run it locally using the instructions below.
Hosted on Streamlit:
Use the hosted version at infinite.benjamin.sh for immediate access.
Run Locally:
To set up Infinite Bookshelf locally with Streamlit, follow these steps:
Step 1
Set your Groq API key in the environment variables (this step is optional):
export GROQ_API_KEY=gsk_yA...
Step 2
Set up a virtual environment and install dependencies:
python3 -m venv venv
source venv/bin/activate # Bash
venv\Scripts\activate.bat # Windows
pip3 install -r requirements.txt
Step 3 (Windows Only)
If you are on Windows, you might need to install gtk3:
GTK InstallerStep 4
Finally, run the Streamlit app:
python3 -m streamlit run main.py
Technologies
- Streamlit
- Llama3 on Groq Cloud
Limitations
The Infinite Bookshelf may sometimes generate inaccurate information or placeholders. It’s recommended for entertainment purposes primarily.
Contributing
We welcome improvements through Pull Requests!
Changelog
v0.2.0
May 29th, 2024:
v0.3.0
June 8th, 2024:
Future Features:
- Ability to title books for clear downloads
- Option to save books to Google Drive
- Seed content field for incorporating existing notes
Troubleshooting
Should you encounter any issues while using the Infinite Bookshelf, consider the following troubleshooting steps:
- Ensure that your environment variables are set correctly.
- Double-check that you have installed all the required dependencies specified in requirements.txt.
- If installation errors happen, verify compatibility with your system’s architecture (Windows/Linux/macOS).
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

