Quick way to see if you did something wrong:
# list your docker compose
docker compose config
# list all images used
docker compose config --images | from langchain.chat_models import ChatOpenAI | |
| from langchain.prompts import ChatPromptTemplate | |
| from langchain.schema.output_parser import StrOutputParser | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from langchain.schema.runnable import RunnablePassthrough, RunnableLambda | |
| from langchain.utilities import DuckDuckGoSearchAPIWrapper | |
| import json | |
| RESULTS_PER_QUESTION = 3 |
| # Get motherboard model | |
| Get-WmiObject win32_baseboard | Select-Object -Property Product | |
| # Get the maximun capacity of the MB RAM in GB | |
| Get-WmiObject -Class Win32_PhysicalMemoryArray | Select-Object -Property @{Name="MaxCapacityGB";Expression={$_.MaxCapacity / 1MB}} | |
| # Get the current RAM installed | |
| Get-WmiObject -Class Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum | Select-Object @{Name="TotalGB"; Expression={ $_.Sum / 1GB }} | |
| # Get list of connected storage devices |
Quick way to see if you did something wrong:
# list your docker compose
docker compose config
# list all images used
docker compose config --images | # https://www.youtube.com/watch?v=6ye4lP9EA2Y | |
| version: '3' | |
| services: | |
| postgresql: | |
| image: postgres:16 | |
| environment: | |
| - POSTGRES_USER=keycloak | |
| - POSTGRES_DB=keycloak | |
| - POSTGRES_PASSWORD=SUPERsecret | |
| volumes: |
| # https://github.com/inveniosoftware/invenio-communities/pull/1086/files#diff-6c07ffce9d2dd97c912da89fd4869787bdb49626a3fa278d466117cc8e489941 | |
| # Simplifying the function | |
| def filter_dict_keys(src, keys): | |
| """Filter a dictionary based on a list of key paths.""" | |
| # Split the keys into top-level and nested keys | |
| top_level_keys = [key for key in keys if "." not in key] | |
| nested_keys = [key for key in keys if "." in key] |
If you've installed Cairo via Homebrew (brew install cairo) but your scripts still can't find it, you may need to create symlinks in /usr/local/lib. This is because /usr/local/lib is always searched by macOS and is not blocked by SIP (System Integrity Protection).
sudo mkdir -p /usr/local/lib