irthomasthomas / undecidability

12 stars 2 forks source link

phidata/cookbook/groq/README.md at main · phidatahq/phidata #712

Open irthomasthomas opened 8 months ago

irthomasthomas commented 8 months ago

TITLE: phidata/cookbook/groq/README.md at main · phidatahq/phidata

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

Install libraries

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

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}

irthomasthomas commented 8 months ago

Related content

386 - Similarity score: 0.87

396 - Similarity score: 0.86

707 - Similarity score: 0.85

625 - Similarity score: 0.85

683 - Similarity score: 0.84

678 - Similarity score: 0.84