### Install Exa Search Libraries and Run Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/hermes2/README.md Installs the exa_py and bs4 libraries and then runs the Exa search example script. ```shell pip install -U exa_py bs4 python cookbook/llms/hermes2/exa_kg.py ``` -------------------------------- ### Install Phidata and Dependencies Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/integrations/portkey/Phidata_with_ Perplexity.ipynb Install the necessary libraries for Phidata, Portkey, and other integrations. This is a prerequisite for running the examples. ```python !pip install phidata portkey-ai duckduckgo-search yfinance ``` -------------------------------- ### Install Dependencies and Run Playground Source: https://github.com/agno-agi/phidata/blob/main/README.md Install the necessary Python packages for FastAPI and SQLAlchemy, then run the playground script. This command sequence prepares your environment and starts the local development server for the Agent Playground. ```shell pip install 'fastapi[standard]' sqlalchemy python playground.py ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/data_eng/README.md Installs all necessary Python libraries for the data engineering examples from a requirements file. Ensure your virtual environment is activated before running this command. ```shell pip install -r cookbook/examples/data_eng/requirements.txt ``` -------------------------------- ### Install OpenBB Libraries for Financial Analysis Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/groq/finance_analyst/README.md Installs the OpenBB library with all extensions and additional data handling libraries (polars, pyarrow). This setup is for the OpenBB-integrated financial analyst. ```shell pip install "openbb[all]" polars pyarrow ``` -------------------------------- ### Run Basic Assistant Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/groq/README.md Executes the basic Groq assistant example script. ```shell python cookbook/llms/groq/basic.py ``` -------------------------------- ### Install Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/integrations/qdrant/README.md Installs the required Python libraries: qdrant-client, pypdf, openai, and phidata. ```shell pip install -U qdrant-client pypdf openai phidata ``` -------------------------------- ### Run Structured Output Assistant Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/groq/README.md Executes the Groq assistant example script demonstrating structured output. ```shell python cookbook/llms/groq/structured_output.py ``` -------------------------------- ### Install Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/structured_output/README.md Install the necessary libraries, OpenAI and Phidata, using pip. ```shell pip install -U openai phidata ``` -------------------------------- ### Install Financial Analysis Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/groq/README.md Installs the yfinance library for financial data analysis. ```shell pip install -U yfinance ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/groq/README.md Installs the necessary Python packages for Groq, data searching, and data handling. ```shell pip install -U groq duckduckgo-search duckdb yfinance phidata ``` -------------------------------- ### Install Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/groq/README.md Installs the Groq and Phidata libraries using pip. Ensure your virtual environment is activated. ```shell pip install -U groq phidata ``` -------------------------------- ### Install Python Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/rag_with_lance_and_sqllite/README.md Install the required Python packages: phidata, ollama, lancedb, pandas, and sqlalchemy. Use pip for installation. ```shell !pip install -U phidata ollama lancedb pandas sqlalchemy ``` -------------------------------- ### Install Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/google/README.md Installs the required Python libraries: google-generativeai, duckduckgo-search, and phidata. ```shell pip install -U google-generativeai duckduckgo-search phidata ``` -------------------------------- ### Install Libraries for Knowledge Assistants Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Installs SQLAlchemy, pgvector, psycopg, and pypdf for assistants requiring knowledge integration. ```shell pip install -U sqlalchemy pgvector "psycopg[binary]" pypdf ``` -------------------------------- ### Run Web Search Assistant Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/groq/README.md Executes the Groq assistant example script that includes web search functionality. ```shell python cookbook/llms/groq/assistant.py ``` -------------------------------- ### Install Mistral AI and Phidata Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/mistral/README.md Installs the necessary Python libraries for Mistral AI and Phidata. Use '-U' to upgrade if already installed. ```shell pip install -U mistralai phidata ``` -------------------------------- ### Install Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/claude/README.md Installs necessary Python libraries for the project. ```shell pip install -U anthropic duckduckgo-search duckdb yfinance phidata ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/ollama/video_summary/README.md Install all required Python libraries for the video summarization app. Ensure your virtual environment is activated before running. ```shell pip install -r cookbook/llms/ollama/video_summary/requirements.txt ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/google/README.md Installs the necessary Python packages for Google Gemini, web search, financial data, and phidata. ```shell pip install -U google-generativeai duckduckgo-search yfinance phidata ``` -------------------------------- ### Install Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/integrations/clickhouse/README.md Installs the required Python libraries: pypdf, clickhouse-connect, openai, and phidata. ```shell pip install -U pypdf clickhouse-connect openai phidata ``` -------------------------------- ### Install Libraries for Agentic RAG Source: https://github.com/agno-agi/phidata/blob/main/README.md Installs the necessary Python libraries for running the Agentic RAG example. ```shell pip install lancedb tantivy pypdf sqlalchemy python rag_agent.py ``` -------------------------------- ### Install Python Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/hermes/README.md Installs essential Python libraries including ollama, duckduckgo-search, duckdb, yfinance, and phidata. Use `-U` to upgrade if already installed. ```shell pip install -U ollama duckduckgo-search duckdb yfinance phidata ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/auto_rag/README.md Installs the necessary Python libraries from the requirements file. ```shell pip install -r cookbook/examples/auto_rag/requirements.txt ``` -------------------------------- ### Install Project Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/agents_101/README.md Installs all necessary Python libraries for the project, including Phidata and its dependencies. ```shell pip install -U openai duckduck-search duckdb yfinance lancedb tantivy pypdf sqlalchemy 'fastapi[standard]' phidata ``` -------------------------------- ### Install yfinance and Test Finance Assistant Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/google/README.md Installs the yfinance library and then runs the finance assistant script for financial data tasks. ```shell pip install yfinance python cookbook/llms/google/finance.py ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/together/README.md Installs the necessary Python libraries: together, openai, and phidata. Ensure your virtual environment is active. ```shell pip install -U together openai phidata ``` -------------------------------- ### Run Structured Output Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/hermes2/README.md Executes a Python script demonstrating how to get structured JSON output from Hermes 2 Pro. ```shell python cookbook/llms/hermes2/structured_output.py ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/integrations/chromadb/README.md Installs the necessary Python libraries: chromadb, pypdf, openai, and phidata. ```shell pip install -U chromadb pypdf openai phidata ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/groq/research/README.md Installs all required Python libraries listed in the requirements file for the Groq research assistant. ```shell pip install -r cookbook/llms/groq/research/requirements.txt ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/vertexai/README.md Installs the necessary Python packages for VertexAI, search, data retrieval, and phidata. ```shell pip install -U google-cloud-aiplatform duckduckgo-search yfinance phidata ``` -------------------------------- ### Install Phidata and OpenAI Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Installs the necessary Phidata and OpenAI Python libraries. ```shell pip install -U phidata openai ``` -------------------------------- ### Install Ollama and Run Models Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/ollama/README.md Installs Ollama and runs a chat model. Message '/bye' to exit. ```shell ollama run llama3.1:8b ``` -------------------------------- ### Install Phidata and Llama Cpp Python Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/llama_cpp/README.md Installs the necessary phidata library and the llama-cpp-python package with server capabilities. Ensure the virtual environment is activated. ```shell pip install -U phidata 'llama-cpp-python[server]' ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/bedrock/README.md Installs necessary Python packages including boto3, duckduckgo-search, duckdb, yfinance, and phidata. ```shell pip install -U boto3 duckduckgo-search duckdb yfinance phidata ``` -------------------------------- ### Run Basic Assistant Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Executes the Python script for a basic Phidata Assistant. ```shell python cookbook/assistants/basic.py ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/personalization/README.md Installs all necessary Python libraries listed in the requirements file. Ensure your virtual environment is activated. ```shell pip install -r cookbook/examples/personalization/requirements.txt ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/cohere/README.md Installs the necessary Python libraries for the project, including cohere, duckduckgo-search, yfinance, exa_py, and phidata. ```shell pip install -U cohere duckduckgo-search yfinance exa_py phidata ``` -------------------------------- ### Install Libraries and Run Web Search Agent Source: https://github.com/agno-agi/phidata/blob/main/README.md These shell commands install the required Python packages for the web search agent and set the OpenAI API key. Then, it shows how to run the Python script. ```shell pip install phidata openai duckduckgo-search export OPENAI_API_KEY=sk-xxxx python web_search.py ``` -------------------------------- ### Install Python Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/hermes2/README.md Installs necessary Python libraries including ollama, duckduckgo-search, yfinance, and phidata. ```shell pip install -U ollama duckduckgo-search yfinance phidata ``` -------------------------------- ### Install Project Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llm_os/README.md Installs all necessary Python libraries for the LLM OS project from the requirements file. This should be run after activating the virtual environment. ```shell pip install -r cookbook/llm_os/requirements.txt ``` -------------------------------- ### Install Libraries and Run Finance Agent Source: https://github.com/agno-agi/phidata/blob/main/README.md These shell commands install the yfinance library and then execute the finance agent Python script. ```shell pip install yfinance python finance_agent.py ``` -------------------------------- ### Install Ollama and Run a Model Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/ollama_tools/README.md Installs Ollama and runs a chat model. Type '/bye' to exit. ```shell ollama run llama3.2 ``` -------------------------------- ### Install Project Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/pdf/README.md Installs all necessary Python libraries for the PDF Assistant, including pgvector, pypdf, sqlalchemy, openai, and phidata. ```shell pip install -U pgvector pypdf "psycopg[binary]" sqlalchemy openai phidata ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/integrations/pinecone/README.md Installs the necessary Python libraries including Pinecone, pypdf, OpenAI, and Phidata. ```shell pip install -U pinecone pypdf openai phidata ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/fireworks/README.md Installs necessary Python libraries including openai, duckduckgo-search, duckdb, yfinance, and phidata. ```shell pip install -U openai duckduckgo-search duckdb yfinance phidata ``` -------------------------------- ### Install DuckDB and Run Data Analyst Script Source: https://github.com/agno-agi/phidata/blob/main/README.md Install the duckdb library and then run the data analyst Python script. ```shell pip install duckdb python data_analyst.py ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/openai/README.md Installs the necessary Python libraries for the project, including openai, phidata, and duckduckgo-search. Ensure your virtual environment is activated. ```shell pip install -U openai phidata duckduckgo-search ``` -------------------------------- ### Install Project Requirements Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/research/README.md Installs all necessary Python packages listed in the requirements.txt file for the research project. ```shell pip install -r cookbook/examples/research/requirements.txt ``` -------------------------------- ### Install Ollama and Phidata Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/ollama/README.md Installs the necessary Python libraries, ollama and phidata, for interacting with Ollama models. ```shell pip install -U ollama phidata ``` -------------------------------- ### Install PDF Knowledge Base Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/knowledge/README.md Installs libraries necessary for processing PDF documents and parsing HTML content for the knowledge base. ```shell pip install -U pypdf bs4 ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/cohere/README.md Installs the necessary Python libraries for using Cohere, DuckDuckGo Search, DuckDB, yfinance, and phidata. ```shell pip install -U cohere duckduckgo-search duckdb yfinance phidata ``` -------------------------------- ### Install Required Python Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/integrations/singlestore/README.md Installs necessary Python packages including pymysql, sqlalchemy, pypdf, openai, and phidata. ```shell pip install -U pymysql sqlalchemy pypdf openai phidata ``` -------------------------------- ### Install Phidata Source: https://github.com/agno-agi/phidata/blob/main/README.md Install the Phidata package using pip. This command ensures you get the latest version. ```shell pip install -U phidata ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/teams/journalist/README.md Installs essential Python libraries for the Journalist Workflow, including openai, google-search-results, newspaper3k, lxml_html_clean, and phidata. ```shell pip install openai google-search-results newspaper3k lxml_html_clean phidata ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/groq/investment_researcher/README.md Installs all necessary Python libraries for the Investment Researcher project from the requirements file. Ensure your virtual environment is activated. ```shell pip install -r cookbook/llms/groq/investment_researcher/requirements.txt ``` -------------------------------- ### Install Python Packages Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/advanced_rag/image_search/README.md Installs the necessary Python packages from the requirements.txt file. Ensure you have Python 3.10+ and a virtual environment activated. ```bash pip install -r requirements.txt ``` -------------------------------- ### Run PgVector with Helper Script Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/auto_rag/README.md Starts the PgVector database using a provided shell script. Docker Desktop must be installed first. ```shell ./cookbook/run_pgvector.sh ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/vertexai/README.md Install the necessary Python libraries for Google Cloud AI Platform and Phidata. Ensure you have activated your virtual environment first. ```shell pip install -U google-cloud-aiplatform phidata ``` -------------------------------- ### Interact with World Explorer in terminal Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/examples/worldbuilding/README.md Example of a query to ask the World Explorer after it has been run. This demonstrates how to interact with the tool to get information about the world. ```text Tell me about this world ``` -------------------------------- ### Run Autonomous Assistant Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Executes the Python script for the Autonomous Assistant. ```shell python cookbook/assistants/auto_assistant.py ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/examples/hybrid_search/lancedb/README.md Installs the necessary Python packages for LanceDB, search functionality, PDF handling, and AI integration. Ensure you have `pip` installed and updated. ```shell pip install -U lancedb tantivy pypdf openai phidata ``` -------------------------------- ### Run RAG Assistant Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Executes the Python script for the Retrieval-Augmented Generation (RAG) Assistant. ```shell python cookbook/assistants/rag_assistant.py ``` -------------------------------- ### Install Python Packages Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/advanced_rag/pinecone_hybrid_search/README.md Installs the necessary Python packages for the project using pip. Ensure you have Python 3.10+ installed and activate your virtual environment before running. ```bash python -m venv venv source venv/bin/activate pip install -r requirements.txt ``` -------------------------------- ### Run YFinance Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/cohere/README.md Executes the Python script for demonstrating financial data retrieval using the YFinance library with Cohere's models. ```shell python cookbook/llms/cohere/finance.py ``` -------------------------------- ### Run Multimodal Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/vertexai/samples/README.md Executes the multimodal Python script. This sample demonstrates how to use the Gemini API for multimodal inputs. ```shell python cookbook/llms/gemini/samples/multimodal.py ``` -------------------------------- ### Install Libraries for Grok Agents Source: https://github.com/agno-agi/phidata/blob/main/cookbook/playground/README.md Installs required Python libraries for Grok agents. ```shell pip install -U openai duckduckgo-search yfinance pypdf sqlalchemy 'fastapi[standard]' phidata youtube-transcript-api ``` -------------------------------- ### Run Web Search Assistant Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Executes the Python script for the Web Search Assistant. ```shell python cookbook/assistants/web_search.py ``` -------------------------------- ### Install Libraries for Ollama Agents Source: https://github.com/agno-agi/phidata/blob/main/cookbook/playground/README.md Installs required Python libraries for Ollama agents. ```shell pip install -U ollama duckduckgo-search yfinance pypdf sqlalchemy 'fastapi[standard]' phidata youtube-transcript-api ``` -------------------------------- ### Create and Activate Virtual Environment Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/llama_cpp/README.md Sets up a Python virtual environment for managing project dependencies. Activate it before installing libraries. ```shell python3 -m venv ~/.venvs/llamaenv source ~/.venvs/llamaenv/bin/activate ``` -------------------------------- ### Install Libraries for OpenAI Agents Source: https://github.com/agno-agi/phidata/blob/main/cookbook/playground/README.md Installs required Python libraries for OpenAI agents. ```shell pip install -U openai exa_py duckduckgo-search yfinance pypdf sqlalchemy 'fastapi[standard]' youtube-transcript-api phidata ``` -------------------------------- ### Create Virtual Environment Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/deepseek/README.md Sets up a Python virtual environment for project dependencies. ```shell python3 -m venv venv source venv/bin/activate ``` -------------------------------- ### Run Web Search Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/hermes2/README.md Executes a Python script demonstrating web search functionality with Hermes 2 Pro. ```shell python cookbook/llms/hermes2/web_search.py ``` -------------------------------- ### Install DuckDB for Data Analysis Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Installs the DuckDB library for data analysis capabilities. ```shell pip install -U duckdb ``` -------------------------------- ### Run SingleStore Docker Container Source: https://github.com/agno-agi/phidata/blob/main/cookbook/integrations/singlestore/README.md Starts a SingleStore database instance using Docker. Ensure to map the necessary ports. ```shell docker run \ -d --name singlestoredb-dev \ -e ROOT_PASSWORD="admin" \ -p 3306:3306 -p 8080:8080 -p 9000:9000 \ --platform linux/amd64 \ ghcr.io/singlestore-labs/singlestoredb-dev:latest ``` -------------------------------- ### Run Qdrant Docker Container Source: https://github.com/agno-agi/phidata/blob/main/cookbook/integrations/qdrant/README.md Starts a Qdrant instance using Docker, mapping ports and persisting storage. ```shell docker run -p 6333:6333 -p 6334:6334 -v $(pwd)/qdrant_storage:/qdrant/storage:z qdrant/qdrant ``` -------------------------------- ### Run Basic Agent (Streaming On) Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/vertexai/README.md Executes a basic VertexAI Gemini agent with streaming output enabled. ```shell python cookbook/providers/vertexai/basic_stream.py ``` -------------------------------- ### Run Web Search Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/cohere/README.md Executes the Python script for demonstrating web search functionality using Cohere's models. ```shell python cookbook/llms/cohere/web_search.py ``` -------------------------------- ### Import Necessary Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/integrations/portkey/Phidata_with_ Perplexity.ipynb Import core components from Phidata, OpenAI (via Portkey), and Portkey AI for setting up the assistant and API connections. ```python import os from phi.assistant import Assistant from phi.llm.openai import OpenAIChat from portkey_ai import PORTKEY_GATEWAY_URL, createHeaders ``` -------------------------------- ### Install Project Requirements Source: https://github.com/agno-agi/phidata/blob/main/cookbook/examples/streamlit/geobuddy/readme.md Installs all necessary Python packages for the GeoBuddy application using a requirements file. ```shell pip install -r cookbook/examples/streamlit/geobuddy/requirements.txt ``` -------------------------------- ### Install Project Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/mistral/rag/README.md Installs all necessary Python libraries specified in the requirements file for the RAG application. ```shell pip install -r cookbook/llms/mistral/rag/requirements.txt ``` -------------------------------- ### Install DuckDuckGo Search for Web Search Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Installs the DuckDuckGo search library for web search functionality. ```shell pip install -U duckduckgo-search ``` -------------------------------- ### Run Structured Output Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/cohere/README.md Executes the Python script for demonstrating how to obtain structured output from Cohere's models. ```shell python cookbook/llms/cohere/structured_output.py ``` -------------------------------- ### Initialize Assistant with Portkey and Perplexity Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/integrations/portkey/Phidata_with_ Perplexity.ipynb Configure and initialize the Phidata Assistant using an LLM routed through Portkey Gateway to access Perplexity models. This setup allows for tracking and managing API calls. ```python # Initialize the OpenAIChat model llm = OpenAIChat( api_key="dummy", # Using Virtual Key instead model="llama-3-sonar-small-32k-online", # Use your choice of model from Perplexity Documentation base_url=PORTKEY_GATEWAY_URL, default_headers=createHeaders( virtual_key=PERPLEXITY_VIRTUAL_KEY, # Replace with your virtual key for Anthropic from Portkey api_key=PORTKEY_API_KEY, # Replace with your Portkey API key ), ) # Financial analyst built using Phydata and Perplexity API Stock_agent = Assistant( llm=llm, show_tool_calls=True, markdown=True, ) Stock_agent.print_response("What is the price of Nvidia stock? Write a report about Nvidia in detail.") ``` -------------------------------- ### Run Exa Search Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/cohere/README.md Executes the Python script for demonstrating search functionality using the Exa Search API with Cohere's models. ```shell python cookbook/llms/cohere/exa_search.py ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/integrations/lancedb/README.md Installs necessary Python libraries including lancedb, pypdf, pandas, openai, and phidata. ```shell pip install -U lancedb pypdf pandas openai phidata ``` -------------------------------- ### Run Web Search Agent Source: https://github.com/agno-agi/phidata/blob/main/cookbook/providers/groq/README.md Launches a Groq agent configured for general web searching. ```shell python cookbook/providers/groq/web_search.py ``` -------------------------------- ### Run PDF Assistant Example Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/README.md Executes the Python script for the PDF Assistant, which likely processes PDF documents. ```shell python cookbook/assistants/pdf_assistant.py ``` -------------------------------- ### Install google-cloud-aiplatform Library Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/vertexai/samples/README.md Installs or upgrades the google-cloud-aiplatform Python library. This library is required to interact with the Vertex AI API. ```shell pip install -U google-cloud-aiplatform ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/claude/README.md Installs essential Python libraries for working with Anthropic Claude, data fetching, and the phidata framework. ```shell pip install -U anthropic duckduckgo-search duckdb yfinance exa_py phidata ``` -------------------------------- ### Agent Initialization Log Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/mixture_of_agents/Mixture-of-Agents-Phidata-Groq.ipynb This log indicates that the memory component of the assistant has been successfully loaded. It is part of the initial setup for the agent. ```log Result: [32mDEBUG [0m Loaded memory ]8;id=92541;file://c:\Users\jawei\lab\groq-api-cookbook\phidata-mixture-of-agents\phienv\Lib\site-packages\phi\assistant\assistant.py [2massistant.py [0m ]8;; [2m: [0m ]8;id=955453;file://c:\Users\jawei\lab\groq-api-cookbook\phidata-mixture-of-agents\phienv\Lib\site-packages\phi\assistant\assistant.py#335 [2m335 [0m ]8;; ``` -------------------------------- ### Install Required Libraries Source: https://github.com/agno-agi/phidata/blob/main/cookbook/assistants/llms/bedrock/README.md Installs or upgrades the 'boto3' and 'phidata' Python libraries. These are necessary for interacting with AWS services and Phidata. ```shell pip install -U boto3 phidata ```