Before we begin, ensure you have the following installed:
- 🐍 Python 3.10 or higher
- 🐼 Conda (for managing virtual environments)
[IMAGE PLACEHOLDER: prerequisites.jpg]
-
🖥️ Open your terminal or command prompt.
-
🌟 Create a new Conda environment:
conda create --name mindfulmarketer-ai python=3.9
-
✅ Activate the environment:
conda activate mindfulmarketer-ai
[IMAGE PLACEHOLDER: conda_setup.jpg]
-
📂 Clone the repository:
git clone https://github.com/yourusername/mindfulmarketer-ai.git
-
📁 Navigate to the project directory:
cd mindfulmarketer-ai
[IMAGE PLACEHOLDER: git_clone.jpg]
📦 Install the required packages using pip:
pip install -r requirements.txt
This will install all necessary libraries including:
- 🌊 Streamlit
- 🔗 LangChain
- 🤖 Groq
- 🗄️ SQLite
- And more!
[IMAGE PLACEHOLDER: pip_install.jpg]
-
📝 Create a
.env
file in the root directory of the project. -
🔑 Add the following variables to the
.env
file:GROQ_API_KEY=your_groq_api_key_here DEFAULT_SYSTEM_PROMPT="You are a helpful AI assistant." LANGCHAIN_API_KEY=your_langchain_api_key_here
Replace
your_groq_api_key_here
andyour_langchain_api_key_here
with your actual API keys.
[IMAGE PLACEHOLDER: env_setup.jpg]
🗃️ The application uses SQLite for storing conversation history. The database file will be automatically created when you run the application for the first time.
[IMAGE PLACEHOLDER: sqlite_setup.jpg]
-
📂 Navigate to the project directory if you're not already there.
-
🏃♂️ Run the Streamlit application:
streamlit run app.py
-
🌐 Open your web browser and go to the URL provided by Streamlit (usually
http://localhost:8501
).
[IMAGE PLACEHOLDER: streamlit_running.jpg]
-
🔑 If you haven't set the Groq API key in the
.env
file, you'll be prompted to enter it in the sidebar. -
💬 If you haven't set a default system prompt in the
.env
file, you can enter one in the sidebar. -
🤖 Select a model from the dropdown menu in the sidebar:
- llama2-70b-4096
- mixtral-8x7b-32768
- llama2-70b-4096
[IMAGE PLACEHOLDER: app_setup.jpg]
-
💬 Type your questions or prompts in the chat input at the bottom of the page.
-
🤔 The AI will process your input and provide a response.
-
📜 The conversation history will be displayed in the main chat area.
[IMAGE PLACEHOLDER: chat_interface.jpg]
-
📊 To export conversations to a JSONL file, click the "Export Conversations to JSONL" button in the sidebar.
-
💾 Click the "Download JSONL" button that appears to save the file to your computer.
[IMAGE PLACEHOLDER: export_conversations.jpg]
- 🔑 If you encounter API key errors, double-check your
.env
file and ensure the keys are correctly entered. - 🌐 If the application doesn't start, make sure all dependencies are installed and you're in the correct Conda environment.
- 💾 If the database isn't created, check that you have write permissions in the project directory.
[IMAGE PLACEHOLDER: troubleshooting.jpg]
If you encounter any issues or have questions:
- 📚 Check the project's documentation
- 🐛 Open an issue on the GitHub repository
- 📧 Contact the project maintainers
[IMAGE PLACEHOLDER: getting_help.jpg]
That concludes the installation, setup, and instruction guide for mindfulmarketerAI. This guide uses emojis for visual appeal and includes placeholders for images. You can replace these placeholders with actual screenshots or diagrams to make the guide even more engaging and informative.