Open irthomasthomas opened 8 months ago
DESCRIPTION: "RAG AI App with Groq & PgVector
Create and activate a virtual environment
python3 -m venv ~/.venvs/aienv source ~/.venvs/aienv/bin/activate
Export your Groq & OpenAI API Key Need to use OpenAI for embeddings as Groq doesn't support embeddings yet.
export GROQ_API_KEY=xxx export OPENAI_API_KEY=sk-***
Install libraries
pip install -r cookbook/groq/requirements.txt
Start pgvector
phi start cookbook/groq/resources.py -y
Run RAG App
streamlit run cookbook/groq/app.py
Stop pgvector
phi stop cookbook/groq/resources.py -y
Build AI Assistants with Groq
pip install -U groq phidata
Run Assistant
stream on python cookbook/groq/assistant.py stream off python cookbook/groq/assistant_stream_off.py
URL: phidata/cookbook/groq/README.md
TITLE: phidata/cookbook/groq/README.md at main · phidatahq/phidata
DESCRIPTION: "RAG AI App with Groq & PgVector
Create and activate a virtual environment
Export your Groq & OpenAI API Key Need to use OpenAI for embeddings as Groq doesn't support embeddings yet.
Install libraries
Start pgvector
Run RAG App
Stop pgvector
Build AI Assistants with Groq
Install libraries
Run Assistant
URL: phidata/cookbook/groq/README.md
Suggested labels
{'label-name': 'Virtual-Environment-Setup', 'label-description': 'Instructions for creating a virtual environment and setting up necessary API keys and libraries.', 'confidence': 68.56}